Skip to content

Pre-execution checklist

Impact Writes config

What to check before running kolla-ansible against a production cloud, read in Kolla-Ansible 2025.1-eom. The checklist of §1 applies to every production run; §2 adds what the first 2025.1 run on a cloud deployed by 2024.1 needs.

Note

Key answers

  • Before every production run: the pre-execution checklist. Know the diff, the restart set and the batch size; pull first; health gates and workload gates; scope; rollback material (steps 1 to 8 of §1).
  • Changed in 2025.1: only drifted containers restart; a service tag no longer restarts HAProxy; reconfigure and upgrade cannot be batched with kolla_serial (F19) CODE.
  • First 2025.1 run after 2024.1: classic RabbitMQ queues must be migrated first; the systemd unit text changed; with Docker outside the Red Hat family, the default ulimits changed; a deploy or reconfigure moves every service that kolla-ansible upgrade has not reached to its 2025.1 image. Run untagged prechecks, migrate the queues, upgrade first, and list the affected containers before the run CODE (§2).

1. The checklist

  1. Know the diff before you run.
    • Run kolla-ansible genconfig with the same tags and --limit. Changed in 2025.1: this writes config and, apart from two narrow cases, restarts no container: the config tasks no longer notify the restart handlers, which come from the shared check step that genconfig does not run; the two config tasks that still notify can restart placement-api (with placement_wsgi_provider: apache) and cinder-volume (with Huawei XML files) (kolla_ansible/cli/commands.py:113-125; Execution flow §4). It no longer pulls the fluentd image.
    • genconfig also re-renders /etc/kolla/haproxy/services.d/ for the tagged services (site.yml:325-327, roles/haproxy-config/tasks/main.yml:2-21), while the loadbalancer check step is skipped under config (site.yml:319-324). In 2025.1 a frontend change reaches HAProxy only through -t haproxy reconfigure or an untagged run, and that restart is staged, backups first and the VIP holder last (roles/loadbalancer/handlers/main.yml:9-34). Copy services.d before genconfig to diff it.
    • Then diff /etc/kolla/<service>/ against the previous version. Keep /etc/kolla under version control on every host, or snapshot it before the run.
    • On each container, docker exec -u root <c> /usr/local/bin/kolla_set_configs --check (Podman: podman exec -u root) tells you whether its configuration will make it restart (exit 1 = the command of config.json differs from the running one, a recorded file is no longer listed (both new in 2025.1), a listed file differs or is missing from the container, a new optional file included, a required source is missing or config.json is invalid; exit 2 = unexpected error, such as a config.json that cannot be opened, which fails the check task on that host instead of restarting, when the comparison reaches the config check: it is skipped when the container is missing or its parameters already differ, module_utils/kolla_container_worker.py:58-65; with Podman, 137 fails the task too, where Docker treats it as drift). The check does not see a changed image, volume, dimension or systemd unit, which restart the container as well (module_utils/kolla_container_worker.py:58-89). See Predict and inspect a run and Kolla images §3.
  2. Know the restart set. Changed in 2025.1: only the containers that the check step found changed restart; the loop-notify of earlier releases, which restarted every container of the role on that host, is gone (roles/service-check-containers/tasks/main.yml:4-41; Tags §2.4). A service tag never restarts HAProxy (Reconfigure a single service).
  3. Know the batch size.
    • Changed in 2025.1: reconfigure and upgrade always pass kolla_serial=0 after the user's -e, so they run every host of a play at once (kolla_ansible/cli/commands.py:20-22, :136, :278; F19). -e kolla_serial=N covers deploy, deploy-containers, stop, pull and bootstrap-servers (the plays read serial: '{{ kolla_serial|default("0") }}', e.g. site.yml:95). To batch a configuration change, run deploy (the same tasks as reconfigure) with -e kolla_serial=N, or split the hosts with --limit.
    • mariadb and rabbitmq ignore it: their role plays have no serial and their restart plays use a fixed serial: "33%" (mariadb.yml:24, :42; rabbitmq.yml:36).
    • The etcd play has no serial (site.yml:485-496); its handlers stage the restarts themselves (Controlled batches §1.2).
    • cyborg uses the wrong variable (serial: '{{ serial|default("0") }}', site.yml:874).
    • Every play sets max_fail_percentage, from <service>_max_fail_percentage, then kolla_max_fail_percentage, then 100 (e.g. site.yml:96-99). With 100 a failed host only drops out and the next batches run, unless every host of a batch fails: ansible-core then stops the playbook (ansible-core 2.18.20 lib/ansible/executor/playbook_executor.py:199-203), so with -e kolla_serial=1, or in the 33% restart plays of a three-node mariadb or rabbitmq, one failed host ends the run. To stop a rolling run at the first bad batch, set kolla_max_fail_percentage lower (Controlled batches §1.3).
  4. Pull first. kolla-ansible pull (with the same tags, kolla_ansible/cli/commands.py:173-184) before upgrade/deploy, so that restart windows do not include downloads.
  5. Health gates. Before the run, check:

    • Galera: wsrep_cluster_size, wsrep_local_state_comment=Synced;
    • RabbitMQ: cluster status, no partitions;
    • openstack compute service list and openstack network agent list all up;
    • HAProxy backends all UP.

    Repeat after each batch. New in 2025.1: kolla-ansible check fails a host when one of its Kolla containers is missing, not running or unhealthy (Execution flow §4); how it behaves on a real cloud is NOT AVAILABLE.

  6. Workload gates. No live migrations, resizes, image uploads or volume migrations in flight on the targeted hosts. --status takes one exact status, so run one command per status, for example openstack server list --all-projects --host <host> --status MIGRATING, then RESIZE and VERIFY_RESIZE; openstack volume list --all-projects --status <status> for each in-progress volume status; openstack image list --status <status> for uploads. Do not write MIGRATING|RESIZE or *ing: the shell reads them as a pipe and a file pattern. This gate is operator practice, not something the Kolla code checks.

  7. Scope.
    • Prefer --limit and the narrowest tag.
    • Add --skip-tags haproxy when the frontends are not meant to change: every task of the loadbalancer play inherits its play tags haproxy, keepalived and loadbalancer (site.yml:115-118; Tags §4).
    • -t common runs the common role (fluentd, kolla-toolbox, cron) in its own play. Service tags do not run common: no 2025.1 role has a meta dependency on it (site.yml:88-103, roles/common/tasks/main.yml:2).
  8. Rollback material.
    • Previous /etc/kolla/config, globals.yml, passwords.yml and inventory under git.
    • Previous image tags still present locally: do not run prune-images before you are done. It runs docker_prune (or podman image prune) filtered on the kolla_version label (roles/prune-images/tasks/prune_images.yml:2-16); NOT AVAILABLE which images that removes, dangling only or tagged ones too: it depends on the prune defaults of Docker or Podman.
    • A MariaDB backup (renamed in 2025.1 kolla-ansible mariadb-backup, kolla_ansible/cli/commands.py:437-467; Database operations). It works only with enable_mariabackup: "yes" set and applied to mariadb beforehand: the playbook applies the role only when that flag is true (mariadb_backup.yml:8-11), the default is "no" (group_vars/all.yml:922), and the mariabackup config is rendered only with it (roles/mariadb/tasks/config.yml:12-57). Otherwise the command skips silently: check that a backup file was produced.

