aboutsummaryrefslogtreecommitdiffstats
path: root/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
diff options
context:
space:
mode:
authorCédric Ollivier <cedric.ollivier@orange.com>2018-07-30 02:13:30 +0200
committerCédric Ollivier <cedric.ollivier@orange.com>2018-07-30 02:13:30 +0200
commit6ff2161dd0af56bcbac49fd1417dc52031c55bf5 (patch)
treeed28dbba8894783dc18fa920c056c937f7a30bcb /functest/opnfv_tests/vnf/router/cloudify_vrouter.py
parentd072a425f48640780ca6a6d1f6332ec73d6bf5be (diff)
Fix clean() in cloudify ims and router
It raised exceptions in both branches [1] [1] https://build.opnfv.org/ci/view/functest/job/functest-compass-baremetal-daily-master/209/console Change-Id: I87b33cedae768f92296efa4570d2a47cd9cdbdf2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Diffstat (limited to 'functest/opnfv_tests/vnf/router/cloudify_vrouter.py')
-rw-r--r--functest/opnfv_tests/vnf/router/cloudify_vrouter.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
index 8d9ddbd1f..79e8d801a 100644
--- a/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
+++ b/functest/opnfv_tests/vnf/router/cloudify_vrouter.py
@@ -230,7 +230,7 @@ class CloudifyVrouter(cloudify.Cloudify):
dep_name = self.vnf['descriptor'].get('name')
# kill existing execution
self.__logger.info('Deleting the current deployment')
- exec_list = self.cfy_client.executions.list(dep_name)
+ exec_list = self.cfy_client.executions.list()
for execution in exec_list:
if execution['status'] == "started":
try:
@@ -251,6 +251,10 @@ class CloudifyVrouter(cloudify.Cloudify):
self.__logger.exception("Some issue during the undeployment ..")
super(CloudifyVrouter, self).clean()
+ if self.image_alt:
+ self.cloud.delete_image(self.image_alt)
+ if self.flavor_alt:
+ self.orig_cloud.delete_flavor(self.flavor_alt.id)
def wait_for_execution(client, execution, logger, timeout=7200, ):