Description of problem: Deleting snapset attrs from all head objects doesnt show the proper sanpattr missing error in list-inconsistent-snapset. Version-Release number of selected component (if applicable): 10.2.2-33.el7cp.x86_64 How reproducible: always Steps to Reproduce: 1. take few snaps of the pool with objects 2. consider any object , find its head object and delete user.ceph.snapset attr from all the replicas 3. Now run scrub and list-inconsistent-snapset Actual results: [root@magna105 ceph]# rados list-inconsistent-snapset 59.b --format=json-pretty [ { "name": "obj10", "nspace": "", "locator": "", "snap": "0x00000001", "ss_attr_missing": false, "ss_attr_corrupted": false, "clone_missing": false, "snapset_mismatch": false, "head_mismatch": false, "headless": false, "size_mismatch": false }, { "name": "obj10", "nspace": "", "locator": "", "snap": "0x00000002", "ss_attr_missing": false, "ss_attr_corrupted": false, "clone_missing": false, "snapset_mismatch": false, "head_mismatch": false, "headless": false, "size_mismatch": false } ] In the above output it doesn't throw any error related to ss_attr_missing. This is already fixed in upstream. Expected results: Additional info:
the fix is backported to the upstream jewel now. we will have it once 10.2.3 is tagged and downstream is rebased on it. see https://github.com/ceph/ceph/pull/9565
# rados list-inconsistent-snapset 0.23 --cluster master --format=json-pretty { "epoch": 64, "inconsistents": [ { "name": "obj5", "nspace": "", "locator": "", "snap": "0x00000001", "headless": true }, { "name": "obj5", "nspace": "", "locator": "", "snap": "0x00000002", "headless": true }, { "name": "obj5", "nspace": "", "locator": "", "snap": "0x00000003", "headless": true }, { "name": "obj5", "nspace": "", "locator": "", "snap": "0x00000004", "headless": true }, { "name": "obj5", "nspace": "", "locator": "", "snap": "head", "ss_attr_missing": true, "extra_clones": true, "extra clones": [ 4, 3, 2, 1 ] } ] Snapset attr missing value now gets set to true when there is missing snapset attr. Verified the fix and Moving to Verified State.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-1898.html