diff options
author | Cedric Ollivier <cedric.ollivier@orange.com> | 2018-04-17 22:22:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-04-17 22:22:11 +0000 |
commit | 15bed392750c02152ca10fed056a63b1eaee7cf2 (patch) | |
tree | fe190fceb4b26d40de0027c60ccc2e549c57e78e | |
parent | da20f16245506140b0912dd9580171f3c2c0dd96 (diff) | |
parent | ddba19c96c96a488cd6ba9307f611c496f6eb065 (diff) |
Merge "Get debug data before cleaning juju_epc" into stable/fraser
-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', |