Skip to content

Commit

Permalink
sleep for a few seconds to make sure vm is completely shut down befor…
Browse files Browse the repository at this point in the history
…e snapshot
  • Loading branch information
atj committed Jan 16, 2018
1 parent 927d9ec commit 827676f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Scripts/CreateBuilderImage
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,13 @@ openstack server stop ${VM_UUID}
until openstack server list --status SHUTOFF | grep ${VM_UUID} > /dev/null 2>&1; do
sleep 1
done
echo -ne "\b"
echo -ne "\n"

echo "Sleeping for a bit to make sure builder is completely shut down"
sleep 20

echo "Creating builder snapshot image"
openstack server image create --wait --name BuilderImage ${VM_UUID} &> /dev/null
openstack server image create --wait --name BuilderImage ${VM_UUID}

echo "Deleting builder master instance"
openstack server delete --wait BuilderMaster
Expand Down

0 comments on commit 827676f

Please sign in to comment.