diff options
| author | Matt Dietz <matt.dietz@rackspace.com> | 2012-07-30 19:27:52 +0000 |
|---|---|---|
| committer | Matt Dietz <matt.dietz@rackspace.com> | 2012-07-30 19:27:52 +0000 |
| commit | a84c35d0830f68553cf9c814f7ae2eccf04b84e8 (patch) | |
| tree | 3d729ff662d7628822cacbaea3aed73ff807a30a /nova/compute | |
| parent | 115fea1f9fa0fdb93f344a8ef9dc8ce9ba3cf6e9 (diff) | |
Reverts fix lp1031004
The fix was incorrectly applied to the resize.end event. There was a
miscommunication about the resize.end versus resize.finish event
Change-Id: I301b46bbb7684d70946a426ce371eaf1198b97df
Diffstat (limited to 'nova/compute')
| -rw-r--r-- | nova/compute/manager.py | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/nova/compute/manager.py b/nova/compute/manager.py index 1bcc23a13..686409e47 100644 --- a/nova/compute/manager.py +++ b/nova/compute/manager.py @@ -1572,6 +1572,9 @@ class ComputeManager(manager.SchedulerDependentManager): self.compute_rpcapi.finish_resize(context, instance_ref, migration_id, image, disk_info, migration_ref['dest_compute']) + self._notify_about_instance_usage(context, instance_ref, "resize.end", + network_info=network_info) + def _finish_resize(self, context, instance, migration_ref, disk_info, image): resize_instance = False @@ -1647,17 +1650,6 @@ class ComputeManager(manager.SchedulerDependentManager): instance=instance) self._set_instance_error_state(context, instance['uuid']) - try: - network_info = self._get_instance_nw_info(context, instance) - except Exception, error: - with excutils.save_and_reraise_exception(): - msg = _('%s. Setting instance vm_state to ERROR') - LOG.error(msg % error) - self._set_instance_error_state(context, instance_uuid) - - self._notify_about_instance_usage(context, instance, "resize.end", - network_info=network_info) - @exception.wrap_exception(notifier=notifier, publisher_id=publisher_id()) @checks_instance_lock @wrap_instance_fault |
