aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-01-13 13:53:29 +0000
committerGerrit Code Review <review@openstack.org>2017-01-13 13:53:29 +0000
commitdf375fcb87c36be619a9a6fb973358157d5c43da (patch)
tree6006fb87f9b47b32bc5e48757467805f78a0e06c
parent8d78e23336b45a67e4214ca747c5aa309b345d1a (diff)
parent1063f736205b52d341171eabe769813fb6b79655 (diff)
downloadkolla-ansible-df375fcb87c36be619a9a6fb973358157d5c43da.tar.gz
kolla-ansible-df375fcb87c36be619a9a6fb973358157d5c43da.zip
Merge "Fix cleanup-containers"
-rwxr-xr-xtools/cleanup-containers2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cleanup-containers b/tools/cleanup-containers
index 099e5b234..514befb5c 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."