'--',
self.mountpoint,
],
+ timeout=(15*60)
)
run_cmd = [
def list_connections():
self.client_remote.run(
args=["sudo", "mount", "-t", "fusectl", "/sys/fs/fuse/connections", "/sys/fs/fuse/connections"],
- check_status=False
+ check_status=False,
+ timeout=(15*60)
)
p = self.client_remote.run(
args=["ls", "/sys/fs/fuse/connections"],
stdout=StringIO(),
- check_status=False
+ check_status=False,
+ timeout=(15*60)
)
if p.exitstatus != 0:
return []
],
stdout=StringIO(),
stderr=StringIO(),
- wait=False
+ wait=False,
+ timeout=(15*60)
)
try:
proc.wait()
# Now that we're mounted, set permissions so that the rest of the test will have
# unrestricted access to the filesystem mount.
self.client_remote.run(
- args=['sudo', 'chmod', '1777', self.mountpoint])
+ args=['sudo', 'chmod', '1777', self.mountpoint], timeout=(15*60))
def _mountpoint_exists(self):
- return self.client_remote.run(args=["ls", "-d", self.mountpoint], check_status=False).exitstatus == 0
+ return self.client_remote.run(args=["ls", "-d", self.mountpoint], check_status=False, timeout=(15*60)).exitstatus == 0
def umount(self):
try:
'-u',
self.mountpoint,
],
+ timeout=(30*60),
)
except run.CommandFailedError:
log.info('Failed to unmount ceph-fuse on {name}, aborting...'.format(name=self.client_remote.name))
run.Raw(';'),
'ps',
'auxf',
- ])
+ ], timeout=(60*15))
# abort the fuse mount, killing all hung processes
if self._fuse_conn:
'-f',
self.mountpoint,
],
- stderr=stderr
+ stderr=stderr,
+ timeout=(60*15)
)
except CommandFailedError:
if self.is_mounted():
'--',
self.mountpoint,
],
- stderr=stderr
+ stderr=stderr,
+ timeout=(60*5)
)
except CommandFailedError:
if "No such file or directory" in stderr.getvalue():
'-rf',
self.mountpoint,
],
+ timeout=(60*5)
)
def _asok_path(self):
# Find the admin socket
p = self.client_remote.run(args=[
'sudo', 'python2', '-c', pyscript
- ], stdout=StringIO())
+ ], stdout=StringIO(), timeout=(15*60))
asok_path = p.stdout.getvalue().strip()
log.info("Found client admin socket at {0}".format(asok_path))
# Query client ID from admin socket
p = self.client_remote.run(
args=['sudo', self._prefix + 'ceph', '--admin-daemon', asok_path] + args,
- stdout=StringIO())
+ stdout=StringIO(), timeout=(15*60))
return json.loads(p.stdout.getvalue())
def get_global_id(self):
run.Raw('>'),
filename,
],
+ timeout=(5*60),
)
def mount(self, mount_path=None, mount_fs_name=None):
'--',
self.mountpoint,
],
+ timeout=(5*60),
)
if mount_path is None:
'-o',
opts
],
+ timeout=(30*60),
)
self.client_remote.run(
- args=['sudo', 'chmod', '1777', self.mountpoint])
+ args=['sudo', 'chmod', '1777', self.mountpoint], timeout=(5*60))
self.mounted = True
cmd.append('-f')
try:
- self.client_remote.run(args=cmd, timeout=(5*60))
+ self.client_remote.run(args=cmd, timeout=(15*60))
except Exception as e:
self.client_remote.run(args=[
'sudo',
'lsof',
run.Raw(';'),
'ps', 'auxf',
- ])
+ ], timeout=(15*60))
raise e
rproc = self.client_remote.run(
'--',
self.mountpoint,
],
+ timeout=(5*60),
)
def _find_debug_dir(self):
p = self.client_remote.run(args=[
'sudo', 'python', '-c', pyscript
- ], stdout=StringIO())
+ ], stdout=StringIO(), timeout=(5*60))
client_id_to_dir = json.loads(p.stdout.getvalue())
try:
p = self.client_remote.run(args=[
'sudo', 'python', '-c', pyscript
- ], stdout=StringIO())
+ ], stdout=StringIO(), timeout=(5*60))
return p.stdout.getvalue()
def get_global_id(self):