aboutsummaryrefslogtreecommitdiff
path: root/tools/cleanup-containers
diff options
context:
space:
mode:
authorcaowei <cao.wei@99cloud.net>2017-01-12 14:29:50 +0800
committercaowei <cao.wei@99cloud.net>2017-01-12 18:22:38 +0800
commit1063f736205b52d341171eabe769813fb6b79655 (patch)
tree29ac97ff4ef340300538eee1d70e53ad0cec2aa2 /tools/cleanup-containers
parentadaabb9c4d3043a97b68b5b5d6e8e56406d95edf (diff)
downloadkolla-ansible-1063f736205b52d341171eabe769813fb6b79655.tar.gz
kolla-ansible-1063f736205b52d341171eabe769813fb6b79655.zip
Fix cleanup-containers
qemu-ga should be excluded Change-Id: I89474758a45e52c6c2da7307764344863e065aed Closes-Bug: #1655838
Diffstat (limited to 'tools/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."