

def _delete_server(self, server, force=False):
    'Delete the given server.\n\n        Returns when the server is actually deleted.\n\n        :param server: Server object\n        :param force: If True, force_delete will be used instead of delete.\n        '
    atomic_name = ('nova.%sdelete_server' % ((force and 'force_') or ''))
    with atomic.ActionTimer(self, atomic_name):
        if force:
            server.force_delete()
        else:
            server.delete()
        utils.wait_for_status(server, ready_statuses=['deleted'], check_deletion=True, update_resource=utils.get_from_manager(), timeout=CONF.benchmark.nova_server_delete_timeout, check_interval=CONF.benchmark.nova_server_delete_poll_interval)

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