diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-02-01 23:54:36 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-02-01 23:54:36 +0000 |
| commit | 03a028e62157a3f5160d60c146ba52cd0ca79dbc (patch) | |
| tree | 104e1db4ee73cd45d552f51a2e5904ead1c0ff9e /nova/virt | |
| parent | b295eef98a81430079440fcaaf03c07939306d9d (diff) | |
| parent | 605c22b1804f0a34d400eb57e1954c3fc3a20c88 (diff) | |
Merge "Optionally pass a instance uuid to log methods."
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/libvirt/connection.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nova/virt/libvirt/connection.py b/nova/virt/libvirt/connection.py index d7bf5f406..c5e939a5b 100644 --- a/nova/virt/libvirt/connection.py +++ b/nova/virt/libvirt/connection.py @@ -690,7 +690,8 @@ class LibvirtConnection(driver.ComputeDriver): block_device_info=block_device_info) domain = self._create_new_domain(xml) - LOG.debug(_("instance %s: is running"), instance['name']) + LOG.debug(_("instance %s: is running"), instance['name'], + instance=instance) self.firewall_driver.apply_instance_filter(instance, network_info) def _wait_for_boot(): @@ -701,12 +702,12 @@ class LibvirtConnection(driver.ComputeDriver): state = self.get_info(instance_name)['state'] except exception.NotFound: msg = _("During reboot, %s disappeared.") % instance_name - LOG.error(msg) + LOG.error(msg, instance=instance) raise utils.LoopingCallDone if state == power_state.RUNNING: msg = _("Instance %s spawned successfully.") % instance_name - LOG.info(msg) + LOG.info(msg, instance=instance) raise utils.LoopingCallDone timer = utils.LoopingCall(_wait_for_boot) |
