Skip to content

Commit 3cbb45a

Browse files
committed
CI: monasca: ignore exited monasca_thresh container
Ignore the monasca_thresh container if it is listed as exited. The container was recently changed to operate as a 'one shot' container, submitting a job to storm then exiting. This does not fit with the usual pattern of Kolla Ansible container usage, but is harmless. Depends-On: https://review.opendev.org/c/openstack/kolla/+/812203 Change-Id: Id40d2260a67ef604255fb1818d41cdcbc73164d7 (cherry picked from commit 3b22d33)
1 parent f6fa470 commit 3cbb45a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

tests/check-failure.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,17 @@ check_failure() {
2323
unhealthy_containers=$(sudo docker ps -a --format "{{.Names}}" \
2424
--filter health=unhealthy)
2525

26-
if [[ -n "$failed_containers" ]]; then
26+
if [[ -n "$unhealthy_containers" ]]; then
2727
exit 1;
2828
fi
2929

30-
if [[ -n "$unhealthy_containers" ]]; then
30+
# NOTE(mgoddard): monasca-thresh is a one-shot container that exits but
31+
# remains in place, leaving it with a status of exited. This is harmless.
32+
if [[ "$failed_containers" = "monasca_thresh" ]]; then
33+
exit 0
34+
fi
35+
36+
if [[ -n "$failed_containers" ]]; then
3137
exit 1;
3238
fi
3339
}

0 commit comments

Comments
 (0)