summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2015-09-14 16:41:13 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2015-09-16 14:55:44 +0000
commit18aac91ea1633269c97adbf01f9276cb0bcf0e2c (patch)
tree92f2a20134c2045c11bf8ba1876a893431917236
parent56291eabe04de9fa1944d41950c902dbc403c6a5 (diff)
downloadciat-tester-18aac91ea1633269c97adbf01f9276cb0bcf0e2c.tar.gz
Improve logging.
-rwxr-xr-xopenstack/tester3
1 files changed, 3 insertions, 0 deletions
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