Bug 1344262

Summary: Disabling a feature from Master Node, is not getting reflected on Slave Node
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tanay Ganguly <tganguly>
Component: RBDAssignee: Jason Dillaman <jdillama>
Status: CLOSED ERRATA QA Contact: Parikshith <pbyregow>
Severity: high Docs Contact: Bara Ancincova <bancinco>
Priority: medium    
Version: 2.0CC: ceph-eng-bugs, flucifre, hnallurv, jdillama, kurs, vashastr
Target Milestone: rc   
Target Release: 3.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-12.1.2-1.el7cp Ubuntu: ceph_12.1.2-2redhat1xenial Doc Type: Bug Fix
Doc Text:
.Dynamic feature updates are now replicated When a feature was disabled or enabled on an already existing image and the image was mirrored to a peer cluster, the feature was not disabled or enabled on the replicated image. With this update, dynamic features updates are replicated as expected.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-05 23:29:38 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: 1322504, 1383917, 1412948, 1494421    

Description Tanay Ganguly 2016-06-09 09:40:25 UTC
Description of problem:
Disabling a feature from Master Node, is not getting reflected on Slave Node even after resync completes.

Version-Release number of selected component (if applicable):
rbd-mirror-10.2.1-12.el7cp.x86_64

How reproducible:


Steps to Reproduce:
1. Create an Image without enabling Journal
2. Write some data onto it.
3. Enable Journal
rbd image 'tanay12':
        size 8191 MB in 2048 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.136a2ae8944a
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, journaling
        flags: 
        journal: 136a2ae8944a
        mirroring state: enabled
        mirroring global id: b17134d1-087f-48c5-9af4-c52ff035f634
        mirroring primary: true
4. Again start IO on Master Node.
5. While IO is going ON, disable deep-flatten
rbd feature disable RBD/tanay12 deep-flatten --cluster master

Actual results:
On master Node deep-flatten got disabled, but on the Slave Node the image still have deep-flatten enabled.

Master:

rbd image 'tanay12':
        size 8191 MB in 2048 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.136a2ae8944a
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, journaling
        flags: 
        journal: 136a2ae8944a
        mirroring state: enabled
        mirroring global id: b17134d1-087f-48c5-9af4-c52ff035f634
        mirroring primary: true

Slave:
rbd image 'tanay12':
        size 8191 MB in 2048 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.394e12200854
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten, journaling
        flags: 
        journal: 394e12200854
        mirroring state: enabled
        mirroring global id: b17134d1-087f-48c5-9af4-c52ff035f634
        mirroring primary: false

Expected results:
The Feature should also get disabled in Slave Node.

Additional info:

Comment 2 Jason Dillaman 2016-06-09 11:59:22 UTC
Dynamic feature updates are not replicated and would be a large effort to implement.

Comment 8 Jason Dillaman 2016-09-26 16:28:55 UTC
Upstream, master branch PR: https://github.com/ceph/ceph/pull/10980

Comment 11 Jason Dillaman 2017-04-27 11:47:12 UTC
*** Bug 1446120 has been marked as a duplicate of this bug. ***

Comment 18 errata-xmlrpc 2017-12-05 23:29:38 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://access.redhat.com/errata/RHBA-2017:3387