Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1364878

Summary: [RADOS]:- Scrub apis- list-inconsistent-snapset doesn't list the faulty snapset attr properly
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: shylesh <shmohan>
Component: RADOSAssignee: Kefu Chai <kchai>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: unspecified    
Version: 2.0CC: ceph-eng-bugs, dzafman, hnallurv, hyelloji, kchai, kdreyer, nlevine, vumrao
Target Milestone: rc   
Target Release: 2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.2-39.el7cp Ubuntu: ceph_10.2.2-31redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-15 11:17:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1363819    

Description shylesh 2016-08-08 05:57:55 UTC
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:

Comment 2 Kefu Chai 2016-08-08 06:12:01 UTC
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

Comment 11 Hemanth Kumar 2016-09-07 09:09:10 UTC
# 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.

Comment 15 errata-xmlrpc 2016-09-15 11:17:46 UTC
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