diff options
author | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-04-17 22:10:43 +0200 |
---|---|---|
committer | Cédric Ollivier <cedric.ollivier@orange.com> | 2018-04-17 22:13:37 +0200 |
commit | c789cca4a6e9afefba0c1622d49a181dd35437f7 (patch) | |
tree | 39f33dc02c67e1ed598ea05bb04dda63ec402f15 | |
parent | ed3a825ec90796fe72387b4bd74033a991b2351b (diff) |
Get debug data before cleaning juju_epc
It could help us to detect the issue when testing Apex (nosdn).
It should be only printed on exceptions instead but this proposal is
safer and straightforward.
Change-Id: I2cccc737e3b3572af72c2653bf32bc02f9ab9077
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
-rw-r--r-- | functest/opnfv_tests/vnf/epc/juju_epc.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/functest/opnfv_tests/vnf/epc/juju_epc.py b/functest/opnfv_tests/vnf/epc/juju_epc.py index 5955de83f..bf7a37541 100644 --- a/functest/opnfv_tests/vnf/epc/juju_epc.py +++ b/functest/opnfv_tests/vnf/epc/juju_epc.py @@ -342,6 +342,9 @@ class JujuEpc(vnf.VnfOnBoarding): # This will add sctp rule to a common Security Group Created # by juju and shared to all deployed units. self._add_custom_rule(sec_group) + cmd = ['juju', 'status'] + output = subprocess.check_output(cmd, stderr=subprocess.STDOUT) + self.__logger.debug("%s\n%s", " ".join(cmd), output) self.__logger.info("Copying the feature files to Abot_node ") cmd = ['juju', 'scp', '--', '-r', '-v', '{}/featureFiles'.format(self.case_dir), 'abot-epc-basic/0:~/'] @@ -407,6 +410,9 @@ class JujuEpc(vnf.VnfOnBoarding): def clean(self): """Clean created objects/functions.""" try: + cmd = ['juju', 'debug-log', '--replay', '--no-tail'] + output = subprocess.check_output(cmd, stderr=subprocess.STDOUT) + self.__logger.debug("%s\n%s", " ".join(cmd), output) if not self.orchestrator['requirements']['preserve_setup']: self.__logger.info("Destroying Orchestrator...") cmd = ['juju', 'destroy-controller', '-y', 'abot-controller', |