

def _delete_servers(self, servers, force=False):
    'Delete multiple servers.\n\n        :param servers: A list of servers to delete\n        :param force: If True, force_delete will be used instead of delete.\n        '
    atomic_name = ('nova.%sdelete_servers' % ((force and 'force_') or ''))
    with atomic.ActionTimer(self, atomic_name):
        for server in servers:
            if force:
                server.force_delete()
            else:
                server.delete()
        for server in servers:
            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_servers/original