Change some print Info

Minor change

Change-Id: Ibf5f4b89164e0a92cd3234ad837006731aa13169
This commit is contained in:
Changbin Liu 2013-05-22 21:55:54 -04:00
parent 62d3598e6a
commit c31abdecc1
1 changed files with 5 additions and 4 deletions

View File

@ -178,7 +178,7 @@ class Orchestrator(object):
security_groups=self.security_groups,
userdata=self.userdata)
self._gateway_id = gateway.id
print "%s is being created" % gateway.name
print "Creating %s" % gateway
# launch chefserver
chefserver = self.client.servers.create(
@ -190,7 +190,7 @@ class Orchestrator(object):
userdata=self.userdata,
files=self.chefserver_files)
self._chefserver_id = chefserver.id
print "%s is being created" % chefserver.name
print "Creating %s" % chefserver
# launch controller
controller = self.client.servers.create(
@ -201,7 +201,7 @@ class Orchestrator(object):
security_groups=self.security_groups,
userdata=self.userdata)
self._controller_id = controller.id
print "%s is being created" % controller.name
print "Creating %s" % controller
# launch workers
for i in xrange(self.num_workers):
@ -213,7 +213,7 @@ class Orchestrator(object):
security_groups=self.security_groups,
userdata=self.userdata)
self._worker_ids.append(worker.id)
print 'name %s is being created' % worker.name
print "Creating %s" % worker
print ('wait at most %s seconds for servers to be ready (ssh-able)' %
self.timeout)
@ -253,6 +253,7 @@ class Orchestrator(object):
floating_ip = self.client.floating_ips.create()
self.client.servers.add_floating_ip(self._gateway_id, floating_ip)
self._gateway_floating_ip = floating_ip
print "Creating and associating %s" % floating_ip
def _get_server_info(self, _id):
"""