Openstack 2024.1 Caracal to 2024.2 Dalmatian Upgrade

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

Hostnameat-openstack-aio
Operating SystemUbuntu 22.04 (Jammy)
vCPU8
Memory12 GB
Disk 140 GB
Disk 240 GB
Internal Network10.10.11.0/24
Internal IP Address10.10.11.11
Provider Network10.10.12.0/24

Openstack Upgrade

  1. Keep monitoring

  1. Check docker images

  1. Upgrade kolla-ansible
source os-venv/bin/activate
pip install --upgrade git+https://opendev.org/openstack/kolla-ansible@stable/2024.2
  1. Upgrade ansible
pip install --upgrade 'ansible-core>=2.16,<2.17.99'
  1. Install ansible galaxy dependencies
kolla-ansible install-deps
  1. 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
  1. Update release version on kolla main configuration
nano /etc/kolla/globals.yml
---
openstack_release: "2024.2"
  1. 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/
  1. Pull openstack 2024.2 image
kolla-ansible pull
  1. Pre-upgrade check
kolla-ansible prechecks
  1. 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

  1. Openstack upgrade
kolla-ansible upgrade

Impact:

After upgrade process completed:

Operational Test

  1. Verify docker images
docker ps -a

  1. 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

  1. Prune 2024.1 docker images
docker image prune -af

References

0
Subscribe to my newsletter

Read articles from Muhammad Alfian Tirta Kusuma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Muhammad Alfian Tirta Kusuma
Muhammad Alfian Tirta Kusuma