From 19320346ab12dfb97b118b9d12fdb562a8ec80e2 Mon Sep 17 00:00:00 2001 From: "jose.lausuch" Date: Wed, 17 Feb 2016 10:30:01 +0100 Subject: Release floating ip after vPing_ssh test Also, check the console to see if the instance fails when sending the discover to the dhcp agent Change-Id: I314051886b9580a42bb88f2d88a9bdbf2a9e198a Signed-off-by: jose.lausuch (cherry picked from commit 62131c3f53e66b6305bdd163037d452483821cfd) --- testcases/functest_utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'testcases/functest_utils.py') diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py index 838e72634..f119c278a 100644 --- a/testcases/functest_utils.py +++ b/testcases/functest_utils.py @@ -146,11 +146,12 @@ def create_floating_ip(neutron_client): props = {'floating_network_id': extnet_id} try: ip_json = neutron_client.create_floatingip({'floatingip': props}) - floating_ip = ip_json['floatingip']['floating_ip_address'] + fip_addr = ip_json['floatingip']['floating_ip_address'] + fip_id = ip_json['floatingip']['id'] except Exception, e: print "Error [create_floating_ip(neutron_client)]:", e return None - return floating_ip + return {'fip_addr': fip_addr, 'fip_id': fip_id} def add_floating_ip(nova_client, server_id, floatingip_id): -- cgit 1.2.3-korg