From 19a4caf006c1dc49605380b668344848b60f146d Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 20 Jun 2013 01:47:31 +0200 Subject: added script for reverting an instance from a snapshot, first version --- example/revert_instance_from_snapshot.log | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 example/revert_instance_from_snapshot.log (limited to 'example/revert_instance_from_snapshot.log') diff --git a/example/revert_instance_from_snapshot.log b/example/revert_instance_from_snapshot.log new file mode 100644 index 0000000..b1bf7ff --- /dev/null +++ b/example/revert_instance_from_snapshot.log @@ -0,0 +1,34 @@ +time ./revert_instance_from_snapshot.sh -i snapshot_test -s snap1 + +Querying snapshot_test... +Floating IPs: 192.168.11.7 192.168.11.8 +Removing floating ip 192.168.11.7 from snapshot_test +Re-allocating 192.168.11.7 to the floating-ip pool ++--------------+-------------+----------+------+ +| Ip | Instance Id | Fixed Ip | Pool | ++--------------+-------------+----------+------+ +| 192.168.11.7 | None | None | nova | ++--------------+-------------+----------+------+ +Removing floating ip 192.168.11.8 from snapshot_test +Re-allocating 192.168.11.8 to the floating-ip pool ++--------------+-------------+----------+------+ +| Ip | Instance Id | Fixed Ip | Pool | ++--------------+-------------+----------+------+ +| 192.168.11.8 | None | None | nova | ++--------------+-------------+----------+------+ +deleting snapshot_test +booting snapshot_test from snapshot +New ID for instance snapshot_test: 61722460-b18c-47dd-b20c-65bb62c01341 +Adding floating ip 192.168.11.7 to 61722460-b18c-47dd-b20c-65bb62c01341 +Adding floating ip 192.168.11.8 to 61722460-b18c-47dd-b20c-65bb62c01341 ++--------------------------------------+---------------+--------+--------------------------------------------------+ +| ID | Name | Status | Networks | ++--------------------------------------+---------------+--------+--------------------------------------------------+ +| 61722460-b18c-47dd-b20c-65bb62c01341 | snapshot_test | BUILD | private=192.168.10.2, 192.168.11.7, 192.168.11.8 | +| c522f43d-f9da-422e-bd53-821a1595fb28 | snapshot_test | ACTIVE | private=192.168.10.2 | ++--------------------------------------+---------------+--------+--------------------------------------------------+ + +Hang on and wait for the new instance (ID 61722460-b18c-47dd-b20c-65bb62c01341) to finish building before you try to login ! + +./revert_instance_from_snapshot.sh -i snapshot_test -s snap1 4.16s user 0.93s system 12% cpu 42.394 total + -- cgit v1.2.3