Skip to content

Why a small change creates a large workload

Why a small change can create a large workload in Kolla-Ansible 2025.1: seven small changes, each with why it is large and the source lines and sections that show it. The seven rows of 2024.1 still hold, two of them smaller because loop-notify is gone (Tags §2.4). The per-host work that every run pays, independently of restarts, closes the page.

Jo, holding a crate, and LUMO, reading, stand by a large brass gear mechanism on a bench where a small brass key lies on a parchment.

Small change Why it is large Source
One option for nova-compute /etc/kolla/config/nova/nova-compute.conf targets every compute, all at once with the default serial 0 (and reconfigure cannot be batched, R32). Changed in 2025.1: only nova_compute restarts; nova_libvirt and nova_ssh keep running, since their files did not change. The same option in /etc/kolla/config/nova/<host>/nova-compute.conf is merged into that host's nova-compute/nova.conf only, so it reaches one compute nova.yml:125-147; roles/nova-cell/tasks/config.yml:120-136 (sources at :129, :131); roles/nova-cell/tasks/check-containers.yml:2-3; roles/service-check-containers/tasks/main.yml:34-41; Tags §2.4; Reconfigure Nova §3
enable_<new service>: yes changes fluentd/logrotate on every host (at the next run of the common play: no tag or -t common) and nova.conf sections on every compute (e.g. [barbican]) roles/common/defaults/main.yml:146-150, roles/common/tasks/config.yml:171-181; site.yml:88-103; roles/nova-cell/templates/nova.conf.j2:249-254; Reconfigure Nova §3
One extra controller changes the transport URL in every messaging service everywhere group_vars/all.yml:274, :284; Change control-plane membership §2
A server-side ML2 option still does not reach the agents: ml2_conf.ini (and its overrides) is rendered for neutron-server and neutron-infoblox-ipam-agent only, and openvswitch_agent.ini does not merge the ml2_conf.ini overrides. A file added under neutron/plugins/ in the custom config is still copied to every Open vSwitch agent (and to neutron-server) and restarts them; the Linux bridge agent is gone in 2025.1 roles/neutron/tasks/config.yml:134-150, :152-164, :12-18, :377-396; Reconfigure Neutron §3
Rebuilt image of one service once the new image is on the host (a same-tag rebuild needs an explicit pull), the containers of that image are recreated on every host that runs them. Changed in 2025.1: their siblings on the same host no longer restart, since the shared check notifies only the containers whose comparison changed module_utils/kolla_docker_worker.py:107-122 (Podman: module_utils/kolla_podman_worker.py:360-378); roles/service-check-containers/tasks/main.yml:4-41; Update container images §2; F4
Any OpenStack API service -t <svc> runs the service's include in the loadbalancer play (haproxy configuration, and the service's block of external-frontend-map when haproxy_single_external_frontend is set, default false) and Keystone registration even with no change. Changed in 2025.1: the new frontend is written but HAProxy is not restarted until a run with -t haproxy or no tag (F18). It does not run common, since no role has a meta directory and the common play is tagged common only; the DB sync runs on every deploy and, for most services, on every reconfigure. Neutron too: its bootstrap (neutron-db-manage ... upgrade head) has no kolla_action condition and runs on every deploy and reconfigure. Infrastructure tags such as -t haproxy run the loadbalancer play, whose 38 service includes are all evaluated and run for the enabled services, but no Keystone registration or DB sync Reconfigure Neutron §2, Reconfigure a single service §2; site.yml:88-103, :105-328 (final check at :319-324); roles/haproxy-config/tasks/main.yml:23-50, group_vars/all.yml:1067; roles/neutron/tasks/reconfigure.yml:2, roles/neutron/tasks/deploy.yml:13-23, roles/neutron/tasks/bootstrap_service.yml:2-21; kolla docker/neutron/neutron-server/extend_start.sh:5-13
One container-engine option (docker_graceful_timeout, docker_client_timeout, docker_restart_policy, docker_restart_policy_retry) the value goes into docker_common_options, which every container task passes, and into the systemd unit text of every container. compare_container compares the whole unit file with the rendered one, so the next check of every long-running container reports it as changed and its restart handler restarts it, rewriting the unit. One-shot containers have no unit. A docker_restart_policy change between unless-stopped and always renders the same Restart=always and changes nothing group_vars/all.yml:148, :151-162; library/kolla_container.py:357-389; module_utils/kolla_systemd_worker.py:20-40, :57-80, :155-168, :173-186; module_utils/kolla_container_worker.py:32, :58-65; module_utils/kolla_docker_worker.py:450-470; F16

Note

The first 2025.1 deploy or reconfigure after an upgrade from 2024.1 is a large workload with no operator change at all CODE: the 2025.1 unit template adds PartOf=kolla.target, so every container whose unit 2024.1 wrote is reported as changed at its first 2025.1 check, and on Docker hosts outside the Red Hat family the new default nofile ulimits make most containers be recreated (F16; module_utils/kolla_systemd_worker.py:20-40, :155-168; group_vars/all.yml:201-224); and every messaging service now renders the queue manager, transient quorum queues and stream fanout (group_vars/all.yml:292; e.g. roles/nova-cell/templates/nova.conf.j2:201-206; F17). The checks to make before that run are in Predict and inspect a run §2.

