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
This commit is contained in:
parent
d802d80704
commit
f5fa022468
|
@ -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'], },
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue