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
diff --git a/tempest/scenario/manager.py b/tempest/scenario/manager.py
index 316f248..212c1b3 100644
--- a/tempest/scenario/manager.py
+++ b/tempest/scenario/manager.py
@@ -1206,10 +1206,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,
@@ -1243,10 +1243,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