From 4b26559858715bec9a19ad5989514947d4a800bc Mon Sep 17 00:00:00 2001 From: Neeraj Pratap Singh Date: Wed, 15 Jun 2022 19:21:53 +0530 Subject: [PATCH] qa: TestMDSMetrics.test_delayed_metrics failure TestMDSMetrics.test_delayed_metrics is failing due to the absence of omit_sudo parameter in the remote.run() of set_inter_mds_block() in qa/tasks/cephfs/filesystem.py Fixes: https://tracker.ceph.com/issues/56065 Signed-off-by: Neeraj Pratap Singh --- qa/tasks/cephfs/filesystem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cephfs/filesystem.py b/qa/tasks/cephfs/filesystem.py index 9f5827caf4809..9953df7280d29 100644 --- a/qa/tasks/cephfs/filesystem.py +++ b/qa/tasks/cephfs/filesystem.py @@ -434,7 +434,7 @@ class MDSCluster(CephCluster): ip_str, port_str = re.match("(.+):(.+)", addr).groups() remote.run( args=["sudo", "iptables", da_flag, "INPUT", "-p", "tcp", "--dport", port_str, "-j", "REJECT", "-m", - "comment", "--comment", "teuthology"]) + "comment", "--comment", "teuthology"], omit_sudo=False) mds = mds_ids[1] @@ -444,10 +444,10 @@ class MDSCluster(CephCluster): ip_str, port_str = re.match("(.+):(.+)", addr).groups() remote.run( args=["sudo", "iptables", da_flag, "OUTPUT", "-p", "tcp", "--sport", port_str, "-j", "REJECT", "-m", - "comment", "--comment", "teuthology"]) + "comment", "--comment", "teuthology"], omit_sudo=False) remote.run( args=["sudo", "iptables", da_flag, "INPUT", "-p", "tcp", "--dport", port_str, "-j", "REJECT", "-m", - "comment", "--comment", "teuthology"]) + "comment", "--comment", "teuthology"], omit_sudo=False) self._one_or_all((mds_rank_1, mds_rank_2), set_block, in_parallel=False) -- 2.39.5