.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.
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:
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
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: