Skip to content
Snippets Groups Projects
Commit 40cf91aa authored by Michal Nasiadka's avatar Michal Nasiadka
Browse files

cleanup: fix cleanup containers

Currently the script only stops containers and removes services,
without disabling service or removing symlink - which renders the
service in a not-found state.
After we disable and stop - some of the services end up in failed
state (due to wrong exit codes for various reasons) - running
reset-failed fixes that.

Change-Id: I637783ce758dbf1c2a7b4b99aa6b61e2c5ca1460
parent b86c304a
No related branches found
No related tags found
No related merge requests found
......@@ -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..."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment