Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ubuntu upgrade from 20.04 to 22.04 #507

Closed
schulze-b1 opened this issue May 3, 2023 · 4 comments
Closed

ubuntu upgrade from 20.04 to 22.04 #507

schulze-b1 opened this issue May 3, 2023 · 4 comments

Comments

@schulze-b1
Copy link

in preparation from yoga to zed upgrade, we want to do an inplace upgrade of ubuntu 20.04 to 22.04 beforehand. the osism documentation for this is outdated and only covers upgrade from 16.04 to 18.04:
https://docs.osism.tech/upgrade/ubuntu.html

can you please update the documentation?
and are there any known issues to prepare for?
will all yoga containers still run after upgrade to 22.04 or will there be issues to look out for?

@berendt
Copy link
Member

berendt commented May 3, 2023

We do not have any instructions for this and need to refer to the official Ubuntu documentation for the upgrades.

There are issues with Neutron/OVS on Ubuntu 22.04. Please have a look at #428 for further details.

@Nils98Ar @flyersa Is there anything special to consider when upgrading from Ubuntu 20.04 to 22.04 otherwise? I think you already had done that with some of your environments. Maybe you can list here how you did it.

@flyersa
Copy link

flyersa commented May 3, 2023

Outside of what is mentioned in #428 there should no additional work be necessary. Other then that i would suggest to just keep 20.04 til R5 is out so that we maybe can gather longer term potential issues now that some at least start upgrading to 22.04 as well.

@Nils98Ar
Copy link

Nils98Ar commented May 3, 2023

Apart from the OVS issues you need to migrate to netplan if you are still using interfaces. see #495 (comment).

@schulze-b1
Copy link
Author

schulze-b1 commented May 11, 2023

hello.
since all mentioned issues are not applicable in our landscape, I went ahead and upgraded the first three servers (1 management node + 2 router nodes). I used /usr/bin/do-release-upgrade for the upgrade to 22.04 LTS, but had to implement some workarounds, since the servers can't reach the internet (airgapped landscape) and we use nexus as a local repo mirror. here are the issues I had while upgrading and how to solve them:

  1. do-release-upgrade does not show if any packages are on hold or pinned to a certain version. has to be done manually beforehand (apt-mark showhold and /etc/apt/preferences.d/*). if not done beforehand, these packages will be ignored.

  2. do-release-upgrade wants to check https://changelogs.ubuntu.com/meta-release-lts for new versions, which will not work if the landscape is airgapped. workaround is to copy content of the link into a file and reference it in /etc/update-manager/meta-release, e.g. URI_LTS = file:/path/to/file

  3. if there are any certificate issues with the nexus, the do-release-upgrade will show no output or any error and just hangs. reason is that the repo with the cert issue will be dropped and fallback is ubuntu.com, which again will not work because of airgapped landscape. there is an undocumented debug flag that can be enabled to see the error output: DEBUG_UPDATE_MANAGER=True do-release-upgrade

since my issue is solved and i could successfully upgrade the first three servers, I will close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants