The pg state could easily have changed in the mean time,
for example, from recovery_wait to recovering.
Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
)
return proc.exitstatus
-def normalize_state(r):
- r = r.replace('+scrubbing', '')
- r = r.replace('+deep', '')
- return r
-
def task(ctx, config):
"""
Test peering.
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