unpause paused instances before terminating

This commit is contained in:
Anthony Young 2011-11-02 07:03:38 -05:00
parent 4bd41ad77f
commit 2cec3dc846

View file

@ -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