aboutsummaryrefslogtreecommitdiffstats
path: root/testcases/VIM/OpenStack/CI/libraries
diff options
context:
space:
mode:
authorjose.lausuch <jose.lausuch@ericsson.com>2015-12-17 19:39:33 +0100
committerjose.lausuch <jose.lausuch@ericsson.com>2015-12-17 19:40:50 +0100
commitee5c41c028c942bd6f1e49441c7f5fbba1acf149 (patch)
treef93bb61e23e18eab3934cb62d983297ddde95d52 /testcases/VIM/OpenStack/CI/libraries
parent98ec6ed31b2c56da9042ea075f5dabb6f2138f1b (diff)
Add debug information for ports in clean_openstack
Change-Id: I3e7788c36971b132ab685dd55600a449aa1d5128 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Diffstat (limited to 'testcases/VIM/OpenStack/CI/libraries')
-rw-r--r--testcases/VIM/OpenStack/CI/libraries/clean_openstack.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
index b77c0ee8c..e20504556 100644
--- a/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
+++ b/testcases/VIM/OpenStack/CI/libraries/clean_openstack.py
@@ -170,7 +170,14 @@ def remove_networks(neutron_client):
for port in ports:
if port['network_id'] in network_ids:
port_id = port['id']
- subnet_id = port['fixed_ips'][0]['subnet_id']
+ try:
+ subnet_id = port['fixed_ips'][0]['subnet_id']
+ except:
+ logger.info(" > ERROR: Error removing port %s." % port_id)
+ print port
+ print ports
+ continue
+
router_id = port['device_id']
if port['device_owner'] == 'network:router_interface':
logger.debug("Detaching port %s (subnet %s) from router %s ..."