Merge "Get debug data before cleaning juju_epc" into stable/fraser
authorCedric Ollivier <cedric.ollivier@orange.com>
Tue, 17 Apr 2018 22:22:11 +0000 (22:22 +0000)
committerGerrit Code Review <gerrit@opnfv.org>
Tue, 17 Apr 2018 22:22:11 +0000 (22:22 +0000)
1  2 
functest/opnfv_tests/vnf/epc/juju_epc.py

@@@ -342,8 -342,11 +342,11 @@@ 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',
 +        cmd = ['juju', 'scp', '--', '-r', '-v',
                 '{}/featureFiles'.format(self.case_dir), 'abot-epc-basic/0:~/']
          output = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
          self.__logger.info("%s\n%s", " ".join(cmd), output)