unpause paused instances before terminating
This commit is contained in:
parent
4bd41ad77f
commit
2cec3dc846
1 changed files with 1 additions and 0 deletions
|
@ -229,6 +229,7 @@ xe vm-list --minimal name-label="$LABEL" | xargs ./scripts/uninstall-os-vpx.sh
|
||||||
# Destroy any instances that were launched
|
# Destroy any instances that were launched
|
||||||
for uuid in `xe vm-list | grep -1 instance | grep uuid | sed "s/.*\: //g"`; do
|
for uuid in `xe vm-list | grep -1 instance | grep uuid | sed "s/.*\: //g"`; do
|
||||||
echo "Shutting down nova instance $uuid"
|
echo "Shutting down nova instance $uuid"
|
||||||
|
xe vm-unpause uuid=$uuid || true
|
||||||
xe vm-shutdown uuid=$uuid
|
xe vm-shutdown uuid=$uuid
|
||||||
xe vm-destroy uuid=$uuid
|
xe vm-destroy uuid=$uuid
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue