aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2023-09-11 15:22:14 +0000
committerGerrit Code Review <review@openstack.org>2023-09-11 15:22:14 +0000
commitb5aa2890c11ad78c29c23b99c4e5398240559a03 (patch)
treef734af2bdfc916e136aff0b2920eb98942ab5316
parent59514880271d734efdce5de624d7c59134c38bef (diff)
parent40cf91aab62481429d012c7dffbe8d5897f220de (diff)
downloadkolla-ansible-b5aa2890c11ad78c29c23b99c4e5398240559a03.tar.gz
kolla-ansible-b5aa2890c11ad78c29c23b99c4e5398240559a03.zip
Merge "cleanup: fix cleanup containers"
-rwxr-xr-xtools/cleanup-containers3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
index 549fa553d..d2759c598 100755
--- a/tools/cleanup-containers
+++ b/tools/cleanup-containers
@@ -42,7 +42,10 @@ fi
echo "Stopping containers..."
for container in ${containers_to_kill}; do
+sudo systemctl disable kolla-${container}-container.service
sudo systemctl stop kolla-${container}-container.service
+sudo systemctl is-failed kolla-${container}-container.service && \
+sudo systemctl reset-failed kolla-${container}-container.service
done
echo "Removing containers..."