def run(self, args, check_status=True, wait=True,
stdout=None, stderr=None, cwd=None, stdin=None,
- logger=None, label=None, env=None):
+ logger=None, label=None, env=None, timeout=None):
log.info("run args={0}".format(args))
# We don't need no stinkin' sudo
class LocalFuseMount(FuseMount):
- def __init__(self, test_dir, client_id):
- super(LocalFuseMount, self).__init__(None, test_dir, client_id, LocalRemote())
+ def __init__(self, ctx, test_dir, client_id):
+ super(LocalFuseMount, self).__init__(ctx, None, test_dir, client_id, LocalRemote())
@property
def config_path(self):
proc = self.controller.run([os.path.join(BIN_PREFIX, "ceph")] + list(args), **kwargs)
return proc.exitstatus
- def admin_socket(self, daemon_type, daemon_id, command, check_status=True):
+ def admin_socket(self, daemon_type, daemon_id, command, check_status=True, timeout=None):
return self.controller.run(
- args=[os.path.join(BIN_PREFIX, "ceph"), "daemon", "{0}.{1}".format(daemon_type, daemon_id)] + command, check_status=check_status
+ args=[os.path.join(BIN_PREFIX, "ceph"), "daemon", "{0}.{1}".format(daemon_type, daemon_id)] + command,
+ check_status=check_status,
+ timeout=timeout
)
test_dir = tempfile.mkdtemp()
teuth_config['test_path'] = test_dir
+ ctx = LocalContext()
+ ceph_cluster = LocalCephCluster(ctx)
+ mds_cluster = LocalMDSCluster(ctx)
+ mgr_cluster = LocalMgrCluster(ctx)
+
# Construct Mount classes
mounts = []
for client_id in clients:
open("./keyring", "a").write(p.stdout.getvalue())
- mount = LocalFuseMount(test_dir, client_id)
+ mount = LocalFuseMount(ctx, test_dir, client_id)
mounts.append(mount)
if mount.is_mounted():
log.warn("unmounting {0}".format(mount.mountpoint))
if os.path.exists(mount.mountpoint):
os.rmdir(mount.mountpoint)
- ctx = LocalContext()
- ceph_cluster = LocalCephCluster(ctx)
- mds_cluster = LocalMDSCluster(ctx)
- mgr_cluster = LocalMgrCluster(ctx)
-
from tasks.cephfs_test_runner import DecoratingLoader
class LogStream(object):