from tasks.cephfs.fuse_mount import FuseMount
d = misc.get_testdir(self._ctx)
m = FuseMount(self._ctx, {}, d, "admin", self.client_remote, cephfs_name=self.name)
- m.mount()
+ m.mount_wait()
m.run_shell_payload(cmd)
m.umount_wait(require_clean=True)
self.mount_a.umount_wait()
if isinstance(self.mount_a, FuseMount):
- self.mount_a.mount(mntopts=['--client_reconnect_stale=1', '--fuse_disable_pagecache=1'])
+ self.mount_a.mount_wait(mntopts=['--client_reconnect_stale=1', '--fuse_disable_pagecache=1'])
else:
try:
- self.mount_a.mount(mntopts=['recover_session=clean'])
+ self.mount_a.mount_wait(mntopts=['recover_session=clean'])
except CommandFailedError:
self.mount_a.kill_cleanup()
self.skipTest("Not implemented in current kernel")
fs_a, fs_b = self._setup_two()
# Mount a client on fs_a
- self.mount_a.mount(cephfs_name=fs_a.name)
+ self.mount_a.mount_wait(cephfs_name=fs_a.name)
self.mount_a.write_n_mb("pad.bin", 1)
self.mount_a.write_n_mb("test.bin", 2)
a_created_ino = self.mount_a.path_to_ino("test.bin")
self.mount_a.create_files()
# Mount a client on fs_b
- self.mount_b.mount(cephfs_name=fs_b.name)
+ self.mount_b.mount_wait(cephfs_name=fs_b.name)
self.mount_b.write_n_mb("test.bin", 1)
b_created_ino = self.mount_b.path_to_ino("test.bin")
self.mount_b.create_files()
self.mount_a.run_shell(["ln", "testdir1/{0}".format(i), "testdir2/"])
self.mount_a.umount_wait()
- self.mount_a.mount()
+ self.mount_a.mount_wait()
self.mount_a.wait_until_mounted()
# flush journal and restart mds. after restart, testdir2 is not in mds' cache
log.debug(f'mounting filesystem {self.secondary_fs_name}')
self.mount_b.umount_wait()
- self.mount_b.mount(cephfs_name=self.secondary_fs_name)
+ self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
# create a bunch of files in a directory to snap
self.mount_a.run_shell(["mkdir", "d0"])
log.debug(f'mounting filesystem {self.secondary_fs_name}')
self.mount_b.umount_wait()
- self.mount_b.mount(cephfs_name=self.secondary_fs_name)
+ self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
# create a bunch of files in a directory to snap
self.mount_a.run_shell(["mkdir", "d0"])
log.debug(f'mounting filesystem {self.secondary_fs_name}')
self.mount_b.umount_wait()
- self.mount_b.mount(cephfs_name=self.secondary_fs_name)
+ self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
# create a bunch of files in a directory to snap
self.mount_a.run_shell(["mkdir", "d0"])
log.debug(f'mounting filesystem {self.secondary_fs_name}')
self.mount_b.umount_wait()
- self.mount_b.mount(cephfs_name=self.secondary_fs_name)
+ self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
# create a bunch of files w/ symbolic links in a directory to snap
self.mount_a.run_shell(["mkdir", "d0"])
self.backup_fs.get_data_pool_name(), self.backup_fs.get_data_pool_name()))
log.debug(f'mounting filesystem {self.secondary_fs_name}')
self.mount_b.umount_wait()
- self.mount_b.mount(cephfs_name=self.secondary_fs_name)
+ self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
repo = 'ceph-qa-suite'
repo_dir = 'ceph_repo'
self.backup_fs.get_data_pool_name(), self.backup_fs.get_data_pool_name()))
log.debug(f'mounting filesystem {self.secondary_fs_name}')
self.mount_b.umount_wait()
- self.mount_b.mount(cephfs_name=self.secondary_fs_name)
+ self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
typs = deque(['reg', 'dir', 'sym'])
def cleanup_and_create_with_type(dirname, fnames):
self.backup_fs.get_data_pool_name(), self.backup_fs.get_data_pool_name()))
log.debug(f'mounting filesystem {self.secondary_fs_name}')
self.mount_b.umount_wait()
- self.mount_b.mount(cephfs_name=self.secondary_fs_name)
+ self.mount_b.mount_wait(cephfs_name=self.secondary_fs_name)
repo = 'ceph-qa-suite'
repo_dir = 'ceph_repo'
self._configure_guest_auth(guest_mount, authid, key)
# mount the subvolume, and write to it
- guest_mount.mount(cephfs_mntpt=mount_path)
+ guest_mount.mount_wait(cephfs_mntpt=mount_path)
guest_mount.write_n_mb("data.bin", 1)
# authorize guest authID read access to subvolume
# guest client sees the change in access level to read only after a
# remount of the subvolume.
guest_mount.umount_wait()
- guest_mount.mount(cephfs_mntpt=mount_path)
+ guest_mount.mount_wait(cephfs_mntpt=mount_path)
# read existing content of the subvolume
self.assertListEqual(guest_mount.ls(guest_mount.mountpoint), ["data.bin"])
self._configure_guest_auth(guest_mount, authid, key)
# mount the subvolume, and write to it
- guest_mount.mount(cephfs_mntpt=mount_path)
+ guest_mount.mount_wait(cephfs_mntpt=mount_path)
guest_mount.write_n_mb("data.bin", 1)
# authorize guest authID read access to subvolume
# guest client sees the change in access level to read only after a
# remount of the subvolume.
guest_mount.umount_wait()
- guest_mount.mount(cephfs_mntpt=mount_path)
+ guest_mount.mount_wait(cephfs_mntpt=mount_path)
# read existing content of the subvolume
self.assertListEqual(guest_mount.ls(guest_mount.mountpoint), ["data.bin"])
self._configure_guest_auth(guest_mounts[i], auth_id, key)
# mount the subvolume, and write to it
- guest_mounts[i].mount(cephfs_mntpt=mount_path)
+ guest_mounts[i].mount_wait(cephfs_mntpt=mount_path)
guest_mounts[i].write_n_mb("data.bin", 1)
# Evict client, guest_mounts[0], using auth ID 'guest' and has mounted