Common: fluentd, cron, kolla_toolbox¶
This page is the starting point for the common role: the containers fluentd, kolla_toolbox and cron, on the
compute, control, monitoring, network and storage nodes of the example inventory. In 2025.1 the role is still no meta
dependency of any other role (no roles/*/meta directory): it runs only in its own play, "Apply role common", on the
groups cron, fluentd, kolla-logs and kolla-toolbox, with the play tag common (site.yml:88-103). -t common
therefore runs it, and a service tag such as -t nova does not CODE. Changed in 2025.1 CODE: the 2024.1 step
that pulled the fluentd image and read its labels during the config step is gone; the fluentd command, file names and
user are fixed to fluentd (roles/common/templates/fluentd.json.j2:2-8). The config step now also writes
/etc/systemd/system/kolla.target on every host of the play (roles/common/tasks/config.yml:54-58), and the restart
decision moved to the shared service-check-containers role. The lists below say where the study covers how to
operate it, its impact, its dependencies and the evidence, what to check around a run and what stays open; the service
card follows them.
Where to look¶
Operate¶
- Scenario: Apply
commonchanges (fluentd, cron, kolla_toolbox) - Command: Apply
commonchanges (fluentd, cron, kolla_toolbox) §1.1:kolla-ansible reconfigure -i multinode -t common, optionally with--limit(2024.1 form:kolla-ansible -i multinode -t common reconfigure)
Impact and risk¶
- What the tag executes (
common): Tags §3 and Tags §3.1, rowscommon; why the tag reaches the included tasks: Tags §2.1 - Risks: R2; R25 does not apply to 2025.1 (the risk register keeps the entry and says why)
Dependencies¶
- Dependencies: Component dependencies §1, Component dependencies §2 (row "Fluentd"), Component dependencies §5
- Image registry, changed in 2025.1: the config step no longer touches the image. 2024.1 ran
kolla_containerensure_imageon the fluentd image and read its labels withdocker_image_infoorpodman_image_info; 2025.1 has neither task (roles/common/tasks/config.yml:1-289), sogenconfigand-t commonneed no registry access. The image is pulled bypull, or by the container creation ofdeployCODE. - CA certificates, new in 2025.1: with
kolla_copy_ca_into_containers, theconfig.jsonof all three containers copies/etc/kolla/<container>/ca-certificatesinto/var/lib/kolla/share/ca-certificates(roles/common/templates/cron.json.j2:10-16,fluentd.json.j2:9-15,kolla-toolbox.json.j2:21-27), which the container's start script installs (Kolla images §2.4) CODE.
Evidence¶
- Fact sheet: – (see Repository architecture
§5.1, which also records that the
common_runguard is gone) - Image side: Kolla images §5 (rows
fluentd,cron,kolla-toolbox) - Also: Apply
commonchanges (fluentd, cron, kolla_toolbox); handlers: Tags §5
What changed in 2025.1¶
Read in the 2025.1 sources and compared with 2024.1 CODE:
| Item | 2025.1 | Evidence |
|---|---|---|
| Restart decision | The config tasks notify no handler; check-containers.yml imports service-check-containers, which notifies only the handlers of the containers that compare_container reports changed. The handlers lost their kolla_action != "config" guard |
roles/; roles/, :104-169; roles/; roles/ |
| fluentd image labels | No ensure_image, no image label read: the command is fluentd -c /etc/ and the owner of every path is fluentd. The rendered file is fluentd.conf (2024.1: td-agent.conf) |
roles/; roles/; kolla docker/ |
| fluentd read positions | pos_file /var/ in every input (2024.1: /var/) |
roles/; 10-openvswitch.conf.j2:4, :19 |
| New fluentd inputs | 13-uwsgi.conf.j2 (always: the *-uwsgi.log files of the enabled OpenStack services, which 00-global now excludes), 14-valkey.conf.j2 with enable_valkey; OVN SB relay logs on ovn-sb-db-relay hosts. enable_watch_timer is now the variable fluentd_enable_watch_timer (default "false", as before) |
roles/; roles/; 00-global.conf.j2:12; 10-openvswitch.conf.j2:67-84; roles/ |
| fluentd outputs | Elasticsearch and OpenSearch outputs gain a second <match retry_es> / <match retry_os> block with its own buffer path, and the main block sets retry_tag |
roles/, 03-opensearch.conf.j2:1-44 |
| Logrotate | logrotate.conf can be overridden per host or globally (<node_custom_config>/); new entries valkey and opensearch-dashboards (split from opensearch); swift gone |
roles/ |
kolla.target |
Written on every host of the play, from kolla.target.j2; every container unit is PartOf=kolla.target (F16). Nothing enables or starts the target |
roles/ |
| EL10 hosts | /var/ created (root:systemd-journal, 2755) when the base distro is CentOS Stream 10 or Rocky 10 |
roles/ |
| kolla_toolbox | Same kolla_toolbox sleep loop; the image ships ansible-core==2.18.* (2024.1: 2.16) |
kolla docker/, docker/ |
| Image names | docker_image_name_prefix added to the three image names |
roles/ |
Before and after a run¶
- Pre-execution checklist, step 7 (scope):
-t commonruns the common role in its own play, and service tags do not run it (site.yml:88-103,roles/common/tasks/main.yml:2). - R2, precautions: treat
enable_*changes as fleet-wide changes for thecommonplay; roll out with--limitbatches ordeploy -e kolla_serial=N(the play hasserial: kolla_serial,site.yml:95;reconfigureforceskolla_serial=0, F19). - Registry: changed in 2025.1,
genconfigand the config step no longer need the fluentd image or the registry (Dependencies) CODE. - Apply
commonchanges (fluentd, cron, kolla_toolbox) §4, verification: before,genconfig, thenkolla_set_configs --checkin each offluentd,cronandkolla_toolbox; a 1 in one of them restarts that container only (loop-notify is gone, F1). The check now covers thecommandas well, but not the image or the volumes, whichcompare_containercompares itself. After,docker psshows fresh start times,docker logs fluentdhas no parse errors and logs still reach the configured output. - Tags §3.1, row
common: config files that can change:config.json,fluentd.conf, the cronlogrotate.confand the kolla_toolbox files, on every host ofcommonCODE (roles/common/tasks/config.yml:60-289); safe on its own: "yes; the way to push common config fleet-wide". - First 2025.1 run after the upgrade CODE: the fluentd
config.jsonchanges source file (fluentd.confinstead oftd-agent.conf,roles/common/templates/fluentd.json.j2:5-6), and the systemd unit text of every container changed (F16), so all three common containers restart at their first 2025.1 check, on every host of the play at once unless batched. Thetd-agent.confwritten by 2024.1 stays in/etc/kolla/fluentd/; no task removes it.
Known limits and open points¶
- F2, "
-t commonis a no-op": does not hold in 2025.1. The tagcommonis on the play (site.yml:100-101), and the tasks of the dynamic include inroles/common/tasks/main.yml:2inherit it (ansible-core 2.18.20lib/ansible/playbook/block.py:309-359;tagsis an extending field,lib/ansible/playbook/taggable.py:40) CODE (Applycommonchanges §2). The reverse surprise stays: a tagged service run does not apply pendingcommonchanges, which wait for an untagged run or-t common. - F1, "Loop-notify amplification": no longer holds in 2025.1. A change for one common
container restarts that container only (
roles/service-check-containers/tasks/main.yml:34-41) CODE. - F16: a common container whose systemd unit was written by 2024.1 code is reported as
changed at its first 2025.1 check; with Docker on Debian or Ubuntu the new default
nofileulimit recreates it CODE. - Q10 compares Ansible 2.8.20 and 2.9.27 and does not cover ansible-core 2.18.20; for 2025.1, F1 and F2 are settled by the code cited in the items above.
- F6, "Global inputs are rendered into per-host files": for
common, theenable_*flags of the OpenStack services (fluentd_input_openstack_services,roles/common/defaults/main.yml:146-201) and the logrotate services list (roles/common/tasks/config.yml:178-228) end up influentd.confandlogrotate.confon every common host CODE. Flags worth knowing in 2025.1:enable_valkey(defaultno,group_vars/all.yml:965) adds the valkey input tofluentd.confon every fluentd host and the valkey entry tologrotate.confon every cron host (roles/common/tasks/config.yml:136-137,:225). The Octavia jobboard (on by default with Octavia and the amphora driver,group_vars/all.yml:950) needs Redis or Valkey (roles/octavia/tasks/precheck.yml:68-71), so enabling Octavia's jobboard backend changes the common files on every host;enable_redis(defaultno,group_vars/all.yml:959) still changeslogrotate.confon every cron host (roles/common/tasks/config.yml:221);enable_letsencrypt(defaultno,group_vars/all.yml:913) adds the11-letsencrypt.conf.j2input tofluentd.confon every fluentd host (roles/common/tasks/config.yml:130-131). Acron-logrotate-letsencrypt.conf.j2template exists, butletsencryptis still not in the logrotate list (:178-228), so it is never rendered;enable_ovn(group_vars/all.yml:952) adds OVN log inputs tofluentd.conf, but only on the hosts of theovn-controller,ovn-nb-db,ovn-northd,ovn-sb-dbandovn-sb-db-relaygroups (roles/common/templates/conf/input/10-openvswitch.conf.j2:31-85).
- The 2024.1 point on OVN read positions is gone: every input now writes its positions under
/var/run/fluentd/CODE. - What is not known: the sources do not
establish whether restarts that touch none of the containers the study traces to running VMs (the
commoncontainers, the control-plane services) affect running VMs, APIs or traffic another way. - What is not known,
row "fluentd": the sources do not establish whether the tail read positions (in
/var/run/fluentd/, on no volume,roles/common/templates/conf/input/00-global.conf.j2:13,roles/common/defaults/main.yml:110-116) survive a config-only restart, and whether they are lost on a recreate. - Journal input: with
enable_fluentd_systemd,config.jsonaskskolla_set_configsto chown/var/log/journalrecursively tofluentd(roles/common/templates/fluentd.json.j2:30-36), while the volume is mounted read-only (roles/common/defaults/main.yml:116). A failed chown is logged and does not stop the start (kolladocker/base/set_configs.py:365-369) CODE; whether fluentd can then read the journal is NOT AVAILABLE. - Kolla images §6, item 9: a changed
rabbitmq_cluster_cookierecreates the brokers but their cookie file keeps the old value, whilekolla_toolboxgets the new one CODE (consequences NOT AVAILABLE).
Service card¶
The rows of the card are explained in How to read a service card.
| Item | Value |
|---|---|
| Play | site.yml:88 |
| Tags | common |
| Play host patterns | cron, fluentd, kolla-logs, kolla-toolbox |
| Node types in play (example inventory) | compute, control, monitoring, network, storage |
| Node types running its containers | compute, control, monitoring, network, storage |
| Containers | fluentd, kolla_toolbox, cron |
deploy/reconfigure flow (tasks/) |
config → check-containers → bootstrap → flush handlers |
| Task files | bootstrap.yml, check-containers.yml, check.yml, config.yml, config_validate.yml, copy-certs.yml, deploy-containers.yml, deploy.yml, main.yml, precheck.yml, pull.yml, reconfigure.yml, stop.yml, upgrade.yml |
| Templates | admin-openrc-system.sh.j2, admin-openrc.sh.j2, clouds.yaml.j2, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, conf/, cron-logrotate-ansible.conf.j2, cron-logrotate-aodh.conf.j2 … (+62) |
| Handlers (definition order) | Restart fluentd container; Restart kolla-toolbox container; Initializing toolbox container using normal user; Restart cron container |
| Key variables | enable_fluentd, enable_* (all, via td-agent/, elasticsearch_address, enable_monasca |
| Role dependencies | none |
Related¶
- Apply
commonchanges (fluentd, cron, kolla_toolbox) — the commands that pushcommonchanges, what restarts and how to verify - Chrony —
-t chrony, the Ussuri way to pushcommonchanges; no chrony role or play in 2025.1 - Tags §2.1 — the tag semantics that make
-t commonwork in 2025.1 - Repository architecture §5.1 —
the
common_runguard (gone since 2023.1) and the globalfluentdandcronconfigs - Findings F16 — the first 2025.1 check of a container whose unit 2024.1 wrote
- Why a small change creates a large workload —
enable_<new service>: yeschanges fluentd/logrotate on every host - Components — the other component pages