And independently of restarts, every run pays the per-host work CODE. Still holds in 2025.1: every full deploy or reconfigure makes 10 compare_container calls per compute (common 3, iscsid with Cinder LVM, openvswitch 2, neutron 1, nova-cell 3), each one a kolla_set_configs --check exec in the container once it exists and no compared parameter differs (roles/common/tasks/check-containers.yml:2-3, roles/nova-cell/tasks/check-containers.yml:2-3, roles/openvswitch/tasks/check-containers.yml:2-3, roles/neutron/tasks/check-containers.yml:2-3, roles/iscsi/tasks/check-containers.yml:2-3, all through roles/service-check-containers/tasks/main.yml:4-29; module_utils/kolla_container_worker.py:58-65; module_utils/kolla_docker_worker.py:146-181, Podman module_utils/kolla_podman_worker.py:524-552). The common three run only when the common play runs (no tag or -t common, site.yml:88-103). The remote module invocations of a no-change -t nova run, 29 per compute in 2025.1 (27 in 2024.1), are counted from the task files in Compute scaling §2. The number of task results per compute is NOT AVAILABLE.

To remember

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

  • One option for nova-compute in nova/nova-compute.conf is not small: it targets every compute, all at once. Changed in 2025.1: only nova_compute restarts, since loop-notify is gone; nova/<host>/nova-compute.conf reaches that compute only. CODE
  • Changed in 2025.1: a rebuilt image of one service, once pulled, restarts the containers of that image only, no longer their siblings. CODE
  • One extra controller changes the transport URL in every messaging service everywhere.
  • One container-engine option such as docker_graceful_timeout changes the systemd unit of every container, and the next check of each container reports it as changed. CODE
  • Every run pays the per-host work: every full deploy or reconfigure makes 10 compare_container calls per compute, independently of restarts. 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: A one-line nova-compute change

Your cloud has 40 computes. A ticket asks you to change one option for nova-compute on all of them. Your colleague says: "It's a one-line change in nova/nova-compute.conf, just run reconfigure -e kolla_serial=5 now and close the ticket."

What would you do?

See every choice explained
  • Best choice: Write the config first with genconfig, then apply it with deploy-containers --limit, batch by batch.. One option for nova-compute targets every compute CODE, and nova_compute restarts on each of them. The page points to the pattern "Write config first, apply in controlled batches": genconfig, then deploy-containers --limit batch by batch.
  • Avoid: Run the reconfigure -e kolla_serial=5 as suggested.. In 2025.1 reconfigure adds its own kolla_serial=0 after yours CODE, so all 40 computes restart nova_compute in one batch (R32). deploy -e kolla_serial=5 would batch the same tasks.
  • Works, but risky: Run reconfigure on all computes in one go, but only at night.. The time of day does not change the size of the change: it still targets every compute at once. The page's pattern applies the config in controlled batches with deploy-containers --limit.
Scenario 2: Raise the stop timeout

A colleague wants heat-engine to get more time to stop cleanly, and proposes to raise docker_graceful_timeout from 60 to 300 in globals.yml and run reconfigure -t heat, "since only Heat is concerned".

What would you know before you agree?

See every choice explained
  • Best choice: That the value is part of the systemd unit of every container, so the next check of each container the run reaches reports a change and restarts it; plan it as a fleet-wide restart, in batches.. docker_graceful_timeout goes into docker_common_options, which every container task passes, and into the unit text; compare_container compares the whole unit file CODE. -t heat reaches only the Heat containers, but every later run that checks another container restarts it.
  • Avoid: Nothing: a stop timeout only matters when a container stops, so the change restarts nothing.. The unit text changes, and compare_container reports a container as changed when its unit file differs from the rendered one CODE; the restart handler then restarts it.
  • Works, but risky: That only Heat will ever see the new value, because the run is tagged heat.. The tag limits which containers this run checks, not which containers the global value reaches: the next untagged or other-tag run checks the other containers against the new unit text and restarts them CODE.

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. You change one option for nova-compute in /etc/kolla/config/nova/nova-compute.conf. Why is it a large change?
Show the answer

Answer: It targets every compute, and nova_compute restarts on all of them at once. First row of the table. In 2025.1 the restart is nova_compute only, but on every compute.

2. In 2025.1, the image of one service is rebuilt and pulled. What else restarts?
Show the answer

Answer: Nothing else: only the containers of that image. Row "Rebuilt image of one service": the shared check notifies only the containers whose comparison changed.

3. You change docker_graceful_timeout. Which containers can a later run restart?
Show the answer

Answer: Every long-running container it checks, because their systemd unit text changed. Row "One container-engine option" CODE.

4. Does a run with no change cost anything per compute?
Show the answer

Answer: Yes: every full deploy or reconfigure makes 10 compare_container calls per compute. Every run pays the per-host work CODE, independently of restarts.