diff options
| author | caowei <cao.wei@99cloud.net> | 2017-01-12 14:29:50 +0800 |
|---|---|---|
| committer | caowei <cao.wei@99cloud.net> | 2017-01-12 18:22:38 +0800 |
| commit | 1063f736205b52d341171eabe769813fb6b79655 (patch) | |
| tree | 29ac97ff4ef340300538eee1d70e53ad0cec2aa2 /tools/cleanup-containers | |
| parent | adaabb9c4d3043a97b68b5b5d6e8e56406d95edf (diff) | |
| download | kolla-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-x | tools/cleanup-containers | 2 |
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." |
