diff options
| author | Bertrand Lanson <bertrand.lanson@infomaniak.com> | 2026-02-16 14:29:09 +0100 |
|---|---|---|
| committer | Bertrand Lanson <bertrand.lanson@infomaniak.com> | 2026-02-16 14:32:39 +0100 |
| commit | a6621d833c0d0f4e3b3c23d0a3d4591d559295a0 (patch) | |
| tree | 08d1293c34497cac9fede4b7df7ab94b7a99b086 /roles/kolla-ansible-reconfigure | |
| parent | a24b933e8eb557ab5edf1c5cfea95db06cbd74a6 (diff) | |
| download | kolla-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/kolla-ansible-reconfigure')
| -rw-r--r-- | roles/kolla-ansible-reconfigure/tasks/main.yml | 16 |
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' |