2. First 2025.1 run on a cloud deployed by 2024.1

On the first deploy, reconfigure, deploy-containers or upgrade that the 2025.1 code runs, changes in the code restart or recreate containers even when the operator changed nothing, and the image tag changes for every service not yet upgraded. Add these checks to §1 CODE:

  1. Migrate the RabbitMQ queues first (F17).
    • om_enable_rabbitmq_quorum_queues and om_enable_rabbitmq_high_availability are gone: every service renders rabbit_quorum_queue = true and rabbit_transient_quorum_queue = true, and rabbit_stream_fanout = true while om_enable_rabbitmq_stream_fanout keeps its default true (group_vars/all.yml:287, :292; e.g. roles/nova-cell/templates/nova.conf.j2:201-206). A cloud that kept classic mirrored queues in 2024.1 has no way to keep them.
    • Run kolla-ansible prechecks without -t: the prechecks role is an untagged play (site.yml:77-86), so a tagged run skips its checks. When a rabbitmq container exists, the rabbitmq precheck lists the queues and fails on any non-quorum queue (except reply_ and _fanout ones), on non-quorum reply_ queues, and on _fanout queues that are not streams while stream fanout is on (roles/rabbitmq/tasks/precheck.yml:110-163); those assertions carry the tag rabbitmq-ha-precheck (:164), and skipping it does not change what the services render. The CI upgrade job skips that tag, then migrates the queues (tests/upgrade.sh:21-22).
    • The precheck message calls the migration manual and says it may take several hours on larger systems (roles/rabbitmq/tasks/precheck.yml:121-125). NOT AVAILABLE What oslo.messaging does with existing classic queues when the services restart with these options.
  2. List the units that 2024.1 wrote (F16). The check step compares the whole unit file with the 2025.1 template, which adds PartOf=kolla.target (module_utils/kolla_systemd_worker.py:20-40, :27, :155-168). On each host, grep -L PartOf=kolla.target /etc/systemd/system/kolla-*-container.service lists the containers that the next check will restart, even when kolla_set_configs --check exits 0. A container that a 2025.1 run created, recreated or restarted (an upgrade that reached its role does one of these) already has the new unit; after a partial upgrade (upgrade -t <svc>), every other service still has the old one. Plan those restarts in batches with deploy -e kolla_serial=N or --limit (Controlled batches).
  3. Expect recreations for the new ulimits (Docker, hosts outside the Red Hat family). default_container_dimensions now carries a nofile ulimit with Docker on every host (group_vars/all.yml:201-224); containers created by 2024.1 on such hosts lack it, so they differ and are recreated at the first check (module_utils/kolla_container_worker.py:274-303, :326-336; Repository architecture §6). Podman hosts are not affected.
  4. Upgrade every service before any deploy or reconfigure. openstack_release defaults to 2025.1 (group_vars/all.yml:795-797) and every image tag follows it (e.g. roles/keystone/defaults/main.yml:98-100). The check step compares the image (module_utils/kolla_container_worker.py:75), and the restart handler recreates a container whose image differs, pulling the image first when it is absent (module_utils/kolla_docker_worker.py:352-372). So a deploy or reconfigure moves every service that kolla-ansible upgrade has not yet reached (all of them before the upgrade, the services outside the tags after upgrade -t <svc>) to its 2025.1 image through the deploy path, without the role's upgrade tasks (e.g. keystone's database upgrade handlers, roles/keystone/tasks/upgrade.yml:23-34). kolla_set_configs --check does not show it. Run kolla-ansible upgrade for those services first. New in 2025.1, the CI upgrade job re-runs bootstrap-servers on the 2024.1 cloud before the upgrade (tests/upgrade.sh:16-20); what that run changes on the hosts is in Fact sheet E.

