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;
reconfigureandupgradecannot be batched withkolla_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
deployorreconfiguremoves every service thatkolla-ansible upgradehas not reached to its 2025.1 image. Run untaggedprechecks, migrate the queues, upgrade first, and list the affected containers before the run CODE (§2).
1. The checklist¶
- Know the diff before you run.
- Run
kolla-ansible genconfigwith 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 thatgenconfigdoes not run; the two config tasks that still notify can restartplacement-api(withplacement_wsgi_provider: apache) andcinder-volume(with Huawei XML files) (kolla_ansible/cli/commands.py:113-125; Execution flow §4). It no longer pulls the fluentd image. genconfigalso 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 underconfig(site.yml:319-324). In 2025.1 a frontend change reaches HAProxy only through-t haproxy reconfigureor an untagged run, and that restart is staged, backups first and the VIP holder last (roles/loadbalancer/handlers/main.yml:9-34). Copyservices.dbeforegenconfigto diff it.- Then diff
/etc/kolla/<service>/against the previous version. Keep/etc/kollaunder 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 ofconfig.jsondiffers 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 newoptionalfile included, a required source is missing orconfig.jsonis invalid; exit 2 = unexpected error, such as aconfig.jsonthat 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.
- Run
- 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). - Know the batch size.
- Changed in 2025.1:
reconfigureandupgradealways passkolla_serial=0after 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=Ncoversdeploy,deploy-containers,stop,pullandbootstrap-servers(the plays readserial: '{{ kolla_serial|default("0") }}', e.g.site.yml:95). To batch a configuration change, rundeploy(the same tasks asreconfigure) with-e kolla_serial=N, or split the hosts with--limit. - mariadb and rabbitmq ignore it: their role plays have no
serialand their restart plays use a fixedserial: "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, thenkolla_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.20lib/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, setkolla_max_fail_percentagelower (Controlled batches §1.3).
- Changed in 2025.1:
- Pull first.
kolla-ansible pull(with the same tags,kolla_ansible/cli/commands.py:173-184) beforeupgrade/deploy, so that restart windows do not include downloads. -
Health gates. Before the run, check:
- Galera:
wsrep_cluster_size,wsrep_local_state_comment=Synced; - RabbitMQ: cluster status, no partitions;
openstack compute service listandopenstack network agent listall up;- HAProxy backends all UP.
Repeat after each batch. New in 2025.1:
kolla-ansible checkfails 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. - Galera:
-
Workload gates. No live migrations, resizes, image uploads or volume migrations in flight on the targeted hosts.
--statustakes one exact status, so run one command per status, for exampleopenstack server list --all-projects --host <host> --status MIGRATING, thenRESIZEandVERIFY_RESIZE;openstack volume list --all-projects --status <status>for each in-progress volume status;openstack image list --status <status>for uploads. Do not writeMIGRATING|RESIZEor*ing: the shell reads them as a pipe and a file pattern. This gate is operator practice, not something the Kolla code checks. - Scope.
- Prefer
--limitand the narrowest tag. - Add
--skip-tags haproxywhen the frontends are not meant to change: every task of the loadbalancer play inherits its play tagshaproxy,keepalivedandloadbalancer(site.yml:115-118; Tags §4). -t commonruns the common role (fluentd, kolla-toolbox, cron) in its own play. Service tags do not run common: no 2025.1 role has ametadependency on it (site.yml:88-103,roles/common/tasks/main.yml:2).
- Prefer
- Rollback material.
- Previous
/etc/kolla/config,globals.yml,passwords.ymland inventory under git. - Previous image tags still present locally: do not run
prune-imagesbefore you are done. It runsdocker_prune(orpodman image prune) filtered on thekolla_versionlabel (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 withenable_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.
- Previous
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:
- Migrate the RabbitMQ queues first (F17).
om_enable_rabbitmq_quorum_queuesandom_enable_rabbitmq_high_availabilityare gone: every service rendersrabbit_quorum_queue = trueandrabbit_transient_quorum_queue = true, andrabbit_stream_fanout = truewhileom_enable_rabbitmq_stream_fanoutkeeps its defaulttrue(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 precheckswithout-t: theprechecksrole is an untagged play (site.yml:77-86), so a tagged run skips its checks. When arabbitmqcontainer exists, the rabbitmq precheck lists the queues and fails on any non-quorum queue (exceptreply_and_fanoutones), on non-quorumreply_queues, and on_fanoutqueues that are not streams while stream fanout is on (roles/rabbitmq/tasks/precheck.yml:110-163); those assertions carry the tagrabbitmq-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.
- 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.servicelists the containers that the next check will restart, even whenkolla_set_configs --checkexits 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 withdeploy -e kolla_serial=Nor--limit(Controlled batches). - Expect recreations for the new ulimits (Docker, hosts outside the Red Hat family).
default_container_dimensionsnow carries anofileulimit 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. - Upgrade every service before any
deployorreconfigure.openstack_releasedefaults to2025.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 adeployorreconfiguremoves every service thatkolla-ansible upgradehas not yet reached (all of them before the upgrade, the services outside the tags afterupgrade -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 --checkdoes not show it. Runkolla-ansible upgradefor those services first. New in 2025.1, the CI upgrade job re-runsbootstrap-serverson 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.
Related¶
- Risk register — the risks, each with its precautions
- Predict and inspect a run — the commands of step 1, with the exit codes of the check
- Write config first, apply in controlled batches —
genconfig, thendeploy-containers --limitbatch by batch, andmax_fail_percentage - Tags §2.4 — why only the drifted container restarts (step 2)
- Execution flow §5 —
batching with
serial, and the plays that are not batched (step 3) - Update container images —
pullbeforeupgrade(step 4) - Database operations — the
mariadb-backupcommand of step 8 - Technical findings F16, F17, F19 — the unit-text drift, the quorum-only RabbitMQ
and the unbatchable
reconfigureof §1 and §2 - RabbitMQ — the quorum-only queues and the stricter prechecks
- 2024.1 pre-execution checklist — the same page for 2024.1
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 genconfigwith 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:
reconfigureandupgradealways run every host at once (kolla_serial=0); batch withdeploy -e kolla_serial=Nor--limit. mariadb and rabbitmq restart with a fixedserial: "33%", etcd has noserial, and with the defaultmax_fail_percentageof 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.targetrestart, Docker containers outside the Red Hat family are recreated for the new ulimits, and adeployorreconfiguremoves every service thatkolla-ansible upgradehas 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.
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.
Lumo: ready for the next step? Take your time: you can come back to this page whenever you need it.
Lumo: nicely done! One more page on your journey.