

@atomic.action_timer('nova.rebuild_server')
def _rebuild_server(self, server, image, **kwargs):
    'Rebuild a server with a new image.\n\n        :param server: The server to rebuild.\n        :param image: The new image to rebuild the server with.\n        :param kwargs: Optional additional arguments to pass to the rebuild\n        '
    server.rebuild(self, **kwargs)
    time.sleep(CONF.benchmark.nova_server_rebuild_prepoll_delay)
    utils.wait_for(server, ready_statuses=['ACTIVE'], update_resource=utils.get_from_manager(), timeout=CONF.benchmark.nova_server_rebuild_timeout, check_interval=CONF.benchmark.nova_server_rebuild_poll_interval)

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/nova/utils.py NovaScenario._rebuild_server/VarMisuse@31/128 `image`->`self`