Remove MigrationPreCheckClientException
Commit c2f57a126f
removes last raise place of this exception
Change-Id: I9ab1b2a064e09f8af69d1783675070e24ede5cf8
This commit is contained in:
parent
10c1c3cbc1
commit
13f4127c9d
|
@ -252,7 +252,6 @@ class ComputeTaskManager(base.Base):
|
|||
exception.HypervisorUnavailable,
|
||||
exception.InstanceInvalidState,
|
||||
exception.MigrationPreCheckError,
|
||||
exception.MigrationPreCheckClientException,
|
||||
exception.LiveMigrationWithOldNovaNotSupported,
|
||||
exception.UnsupportedPolicyException)
|
||||
@targets_cell
|
||||
|
@ -430,7 +429,6 @@ class ComputeTaskManager(base.Base):
|
|||
exception.HypervisorUnavailable,
|
||||
exception.InstanceInvalidState,
|
||||
exception.MigrationPreCheckError,
|
||||
exception.MigrationPreCheckClientException,
|
||||
exception.LiveMigrationWithOldNovaNotSupported,
|
||||
exception.MigrationSchedulerRPCError) as ex:
|
||||
with excutils.save_and_reraise_exception():
|
||||
|
|
|
@ -1329,10 +1329,6 @@ class MigrationPreCheckError(MigrationError):
|
|||
msg_fmt = _("Migration pre-check error: %(reason)s")
|
||||
|
||||
|
||||
class MigrationPreCheckClientException(MigrationError):
|
||||
msg_fmt = _("Client exception during Migration Pre check: %(reason)s")
|
||||
|
||||
|
||||
class MigrationSchedulerRPCError(MigrationError):
|
||||
msg_fmt = _("Migration select destinations error: %(reason)s")
|
||||
|
||||
|
|
|
@ -279,12 +279,6 @@ class MigrateServerTestsV21(admin_only_action_common.CommonTests):
|
|||
self._test_migrate_live_failed_with_exception(
|
||||
exception.MigrationPreCheckError(reason=''))
|
||||
|
||||
def test_migrate_live_migration_precheck_client_exception(self):
|
||||
self._test_migrate_live_failed_with_exception(
|
||||
exception.MigrationPreCheckClientException(reason=''),
|
||||
expected_exc=webob.exc.HTTPInternalServerError,
|
||||
check_response=False)
|
||||
|
||||
def test_migrate_live_migration_with_unexpected_error(self):
|
||||
self._test_migrate_live_failed_with_exception(
|
||||
exception.MigrationError(reason=''),
|
||||
|
|
|
@ -2109,7 +2109,6 @@ class ConductorTaskTestCase(_BaseTaskTestCase, test_compute.BaseTestCase):
|
|||
exc.HypervisorUnavailable(host='dummy'),
|
||||
exc.LiveMigrationWithOldNovaNotSupported(),
|
||||
exc.MigrationPreCheckError(reason='dummy'),
|
||||
exc.MigrationPreCheckClientException(reason='dummy'),
|
||||
exc.InvalidSharedStorage(path='dummy', reason='dummy'),
|
||||
exc.NoValidHost(reason='dummy'),
|
||||
exc.ComputeServiceUnavailable(host='dummy'),
|
||||
|
|
Loading…
Reference in New Issue