From: Rishabh Dave Date: Fri, 9 Aug 2019 08:11:21 +0000 (+0530) Subject: qa/cephfs: don't abort if mountpoint is already present X-Git-Tag: v15.1.0~639^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=39a15d091fd1e62c3dcc7e5c4c042f18cc65a37c;p=ceph.git qa/cephfs: don't abort if mountpoint is already present Instead, let the execution continue. Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/fuse_mount.py b/qa/tasks/cephfs/fuse_mount.py index f02e437cd32..86027546b80 100644 --- a/qa/tasks/cephfs/fuse_mount.py +++ b/qa/tasks/cephfs/fuse_mount.py @@ -52,14 +52,8 @@ class FuseMount(CephFSMount): log.info('Mounting ceph-fuse client.{id} at {remote} {mnt}...'.format( id=self.client_id, remote=self.client_remote, mnt=self.mountpoint)) - self.client_remote.run( - args=[ - 'mkdir', - '--', - self.mountpoint, - ], - timeout=(15*60) - ) + self.client_remote.run(args=['mkdir', '-p', self.mountpoint], + timeout=(15*60)) run_cmd = [ 'sudo', diff --git a/qa/tasks/cephfs/kernel_mount.py b/qa/tasks/cephfs/kernel_mount.py index c8d1ec6593f..3aa4b5bb74b 100644 --- a/qa/tasks/cephfs/kernel_mount.py +++ b/qa/tasks/cephfs/kernel_mount.py @@ -27,7 +27,6 @@ class KernelMount(CephFSMount): self.ipmi_password = ipmi_password self.ipmi_domain = ipmi_domain - def mount(self, mount_path=None, mount_fs_name=None): def mount(self, mount_path=None, mount_fs_name=None, mountpoint=None): if mountpoint is not None: self.mountpoint = mountpoint @@ -36,14 +35,8 @@ class KernelMount(CephFSMount): log.info('Mounting kclient client.{id} at {remote} {mnt}...'.format( id=self.client_id, remote=self.client_remote, mnt=self.mountpoint)) - self.client_remote.run( - args=[ - 'mkdir', - '--', - self.mountpoint, - ], - timeout=(5*60), - ) + self.client_remote.run(args=['mkdir', '-p', self.mountpoint], + timeout=(5*60)) if mount_path is None: mount_path = "/" diff --git a/qa/tasks/vstart_runner.py b/qa/tasks/vstart_runner.py index 959d7583394..52bbec8bf69 100644 --- a/qa/tasks/vstart_runner.py +++ b/qa/tasks/vstart_runner.py @@ -789,13 +789,7 @@ class LocalFuseMount(FuseMount): self.mountpoint = mountpoint self.setupfs(name=mount_fs_name) - self.client_remote.run( - args=[ - 'mkdir', - '--', - self.mountpoint, - ], - ) + self.client_remote.run(args=['mkdir', '-p', self.mountpoint]) def list_connections(): self.client_remote.run(