From 1063f736205b52d341171eabe769813fb6b79655 Mon Sep 17 00:00:00 2001 From: caowei Date: Thu, 12 Jan 2017 14:29:50 +0800 Subject: [PATCH] Fix cleanup-containers qemu-ga should be excluded Change-Id: I89474758a45e52c6c2da7307764344863e065aed Closes-Bug: #1655838 --- tools/cleanup-containers | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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."