From 2cec3dc846e5202c2cdf0f3f829a588392514d74 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Wed, 2 Nov 2011 07:03:38 -0500 Subject: [PATCH] unpause paused instances before terminating --- tools/xen/build_domU.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/xen/build_domU.sh b/tools/xen/build_domU.sh index 8e40225..c7bb3d1 100755 --- a/tools/xen/build_domU.sh +++ b/tools/xen/build_domU.sh @@ -229,6 +229,7 @@ xe vm-list --minimal name-label="$LABEL" | xargs ./scripts/uninstall-os-vpx.sh # Destroy any instances that were launched for uuid in `xe vm-list | grep -1 instance | grep uuid | sed "s/.*\: //g"`; do echo "Shutting down nova instance $uuid" + xe vm-unpause uuid=$uuid || true xe vm-shutdown uuid=$uuid xe vm-destroy uuid=$uuid done