NOT AVAILABLE The effect of these restarts and recreations on running VMs and volumes: the sources do not establish it. How to see each cause before the run: Predict and inspect a run §2.

To remember

Lumo: if you keep only 5 things from this page, keep these.

  • Before every production run: know the diff, the restart set and the batch size; pull first; health gates and workload gates; scope; rollback material.
  • Run kolla-ansible genconfig with the same tags and --limit: it writes config and, apart from two narrow cases, restarts no container. Then diff /etc/kolla/<service>/ against the previous version. CODE
  • Changed in 2025.1: only the containers that drifted restart, and a service tag no longer restarts HAProxy. CODE
  • Changed in 2025.1: reconfigure and upgrade always run every host at once (kolla_serial=0); batch with deploy -e kolla_serial=N or --limit. mariadb and rabbitmq restart with a fixed serial: "33%", etcd has no serial, and with the default max_fail_percentage of 100 a failed host only drops out, unless every host of a batch fails. CODE
  • First 2025.1 run after 2024.1: classic RabbitMQ queues must be gone, units without PartOf=kolla.target restart, Docker containers outside the Red Hat family are recreated for the new ulimits, and a deploy or reconfigure moves every service that kolla-ansible upgrade has not reached to its 2025.1 image. CODE

What would you do?

Lumo: a situation you could meet on a real platform, and three ways to react. Pick the one you would choose: I will tell you what this page says about it. Nothing is recorded.

Scenario 1: Live migrations still running on the target hosts

You are about to run a deploy -e kolla_serial=10 on a batch of 10 computes in a cloud with 40 computes. Just before starting, openstack server list --all-projects --status MIGRATING shows two live migrations in flight on hosts of your batch. Your colleague says the run will not take long and suggests starting anyway.

What would you do?

See every choice explained
  • Avoid: Start the run now on the whole batch: the migrations will finish on their own during the run.. This breaks the workload gate of step 6: no live migrations, resizes, image uploads or volume migrations in flight on the targeted hosts.
  • Avoid: Start the run now, but without --limit, so that the whole cloud is done in one pass.. It still targets the hosts with migrations in flight (step 6), and step 7 says the opposite: prefer --limit and the narrowest tag.
  • Best choice: Wait until openstack server list --all-projects --host <host> --status MIGRATING (and the same with RESIZE and VERIFY_RESIZE) and the volume and image checks of step 6 show nothing in flight on the targeted hosts, check the health gates, then run on the batch with --limit.. This is steps 5 to 7 of the checklist: no live migrations, resizes, image uploads or volume migrations in flight on the targeted hosts; health gates (Galera, RabbitMQ, compute services and network agents, HAProxy backends) before the run and after each batch; prefer --limit and the narrowest tag.

