[openstack-ansible] [Antelope]operating upgrade from ubuntu 20 to ubuntu 22 on infra nodes
Dear Team, I am trying to upgrade Operating system of Infra node from ubuntu 20 to ubuntu 22. And I am following below docs for same: https://docs.openstack.org/openstack-ansible/2023.1/admin/upgrades/distribut... When I run: openstack-ansible setup-hosts.yml --limit localhost,reinstalled_host* I thought it would upgrade OS of LXC containers as well. I can see ubuntu-22-amd64 in /var/lib/lxc/ and /var/lib/machines/ I can see ubuntu-22-amd64 even when I run lxc-ls command. Should I destroy and recreate lxc containers one by one to upgrade it to ubuntu 22? or is there any playbook which can take care of this? Regards, Danish Khan
Hey, So the doc you're referring to assumes OS reinstallation for hosts during the upgrade. As you've rightfully mentioned - upgrade of host OS does not actually result in LXC containers upgrade. There are multiple ways forward with that. Eventually, you can run do-release-upgrade inside of containers independently from the host. Or, you can re-create the containers per-control. In order to re-create all containers on a specific control node, you can run: * openstack-ansible lxc-containers-destroy.yml --limit ${control}-host_containers * openstack-ansible lxc-containers-create.yml --limit ${control}-host_containers,${control} So merging that with the doc mentioned, Deploying Infrastructure Hosts section specifically, you need to replace step 2 with the commands above. пн, 26 мая 2025 г. в 14:43, Danish Khan <danish52.jmi@gmail.com>:
Dear Team,
I am trying to upgrade Operating system of Infra node from ubuntu 20 to ubuntu 22.
And I am following below docs for same:
https://docs.openstack.org/openstack-ansible/2023.1/admin/upgrades/distribut...
When I run:
openstack-ansible setup-hosts.yml --limit localhost,reinstalled_host*
I thought it would upgrade OS of LXC containers as well. I can see ubuntu-22-amd64 in /var/lib/lxc/ and /var/lib/machines/
I can see ubuntu-22-amd64 even when I run lxc-ls command.
Should I destroy and recreate lxc containers one by one to upgrade it to ubuntu 22? or is there any playbook which can take care of this?
Regards,
Danish Khan
participants (2)
-
Danish Khan
-
Dmitriy Rabotyagov