Skip to content

Commit

Permalink
Remove sg-core & prometheus containers with force
Browse files Browse the repository at this point in the history
Often times during unstack, containers get stuck in "Stopping" state and do not get cleaned up. These left over containers cause next run of stack.sh to fail because the script tries to spawn them with the name same.
  • Loading branch information
yadneshk authored Dec 4, 2023
1 parent 4d514d5 commit f7de929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devstack/plugin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ if is_service_enabled sg-core; then

if [[ "$1" == "unstack" ]]; then
$SG_CORE_CONTAINER_EXECUTABLE stop sg-core
$SG_CORE_CONTAINER_EXECUTABLE rm sg-core
$SG_CORE_CONTAINER_EXECUTABLE rm -f sg-core
fi

if [[ "$1" == "clean" ]]; then
Expand Down Expand Up @@ -121,7 +121,7 @@ if is_service_enabled sg-core; then

if [[ "$1" == "unstack" ]]; then
$PROMETHEUS_CONTAINER_EXECUTABLE stop prometheus
$PROMETHEUS_CONTAINER_EXECUTABLE rm prometheus
$PROMETHEUS_CONTAINER_EXECUTABLE rm -f prometheus
fi

if [[ "$1" == "clean" ]]; then
Expand Down

0 comments on commit f7de929

Please sign in to comment.