Read the section.

Scenario 2: Free disk space before an upgrade

You have pulled the new images with kolla-ansible pull before tonight's upgrade, and some hosts are short of disk space. Your colleague suggests running kolla-ansible prune-images now to free space, then starting the upgrade.

What would you do?

See every choice explained
  • Works, but risky: Keep the previous images, but skip the MariaDB backup: the old images are enough to go back.. Keeping the previous image tags is right, but step 8 lists more rollback material: the previous /etc/kolla/config, globals.yml, passwords.yml and inventory under git, and a MariaDB backup (kolla-ansible mariadb-backup, which needs enable_mariabackup: "yes" applied beforehand).
  • Best choice: Keep the previous image tags until you are done, and gather all the rollback material before the run: config, globals.yml, passwords.yml and inventory under git, plus a MariaDB backup with kolla-ansible mariadb-backup, checking that a backup file was produced.. Step 8, rollback material: previous image tags still present locally (do not prune-images before you are done), the previous configuration and inventory under git, and a MariaDB backup. mariadb-backup does nothing unless enable_mariabackup is "yes" (default "no") CODE.
  • Avoid: Run kolla-ansible prune-images now, then start the upgrade.. Step 8 says it directly: do not prune-images before you are done. It prunes Kolla images by their kolla_version label; which ones it removes depends on the prune defaults of Docker or Podman NOT AVAILABLE.

Read the section.

Scenario 3: Prechecks fail on the first 2025.1 run

You moved the deployment host to Kolla-Ansible 2025.1. Your 2024.1 cloud kept classic mirrored queues with om_enable_rabbitmq_high_availability: true. kolla-ansible prechecks -i multinode fails on "Check if RabbitMQ quorum queues need to be configured", naming a non-quorum queue. A colleague proposes to run prechecks again with --skip-tags rabbitmq-ha-precheck, which passes, and to go ahead.

What would you do?

See every choice explained
  • Avoid: Use the run with the skipped tag: it passes, so the platform is ready.. Skipping the tag only skips the queue assertions; it does not change what the services render. In 2025.1 every service renders rabbit_quorum_queue = true unconditionally, and the HA option no longer exists CODE.
  • Best choice: Plan the migration to quorum queues (and transient quorum and stream fanout queues) first, as the precheck message says, then run untagged prechecks again before any other run.. In 2025.1 quorum queues are the only choice: om_enable_rabbitmq_quorum_queues and om_enable_rabbitmq_high_availability are gone, and the precheck fails on any classic queue while a rabbitmq container exists CODE. The precheck message calls the migration manual and says it may take several hours on larger systems. What oslo.messaging does with existing classic queues is not known NOT AVAILABLE.
  • Avoid: Keep om_enable_rabbitmq_high_availability: true in globals.yml, as in 2024.1.. The variable no longer exists in 2025.1: nothing reads it, so it keeps nothing CODE.

Read the section.

Check yourself

Lumo: 4 quick questions to check the main ideas of this page. Choose an answer to see the explanation and the section that gives the evidence. Your score counts your first choices and stays in this browser only.

1. What should you run before upgrade or deploy, so that restart windows do not include downloads?
Show the answer

Answer: kolla-ansible pull, with the same tags. Step 4 of the checklist: pull first. Read the section.

2. Can you batch a reconfigure with -e kolla_serial=5 in 2025.1?
Show the answer

Answer: No: reconfigure always passes kolla_serial=0 after your -e; use deploy -e kolla_serial=5 or --limit. Step 3: the 2025.1 CLI adds kolla_serial=0 for reconfigure and upgrade, after the user's extra vars CODE. Read the section.

3. Do mariadb and rabbitmq follow kolla_serial?
Show the answer

Answer: No, they ignore it. Their role plays have no serial, and their restart plays use a fixed serial: "33%" (step 3). The etcd play has no serial either. Read the section.

4. After a 2024.1 → 2025.1 upgrade, kolla_set_configs --check exits 0 in a container. Can the next reconfigure still restart it?
Show the answer

Answer: Yes: its systemd unit may still be the one 2024.1 wrote, and the whole unit text is compared. The check step also compares the unit file with the 2025.1 template; a unit without PartOf=kolla.target differs, so the container restarts CODE. Read the section.