From 2c7b1f3d6220acd673a1b7b631d93b4ea827944b Mon Sep 17 00:00:00 2001 From: Samuel Just Date: Fri, 12 Apr 2013 15:01:04 -0700 Subject: [PATCH] peer.py: we can't assume pg query state will match mon pg state The pg state could easily have changed in the mean time, for example, from recovery_wait to recovering. Signed-off-by: Samuel Just Reviewed-by: Greg Farnum --- teuthology/task/peer.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/teuthology/task/peer.py b/teuthology/task/peer.py index b70692302bf8c..73cafdac231cc 100644 --- a/teuthology/task/peer.py +++ b/teuthology/task/peer.py @@ -23,11 +23,6 @@ def rados(ctx, remote, cmd): ) return proc.exitstatus -def normalize_state(r): - r = r.replace('+scrubbing', '') - r = r.replace('+deep', '') - return r - def task(ctx, config): """ Test peering. @@ -90,7 +85,6 @@ def task(ctx, config): log.debug("out string %s",out) j = json.loads('\n'.join(out.split('\n')[1:])) log.info("pg is %s, query json is %s", pg, j) - assert normalize_state(j['state']) == normalize_state(pg['state']) if pg['state'].count('down'): num_down_pgs += 1 -- 2.39.5