aboutsummaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorBertrand Lanson <bertrand.lanson@infomaniak.com>2026-02-16 14:29:09 +0100
committerBertrand Lanson <bertrand.lanson@infomaniak.com>2026-02-16 14:32:39 +0100
commita6621d833c0d0f4e3b3c23d0a3d4591d559295a0 (patch)
tree08d1293c34497cac9fede4b7df7ab94b7a99b086 /roles
parenta24b933e8eb557ab5edf1c5cfea95db06cbd74a6 (diff)
downloadkolla-ansible-a6621d833c0d0f4e3b3c23d0a3d4591d559295a0.tar.gz
kolla-ansible-a6621d833c0d0f4e3b3c23d0a3d4591d559295a0.zip
ci: improve verbosity of idempotence check
We print the list of containers that failed idempotence check if the check fails to avoid having to dig in logs just to know which containers have failed the check. Change-Id: Ice16753fba80e5fac437c9738f6258be2c2684ab Signed-off-by: Bertrand Lanson <bertrand.lanson@infomaniak.com>
Diffstat (limited to 'roles')
-rw-r--r--roles/kolla-ansible-reconfigure/tasks/main.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/roles/kolla-ansible-reconfigure/tasks/main.yml b/roles/kolla-ansible-reconfigure/tasks/main.yml
index 732d1912b..76c6ffec7 100644
--- a/roles/kolla-ansible-reconfigure/tasks/main.yml
+++ b/roles/kolla-ansible-reconfigure/tasks/main.yml
@@ -219,7 +219,13 @@
ansible.builtin.assert:
that:
- _deploy_docker_container_times == _reconfigure_docker_container_times
- fail_msg: Some containers were restarted or replaced during reconfigure!
+ fail_msg: |-
+ Some containers were restarted or replaced during reconfigure:
+ {% for name in _deploy_docker_container_times %}
+ {% if _deploy_docker_container_times[name] != _reconfigure_docker_container_times.get(name, {}) %}
+ - {{ name }}: {{ _deploy_docker_container_times[name].started_at }} -> {{ _reconfigure_docker_container_times.get(name, {}).get('started_at', 'MISSING') }}
+ {% endif %}
+ {% endfor %}
success_msg: "All containers stayed the same after reconfigure."
when:
- container_engine == 'docker'
@@ -228,7 +234,13 @@
ansible.builtin.assert:
that:
- _deploy_podman_container_times == _reconfigure_podman_container_times
- fail_msg: Some containers were restarted or replaced during reconfigure!
+ fail_msg: |-
+ Some containers were restarted or replaced during reconfigure:
+ {% for name in _deploy_podman_container_times %}
+ {% if _deploy_podman_container_times[name] != _reconfigure_podman_container_times.get(name, {}) %}
+ - {{ name }}: {{ _deploy_podman_container_times[name].started_at }} -> {{ _reconfigure_podman_container_times.get(name, {}).get('started_at', 'MISSING') }}
+ {% endif %}
+ {% endfor %}
success_msg: "All containers stayed the same after reconfigure."
when:
- container_engine == 'podman'