Bug 1364878 - [RADOS]:- Scrub apis- list-inconsistent-snapset doesn't list the faulty snapset attr properly
Summary: [RADOS]:- Scrub apis- list-inconsistent-snapset doesn't list the faulty snaps...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RADOS
Version: 2.0
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: 2.0
Assignee: Kefu Chai
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On:
Blocks: 1363819
TreeView+ depends on / blocked
 
Reported: 2016-08-08 05:57 UTC by shylesh
Modified: 2017-07-30 15:15 UTC (History)
8 users (show)

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:
Clone Of:
Environment:
Last Closed: 2016-09-15 11:17:46 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 2909061 0 None None None 2017-02-06 21:55:00 UTC
Red Hat Product Errata RHBA-2016:1898 0 normal SHIPPED_LIVE Red Hat Ceph Storage 2 bug fix and enhancement update 2017-03-22 02:06:31 UTC

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


Note You need to log in before you can comment on or make changes to this bug.