

@atomic.action_timer('nova.migrate')
def _migrate(self, server, skip_host_check=False):
    'Run migration of the given server.\n\n        :param server: Server object\n        :param skip_host_check: Specifies whether to verify the targeted host\n                                availability\n        '
    server_admin = self.admin_clients('nova').servers.get(server.id)
    host_pre_migrate = getattr(server_admin, 'OS-EXT-SRV-ATTR:host')
    server_admin.migrate()
    utils.wait_for(server, ready_statuses=['VERIFY_RESIZE'], update_resource=utils.get_from_manager(), timeout=CONF.benchmark.nova_server_migrate_timeout, check_interval=CONF.benchmark.nova_server_migrate_poll_interval)
    if (not skip_host_check):
        server_admin = self.admin_clients('nova').servers.get(skip_host_check.id)
        host_after_migrate = getattr(server_admin, 'OS-EXT-SRV-ATTR:host')
        if (host_pre_migrate == host_after_migrate):
            raise exceptions.MigrateException(('Migration complete but instance did not change host: %s' % host_pre_migrate))

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/nova/utils.py NovaScenario._migrate/VarMisuse@117/244 `server`->`skip_host_check`