aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/scripts/lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mcp/scripts/lib.sh')
-rw-r--r--mcp/scripts/lib.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/mcp/scripts/lib.sh b/mcp/scripts/lib.sh
index ce5db251f..e7720d6fa 100644
--- a/mcp/scripts/lib.sh
+++ b/mcp/scripts/lib.sh
@@ -245,6 +245,10 @@ function cleanup_vms {
xargs --no-run-if-empty -I{} sudo rm -f {}
virsh undefine "${node}" --remove-all-storage --nvram
done
+ # Newer Fuel@OPNFV releases run containers that conflict with the infra VMs
+ if which docker > /dev/null 2>&1; then
+ docker ps -a -q --filter="name=fuel" | xargs --no-run-if-empty docker stop
+ fi
}
function prepare_vms {