Bug 1340836

Summary: Object Map is showing as invalid, even when Object Map is disabled for that Image.
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tanay Ganguly <tganguly>
Component: RBDAssignee: Jason Dillaman <jdillama>
Status: CLOSED ERRATA QA Contact: Tanay Ganguly <tganguly>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 2.0CC: ceph-eng-bugs, hnallurv, jdillama, kdreyer, kurs, tchandra
Target Milestone: rc   
Target Release: 2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.2-1.el7cp Ubuntu: ceph_10.2.2-3redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-23 19:40:06 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:

Description Tanay Ganguly 2016-05-30 11:34:18 UTC
Description of problem:
Object Map is showing invalid, after disabling the object map feature

Version-Release number of selected component (if applicable):
ceph version 10.2.1-6.el7cp

How reproducible:
Always

Steps to Reproduce:
1 rbd create cephfs_data/img6 --size 100G 
2 rbd info cephfs_data/img6

rbd image 'img6':
        size 102400 MB in 25600 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.125345238e1f29
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
        flags:

3 rbd feature disable cephfs_data/img6 exclusive-lock, object-map, fast-diff
4 rbd info cephfs_data/img6
rbd image 'img6':
        size 102400 MB in 25600 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.125345238e1f29
        format: 2
        features: layering, deep-flatten
        flags:

5 rbd feature enable cephfs_data/img6 exclusive-lock, object-map, fast-diff
6 rbd info cephfs_data/img6
rbd image 'img6':
        size 102400 MB in 25600 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.125345238e1f29
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
        flags: object map invalid, fast diff invalid

7 rbd feature disable cephfs_data/img6 exclusive-lock, object-map, fast-diff
8 rbd info cephfs_data/img6

rbd image 'img6':
        size 102400 MB in 25600 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.125345238e1f29
        format: 2
        features: layering, deep-flatten
        flags: object map invalid


Actual results:
Object Map is showing as Invalid, although object map is not enabled.

Expected results:
Object Map should not show as invalid.

Additional info:

Comment 4 Jason Dillaman 2016-06-02 12:28:49 UTC
Upstream PR: https://github.com/ceph/ceph/pull/9441

Comment 7 Jason Dillaman 2016-06-12 23:55:18 UTC
Merged upstream Jewel PR: https://github.com/ceph/ceph/pull/9555

Comment 12 errata-xmlrpc 2016-08-23 19:40:06 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-1755.html