Instruct container-status validation to accept 137, 142 and 143 exit code status

This patch makes the validations aware of those exit code status and
accept them as not a validation failure.

Below, the upstream patches for tripleo-ansible[1] and paunch[2]:

[1] - https://review.opendev.org/q/I8f19a80016a67ccad0371c5d108516aec640f031
[2] - https://review.opendev.org/q/Iffcfc8bd18a999ae6921a4131d40241df40050f1

PS1: This patch needs to be back ported to Wallaby, but also to Victoria
and Ussuri for keeping the history clean.

PS2: This validation depends on the tripleo-ansible-inventory[3] script
to get the overcloud `container_cli` var, but that latter is not operable
anymore on the stable branches above. In conclusion, this validation
will be considered as broken until the inventory is fixed.

Partial-fix: rhbz#2040667

Signed-off-by: Gael Chamoulaud (Strider) <gchamoul@redhat.com>
Change-Id: I6febdcae790075a8b3ac1323e8b1c189882005b3
This commit is contained in:
Gael Chamoulaud (Strider) 2022-01-14 15:32:07 +01:00
parent 68a4567b2a
commit 8989c8c03e
No known key found for this signature in database
GPG Key ID: 4119D0305C651D66
1 changed files with 1 additions and 1 deletions

View File

@ -44,5 +44,5 @@
- name: Fail if we detect failed containers
fail:
msg: "Failed container detected: {{ item }}."
when: item is not match(".* Exited \(0\) .* ago")
when: item is not match(".* Exited \((0|137|142|143)\) .* ago")
loop: "{{ failed_containers.stdout_lines }}"