Skip to content

Commit

Permalink
Merge "Check for errors during nova service vm launch" into R2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 12, 2015
2 parents de76e30 + 04918d2 commit 906f313
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/config/svc-monitor/svc_monitor/nova_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ def _novaclient_exec(self, resource, oper, proj_name, **kwargs):
"Error: Multiple %s %s=%s found in project %s"
% (resource, kwargs.keys()[0], kwargs.values()[0], proj_name))
return None
except Exception:
except Exception as e:
self.logger.log("Error: nova error %s" % str(e))
return None

def oper(self, resource, oper, proj_name, **kwargs):
Expand Down
2 changes: 2 additions & 0 deletions src/config/svc-monitor/svc_monitor/virtual_machine_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def _create_svc_vm(self, instance_name, image_name, nics,
name=instance_name, image=image,
flavor=flavor, nics=nics_with_port,
availability_zone=avail_zone)
if not nova_vm:
return
nova_vm.get()
self.logger.log('Created VM : ' + str(nova_vm))

Expand Down

0 comments on commit 906f313

Please sign in to comment.