mirror of
https://github.com/ceph/ceph
synced 2025-03-25 11:48:05 +00:00
mgr/dashboard/qa: CephfsTest - admin_socket() got an unexpected keyword argument 'timeout'
Adapt method arguments of LocalRemote::run() according to teuthology.orchestra.run.run() (see https://github.com/ceph/teuthology/blob/master/teuthology/orchestra/run.py#L364) to be able to run QA tests locally in a vstart cluster. Fixes: http://tracker.ceph.com/issues/36581 Signed-off-by: Volker Theile <vtheile@suse.com>
This commit is contained in:
parent
399923c71a
commit
00e3022710
@ -231,7 +231,7 @@ class LocalRemote(object):
|
||||
|
||||
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):
|
||||
|
||||
# We don't need no stinkin' sudo
|
||||
args = [a for a in args if a != "sudo"]
|
||||
@ -606,9 +606,11 @@ class LocalCephManager(CephManager):
|
||||
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
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user