From 18aac91ea1633269c97adbf01f9276cb0bcf0e2c Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Mon, 14 Sep 2015 16:41:13 +0100 Subject: Improve logging. --- openstack/tester | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openstack/tester b/openstack/tester index 153304c..8ba9764 100755 --- a/openstack/tester +++ b/openstack/tester @@ -155,6 +155,7 @@ class Deployment(object): # Deploy the image to openstack # TODO: Ensure this is cleaned up when something raises an exception + print('Uploading image to openstack host') args = ['glance', 'image-create', '--progress', '--name', hostname, '--disk-format', 'raw', @@ -172,6 +173,7 @@ class Deployment(object): # Boot an instance from the image # TODO: Ensure this is cleaned up when something raises an exception # TODO: use python-novaclient + print('Booting an instance from the image') args = ['nova', 'boot', '--flavor', self.flavour, '--image', hostname, @@ -193,6 +195,7 @@ class Deployment(object): time.sleep(20) # Assign a floating IP address + print('Requesting a floating IP address') for _ in xrange(5): ip_list = nc.floating_ips.list() free_ip = None -- cgit v1.2.1