def test_migrate_live_compute_service_unavailable(self): self._test_migrate_live_failed_with_exception( exception.ComputeServiceUnavailable(host='host'))
def _check_host_is_up(self, host): service = objects.Service.get_by_compute_host(self.context, host) if not self.servicegroup_api.service_is_up(service): raise exception.ComputeServiceUnavailable(host=host)
def fake_migrate_server(self, context, instance, scheduler_hint, live, rebuild, flavor, block_migration, disk_over_commit): raise exception.ComputeServiceUnavailable(host='host')
def fake_scheduler_api_live_migration(context, dest, block_migration=False, disk_over_commit=False, instance=None, instance_id=None, topic=None): raise exception.ComputeServiceUnavailable(host='host')
def fake_get_host_uptime(context, hyp): raise exception.ComputeServiceUnavailable(host='dummy')
def fake_evacuate(*args, **kwargs): raise exception.ComputeServiceUnavailable("Service Unavailable")