From 33b6cf3e1ae4a4a43163638d48f0a51dfdaa5f4b Mon Sep 17 00:00:00 2001 From: Juan Vidal Date: Mon, 6 Feb 2017 15:27:56 +0100 Subject: Avoid looking for VMs from tenants different from the one running the testcase - The testcase should only retrieve servers from its tenant, not from other ones. Trying to access other tenant's VMs makes failures in subsequent parts of the test. Change-Id: I0779f1e159573162db59272142bc8773dcbafa2f Signed-off-by: Juan Vidal --- sfc/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sfc/lib/utils.py b/sfc/lib/utils.py index 13f534be..14a2cc2c 100644 --- a/sfc/lib/utils.py +++ b/sfc/lib/utils.py @@ -230,7 +230,7 @@ def ping(remote, pkt_cnt=1, iface=None, retries=100, timeout=None): def get_floating_ips(nova_client, neutron_client): ips = [] - instances = nova_client.servers.list(search_opts={'all_tenants': 1}) + instances = nova_client.servers.list() for instance in instances: floatip_dic = os_utils.create_floating_ip(neutron_client) floatip = floatip_dic['fip_addr'] -- cgit 1.2.3-korg