aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan Vidal <juan.vidal.allende@ericsson.com>2017-02-06 15:27:56 +0100
committerJuan Vidal <juan.vidal.allende@ericsson.com>2017-02-06 15:27:56 +0100
commit33b6cf3e1ae4a4a43163638d48f0a51dfdaa5f4b (patch)
tree4d1f183ef10428190067f8b261365ab668b8b9d5
parentb271d9361b4f534113f59c17dd28b088c121189c (diff)
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 <juan.vidal.allende@ericsson.com>
-rw-r--r--sfc/lib/utils.py2
1 files changed, 1 insertions, 1 deletions
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']