amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
540 stars 40 forks source link

[Missing Documentation] - In-place upgrade from AL2 to AL2023 is not supported. Please include that in the AL2023 FAQ. #456

Open abhilashck72 opened 1 year ago

abhilashck72 commented 1 year ago

In-place upgrade from AL2 to AL2023 is not supported. Please include that in the AL2023 FAQ same like AL2 FAQ. (https://aws.amazon.com/linux/amazon-linux-2023/faqs/)

We have similar for AL2 FAQ, but not for AL2023 FAQ.

https://aws.amazon.com/amazon-linux-2/faqs/

Q. Can I perform an in-place upgrade from an existing version of Amazon Linux AMI to Amazon Linux 2?
No, an in-place upgrade from the existing Amazon Linux image to Amazon Linux 2 is not supported. We recommend that you test your application on a fresh installation of Amazon Linux 2 first before migrating.
dlouzan commented 1 year ago

Is this a general statement for all major updates? I.e. will a future Amazon Linux 2025 not support in-place updates?

/cc @bufferoverflow

stewartsmith commented 1 year ago

Is this a general statement for all major updates? I.e. will a future Amazon Linux 2025 not support in-place updates?

There isn't a decision yet on that, so it's not something to rule out. Even if it did however though, we would advise that relying on instance replacement instead is much more reliable and predictable in being able to roll forward and back.

fmazoyer commented 9 months ago

Hello @stewartsmith thanks a lot for taking the point.

Our teams are also facing an issue with the upgrade or their development environments, mostly with VSCode: It requires / will require an upgrade of glibc to a version greater than or equal to 2.28. Unfortunately, the last version of glibc supported by AL2 is 2.26 :-(

VSCode team will soon 'roll back' their changes because of the 'hotness' :) of the topic: https://github.com/microsoft/vscode/issues/203375#issuecomment-1927893504

However, we will face the same issue upgrading other applications (like Node for instance... and God knows what else :))

All this to say that it would be of great help if we could have a trustworty procedure for upgrades to AL2023 :-)

Thanks a lot for the great work :-)

stewartsmith commented 9 months ago

Our advice is to use the strategy of instance replacement, where persistent data is moved between versions on a different EBS volume than the OS itself. This can be used for normal patching updates, and easily provides a mechanism to roll back if needed.

mapicone commented 3 months ago

We need a best in place upgrade option. In many cases important business software is installed in the main drive of the instance or a lot of configuration files and tuning has being applied to the OS and needs to be kept. In other cases is not possible to migrate to a different instance. An inline upgrade option is required, specially now with an EOL for Amazon Linux 2

ozbenh commented 3 months ago

It is unlikely that we will be able to provide an in-line upgrade mechanism, at least not in the near future. The two distributions are too different, too many years elapsed, to make this realistic with just "rpm" updates at this point.