summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Laski <andrew.laski@rackspace.com>2013-03-15 13:48:55 -0400
committerAndrew Laski <andrew.laski@rackspace.com>2013-03-15 13:59:33 -0400
commitf5fa0224686c259188e6b85115fa16939c20cb29 (patch)
treebc3f2dce07401ba948c605f9146cb0828e56c6d3
parentd802d807049478d1fe30dedcbcdae28f666e61b3 (diff)
downloadnova-f5fa0224686c259188e6b85115fa16939c20cb29.tar.gz
nova-f5fa0224686c259188e6b85115fa16939c20cb29.tar.xz
nova-f5fa0224686c259188e6b85115fa16939c20cb29.zip
Reset migrating task state for more Exceptions
There are a number of exceptions that can occur during pre live-migration checks, and they should reset the task state to None when they occur since they prevent the migration from beginning. This adds two more exceptions to the list of exceptions that just need to reset the task state rather than set the instance to error. Bug 1100462 Change-Id: I95e09f49908fbc3a79f5d2eb490d5a0b3296a6ed
-rw-r--r--nova/scheduler/manager.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/nova/scheduler/manager.py b/nova/scheduler/manager.py
index 87b0a39c6..3124c6af9 100644
--- a/nova/scheduler/manager.py
+++ b/nova/scheduler/manager.py
@@ -97,7 +97,9 @@ class SchedulerManager(manager.Manager):
except (exception.ComputeServiceUnavailable,
exception.InvalidHypervisorType,
exception.UnableToMigrateToSelf,
- exception.DestinationHypervisorTooOld) as ex:
+ exception.DestinationHypervisorTooOld,
+ exception.InvalidLocalStorage,
+ exception.InvalidSharedStorage) as ex:
request_spec = {'instance_properties': {
'uuid': instance['uuid'], },
}