

@atomic.action_timer('nova.shelve_server')
def _shelve_server(self, server):
    'Shelve the given server.\n\n        Returns when the server is actually shelved and is in the\n        "SHELVED_OFFLOADED" state.\n\n        :param server: Server object\n        '
    server.shelve()
    time.sleep(CONF.benchmark.nova_server_shelve_prepoll_delay)
    utils.wait_for(server, ready_statuses=['SHELVED_OFFLOADED'], update_resource=utils.get_from_manager(), timeout=CONF.benchmark.nova_server_shelve_timeout, check_interval=CONF.benchmark.nova_server_shelve_poll_interval)

dataset/ETHPy150Open openstack/rally/rally/plugins/openstack/scenarios/nova/utils.py NovaScenario._shelve_server/original