From cb1b663dec1745aff08e51ee8d6bf06e82280981 Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Tue, 19 Apr 2016 09:41:22 +0530 Subject: [PATCH] tasks/cephfs: make mount point more configurable The mount points of the test clients were created based on the auth ID they used. So two clients using the same auth ID could not create different mount points in a straight forward way. Expose the directory name of the mount point as a public attribute allowing client mount points to be easily changed whenever needed. Signed-off-by: Ramana Raja (cherry picked from commit 64869a3e4d5722e84f791ee3a07bf445d4402d32) (cherry picked from commit dcdccfcd57aa6061620c8796c7cd90829cae03aa) --- tasks/cephfs/mount.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/cephfs/mount.py b/tasks/cephfs/mount.py index e8d66b02a958e..a77cfd7154f37 100644 --- a/tasks/cephfs/mount.py +++ b/tasks/cephfs/mount.py @@ -23,6 +23,7 @@ class CephFSMount(object): self.test_dir = test_dir self.client_id = client_id self.client_remote = client_remote + self.mountpoint_dir_name = 'mnt.{id}'.format(id=self.client_id) self.test_files = ['a', 'b', 'c'] @@ -30,7 +31,8 @@ class CephFSMount(object): @property def mountpoint(self): - return os.path.join(self.test_dir, 'mnt.{id}'.format(id=self.client_id)) + return os.path.join( + self.test_dir, '{dir_name}'.format(dir_name=self.mountpoint_dir_name)) def is_mounted(self): raise NotImplementedError() -- 2.39.5