From d072a425f48640780ca6a6d1f6332ec73d6bf5be Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Sun, 29 Jul 2018 21:48:18 +0200 Subject: Release floating ips used by juju_epc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It also cleans flavor_alt and image_alt. Change-Id: I62296075eca75c3c18caac4a3cddeef1fdb26e1b Signed-off-by: Cédric Ollivier --- functest/opnfv_tests/vnf/epc/juju_epc.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py index 95898ae6c..5429fe1e4 100644 --- a/functest/opnfv_tests/vnf/epc/juju_epc.py +++ b/functest/opnfv_tests/vnf/epc/juju_epc.py @@ -382,7 +382,13 @@ class JujuEpc(singlevm.VmReady2): cpe.cmd, cpe.output) except Exception: # pylint: disable=broad-except self.__logger.exception("General issue during the undeployment ..") + for fip in self.cloud.list_floating_ips(): + self.cloud.delete_floating_ip(fip.id) super(JujuEpc, 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) # ---------------------------------------------------------- -- cgit 1.2.3-korg