assert not self.is_mounted()
self._fuse_conn = None
- def umount_wait(self, force=False, require_clean=False):
+ def umount_wait(self, force=False, require_clean=False, timeout=900):
"""
:param force: Complete cleanly even if the MDS is offline
"""
try:
if self.fuse_daemon:
# Permit a timeout, so that we do not block forever
- run.wait([self.fuse_daemon], 900)
+ run.wait([self.fuse_daemon], timeout)
except MaxWhileTries:
log.error("process failed to terminate after unmount. This probably"
"indicates a bug within ceph-fuse.")
"""
Look up the CephFS client ID for this mount
"""
-
return self.admin_socket(['mds_sessions'])['id']
+ def get_client_pid(self):
+ """
+ return pid of ceph-fuse process
+ """
+ status = self.admin_socket(['status'])
+ return status['metadata']['pid']
+
def get_osd_epoch(self):
"""
Return 2-tuple of osd_epoch, osd_epoch_barrier