amazonlinux / amazon-linux-2023

Amazon Linux 2023
https://aws.amazon.com/linux/amazon-linux-2023/
Other
517 stars 38 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 11 months ago

abhilashck72 commented 11 months 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 10 months 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 10 months 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 6 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 6 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.