summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2013-09-05 15:50:04 +0200
committervarac <varacanero@zeromail.org>2013-09-05 15:50:04 +0200
commit13b72ce86299844139e426f08054d02d05ed9c92 (patch)
treebaae7df3023fe2f2be67bed172107643ab604b8c
parent387599d48149d02038a3337463267cc64a47b778 (diff)
revert_instance_from_snapshot.sh: ERROR: No nw_info cache associated with instance (Feature #3743)
-rwxr-xr-xrevert_instance_from_snapshot.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/revert_instance_from_snapshot.sh b/revert_instance_from_snapshot.sh
index b2a196f..ae003ee 100755
--- a/revert_instance_from_snapshot.sh
+++ b/revert_instance_from_snapshot.sh
@@ -80,6 +80,8 @@ do
nova floating-ip-create > /dev/null
done
+
+
echo
echo "Deleting $instance"
nova delete $instance
@@ -97,7 +99,12 @@ echo $result
newid=`echo "$result" | grep '| id ' | cut -d '|' -f 3 | sed 's/ //g' `
echo
-echo "New ID for instance $instance: $newid"
+echo "New ID for instance $instance: $newid, sleeping 5s so fixed IP shows up for instance"
+echo
+
+# todo: check every sec for fixed ip to show up
+# https://leap.se/code/issues/3743
+sleep 5
for ip in $float_ips
do
@@ -105,6 +112,7 @@ do
nova add-floating-ip $newid $ip
done
+
nova list
echo