diff --git a/tools/cleanup-containers b/tools/cleanup-containers index 099e5b234e..514befb5cd 100755 --- a/tools/cleanup-containers +++ b/tools/cleanup-containers @@ -1,5 +1,5 @@ #!/bin/bash -QEMU_PIDS=$(pgrep qemu) +QEMU_PIDS=$(pgrep -l qemu | awk '!/qemu-ga/ {print $1}') if [[ $COMPUTE ]] && [[ $QEMU_PIDS ]] && [[ $(ps --no-headers wwwup $QEMU_PIDS | grep --invert-match '\-xen\-domid 0') ]]; then echo "Some qemu processes were detected." echo "Docker will not be able to stop the nova_libvirt container with those running."