Added a debug message

The debug message is to print the string that should be JSON.
This is to track a nightly run failure.

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
This commit is contained in:
tamil 2012-07-03 16:04:12 -07:00
parent b99d11c490
commit e07b711325

View File

@ -78,6 +78,7 @@ def task(ctx, config):
pgs = manager.get_pg_stats()
for pg in pgs:
out = manager.raw_cluster_cmd('pg', pg['pgid'], 'query')
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 j['state'].replace('+scrubbing','') == pg['state'].replace('+scrubbing','')