Fix directory for volume/snapshot boot pattern
When using full image of ubuntu tmp directory is cleared on boot
so using other directory which is not cleaned.
Related-Prod: https://mirantis.jira.com/browse/PRODX-47216
Change-Id: I3d76d2ab4fcda6e08a840382657b966732fdb11c
(cherry picked from commit 2f19a48ea404ad2405671e21bbda3ff8520965d0)
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index 5f30909..0bb7e3c 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -1190,10 +1190,10 @@
server=server,
username=username)
- # Default the directory in which to write the timestamp file to /tmp
+ # Default the directory in which to write the timestamp file to /root
# and only use the mount_path as the target directory if we mounted
# dev_name to mount_path.
- target_dir = '/tmp'
+ target_dir = '/root'
if dev_name is not None:
ssh_client.make_fs(dev_name, fs=fs)
ssh_client.exec_command('sudo mount /dev/%s %s' % (dev_name,
@@ -1227,10 +1227,10 @@
server=server,
username=username)
- # Default the directory from which to read the timestamp file to /tmp
+ # Default the directory from which to read the timestamp file to /root
# and only use the mount_path as the target directory if we mounted
# dev_name to mount_path.
- target_dir = '/tmp'
+ target_dir = '/root'
if dev_name is not None:
ssh_client.mount(dev_name, mount_path)
target_dir = mount_path