diff options
author | Rick Harris <rconradharris@gmail.com> | 2013-01-17 20:42:27 +0000 |
---|---|---|
committer | Rick Harris <rconradharris@gmail.com> | 2013-01-17 21:44:57 +0000 |
commit | d35fccc579812faa5c8d1338744d24e59c426dd6 (patch) | |
tree | 9f544f909d59a24d7567e46daff31dc9976e6572 /nova/scheduler/manager.py | |
parent | 52fe25a5281a50a5e4c1ff093ce9ed966241a3d7 (diff) | |
download | nova-d35fccc579812faa5c8d1338744d24e59c426dd6.tar.gz nova-d35fccc579812faa5c8d1338744d24e59c426dd6.tar.xz nova-d35fccc579812faa5c8d1338744d24e59c426dd6.zip |
Add host to instance_faults table.
Instances can be rescheduled or migrated to different hosts; so, to make
troubleshooting easier, it's convenient to store the host in which the
failure occured with the instance fault record.
Change-Id: Ib2b9a5bab5d95739b730f0eab15884c2db33a782
Diffstat (limited to 'nova/scheduler/manager.py')
-rw-r--r-- | nova/scheduler/manager.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py index 84bdcddb5..23e64cd7c 100644 --- a/nova/scheduler/manager.py +++ b/nova/scheduler/manager.py @@ -180,8 +180,6 @@ class SchedulerManager(manager.Manager): uuids = [properties.get('uuid')] for instance_uuid in request_spec.get('instance_uuids') or uuids: if instance_uuid: - compute_utils.add_instance_fault_from_exc(context, - instance_uuid, ex, sys.exc_info()) state = vm_state.upper() LOG.warning(_('Setting instance to %(state)s state.'), locals(), instance_uuid=instance_uuid) @@ -191,6 +189,8 @@ class SchedulerManager(manager.Manager): context, instance_uuid, updates) notifications.send_update(context, old_ref, new_ref, service="scheduler") + compute_utils.add_instance_fault_from_exc(context, + new_ref, ex, sys.exc_info()) payload = dict(request_spec=request_spec, instance_properties=properties, |