[MGM] Provide a more useful log message when novaclient fails
Change-Id: I41cf2a2cc849a3dde898ec2277d1c3b57d331435
This commit is contained in:
@@ -70,11 +70,11 @@ class Node(object):
|
||||
node_id = uuid.uuid1()
|
||||
try:
|
||||
body = self._create(node_id)
|
||||
except exceptions.ClientException:
|
||||
raise BuildError(
|
||||
'Error creating node, exception {exc}'
|
||||
.format(exc=sys.exc_info()[0]), node_id
|
||||
)
|
||||
except exceptions.ClientException, e:
|
||||
msg = 'Error creating node, exception {exc}' \
|
||||
'Message: {msg} Details: {details}'
|
||||
raise BuildError(msg.format(exc=sys.exc_info()[0], msg=e.message,
|
||||
details=e.details), node_id)
|
||||
|
||||
return body['server']['id']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user