]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
check for inconsistent objects count instead of all keys
authorVasu Kulkarni <vasu@redhat.com>
Thu, 27 Oct 2016 22:13:02 +0000 (15:13 -0700)
committerVasu Kulkarni <vasu@redhat.com>
Mon, 31 Oct 2016 23:56:28 +0000 (16:56 -0700)
epoch keys also exist in the objs dump, count only
inconsistent objects

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
tasks/scrub_test.py

index f68cafc8ec5fc874805fea6a9e2d2c2934f20900..5d6ae0c5204060fde0814ba97d63f1f79509bf76 100644 (file)
@@ -325,10 +325,10 @@ def test_list_inconsistent_obj(ctx, manager, osd_remote, pg, acting, osd_id,
             with contextlib.closing(StringIO()) as out:
                 mon.run(args=cmd.split(), stdout=out)
                 objs = json.loads(out.getvalue())
-            assert len(objs) == 1
+            assert len(objs['inconsistents']) == 1
 
             checker = InconsistentObjChecker(osd_id, acting, obj_name)
-            inc_obj = objs[0]
+            inc_obj = objs['inconsistents'][0]
             log.info('inc = %r', inc_obj)
             checker.basic_checks(inc_obj)
             for check in checks: