Table of contents
In this article I will show you how to upgrade the OpenStack version from 2024.1 to 2024.2 using Kolla-Ansible. A version upgrade is performed if the cluster has a bug and the bug has been fixed in the latest version, it can also be if there are new features in the latest version. I use Kolla-Ansible to upgrade the OpenStack version automatically.
So, let's get started…
Environment
Hostname | at-openstack-aio |
Operating System | Ubuntu 22.04 (Jammy) |
vCPU | 8 |
Memory | 12 GB |
Disk 1 | 40 GB |
Disk 2 | 40 GB |
Internal Network | 10.10.11.0/24 |
Internal IP Address | 10.10.11.11 |
Provider Network | 10.10.12.0/24 |
Openstack Upgrade
- Keep monitoring
- Check docker images
- Upgrade kolla-ansible
source os-venv/bin/activate
pip install --upgrade git+https://opendev.org/openstack/kolla-ansible@stable/2024.2
- Upgrade ansible
pip install --upgrade 'ansible-core>=2.16,<2.17.99'
- Install ansible galaxy dependencies
kolla-ansible install-deps
- Generate and merge kolla password
mv /etc/kolla/passwords.yml /etc/kolla/passwords.yml-2024.1
cp os-venv/share/kolla-ansible/etc_examples/kolla/passwords.yml /etc/kolla/passwords.yml-2024.2
kolla-genpwd -p /etc/kolla/passwords.yml-2024.2
kolla-mergepwd --old /etc/kolla/passwords.yml-2024.1 --new /etc/kolla/passwords.yml-2024.2 --final /etc/kolla/passwords.yml
- Update release version on kolla main configuration
nano /etc/kolla/globals.yml
---
openstack_release: "2024.2"
- Copy Copy all-in-one 2024.2 inventory to kolla directory
mv all-in-one all-in-one.2024.1
cp os-venv/share/kolla-ansible/ansible/inventory/all-in-one .
mkdir -p /etc/kolla/ansible/inventory/
cp all-in-one /etc/kolla/ansible/inventory/
- Pull openstack 2024.2 image
kolla-ansible pull
- Pre-upgrade check
kolla-ansible prechecks
- Update certificates
kolla-ansible certificates
update-ca-certificates
cat /etc/kolla/certificates/ca/root.crt >> /etc/ssl/certs/ca-certificates.crt
or
mv /etc/kolla/certificates /etc/kolla/certificates-2024.1
update-ca-certificates
kolla-ansible certificates
cat /etc/kolla/certificates/ca/root.crt >> /etc/ssl/certs/ca-certificates.crt
because I had this issue when upgrading
- Openstack upgrade
kolla-ansible upgrade
Impact:
After upgrade process completed:
Operational Test
- Verify docker images
docker ps -a
- Operational test
openstack server create --image cirros-0.5.2-image --flavor tiny --key-name at-openstack-aio-key --network internal-net --security-group allow-all vm-cirros-2024.2
- Prune 2024.1 docker images
docker image prune -af