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
This commit is contained in:
parent
b86c304a29
commit
40cf91aab6
@ -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..."
|
||||
|
Loading…
Reference in New Issue
Block a user