Add logs to javelin2
Make it easier to understand what is happening during a create,
especially how to detect when a create is short circuited.
Change-Id: I60f96fa14406be5ec965389ca80e337c0d62ca54
diff --git a/tempest/cmd/javelin.py b/tempest/cmd/javelin.py
index 96bbd03..cb50f49 100755
--- a/tempest/cmd/javelin.py
+++ b/tempest/cmd/javelin.py
@@ -308,6 +308,7 @@
def create_images(images):
if not images:
return
+ LOG.info("Creating images")
for image in images:
client = client_for_user(image['owner'])
@@ -315,6 +316,7 @@
r, body = client.images.image_list()
names = [x['name'] for x in body]
if image['name'] in names:
+ LOG.info("Image '%s' already exists" % image['name'])
continue
# special handling for 3 part image
@@ -372,10 +374,12 @@
def create_servers(servers):
if not servers:
return
+ LOG.info("Creating servers")
for server in servers:
client = client_for_user(server['owner'])
if _get_server_by_name(client, server['name']):
+ LOG.info("Server '%s' already exists" % server['name'])
continue
image_id = _get_image_by_name(client, server['image'])['id']