Move tempest results into /var/log dir
To have tempest logs and reports to be archived
add
-v /var/log/:/home/rally/rally_reports/ into run cmd
to store it in var/log
Change-Id: I886b4ee9e481105dd8cb78e2dfb1bd41f97d5859
Related: Prod-17824
diff --git a/tcp_tests/managers/openstack_manager.py b/tcp_tests/managers/openstack_manager.py
index 08fa14a..e54f4fe 100644
--- a/tcp_tests/managers/openstack_manager.py
+++ b/tcp_tests/managers/openstack_manager.py
@@ -118,7 +118,8 @@
"-e SKIP_LIST=mcp_skip.list "
"-e SOURCE_FILE=keystonercv3 "
"-e CUSTOM='--pattern {1}' "
- "-v /root/:/home/rally {2} "
+ "-v /root/:/home/rally "
+ "-v /var/log/:/home/rally/rally_reports/ {2} "
"-v /etc/ssl/certs/:/etc/ssl/certs/ >> image.output"
.format(conf_name, pattern, registry))
else:
@@ -127,7 +128,8 @@
"-e SKIP_LIST=mcp_skip.list "
"-e SET=full "
"-e SOURCE_FILE=keystonercv3 "
- "-v /root/:/home/rally {2} "
+ "-v /root/:/home/rally "
+ "-v /var/log/:/home/rally/rally_reports/ {2} "
"-v /etc/ssl/certs/:/etc/ssl/certs/ >> image.output"
.format(conf_name, pattern, registry))
LOG.info("Running tempest testing on node {0} using the following "
@@ -143,7 +145,7 @@
in self.__underlay.node_names()
if stored_node in node_name]
with self.__underlay.remote(node_name=target_node_name[0]) as r:
- result = r.execute('find /root -name "report_*.{}"'.format(
+ result = r.execute('find /var/log/ -name "report_*.{}"'.format(
file_fromat))
LOG.debug("Find result {0}".format(result))
assert len(result['stdout']) > 0, ('No report found, please check'