Add one missing output decode in rally.py 26/68026/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Sun, 9 Jun 2019 09:17:12 +0000 (11:17 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Sun, 9 Jun 2019 09:55:36 +0000 (11:55 +0200)
It partially cherry-picks "Conform with latest Neutron rally job" [1]

[1] https://gerrit.opnfv.org/gerrit/#/c/68021/

Change-Id: I4943f737be29bcadfead427a7852964e6438a018
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 0de102e46f3e8c3d7389a67a6f375fed69db4617)

functest/opnfv_tests/openstack/rally/rally.py

index cd05bb7..fccb3b1 100644 (file)
@@ -431,7 +431,7 @@ class RallyBase(singlevm.VmReady2):
         LOGGER.debug('task_id : %s', task_id)
         if task_id is None:
             LOGGER.error("Failed to retrieve task_id")
-            LOGGER.error("Result:\n%s", output)
+            LOGGER.error("Result:\n%s", output.decode("utf-8"))
             raise Exception("Failed to retrieve task id")
         self._save_results(test_name, task_id)