Bug 1347205

Summary: Even after disabling Journal, the image is showing up in Slave Node
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tanay Ganguly <tganguly>
Component: RBDAssignee: Jason Dillaman <jdillama>
Status: CLOSED ERRATA QA Contact: Rachana Patel <racpatel>
Severity: high Docs Contact:
Priority: high    
Version: 2.0CC: ceph-eng-bugs, flucifre, hnallurv, kurs, uboppana
Target Milestone: rc   
Target Release: 2.1   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: RHEL: ceph-10.2.3-2.el7cp Ubuntu: ceph_10.2.3-3redhat1xenial Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-22 19:26: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: 1343229    
Attachments:
Description Flags
Slave Log none

Description Tanay Ganguly 2016-06-16 09:49:10 UTC
Created attachment 1168651 [details]
Slave Log

Description of problem:
Even after disabling Journal, the image is showing up in Slave Node.

Version-Release number of selected component (if applicable):
ceph version 10.2.2-1.el7cp
rbd-mirror-10.2.2-1.el7cp.x86_64

How reproducible:
Once

Steps to Reproduce:
1. Create an Image with Journaling enabled.
2. Start IO using bench-write.
3. Then execute:

for i in {1..10}; do rbd feature disable RBD/test1 journaling --cluster master; rbd bench-write RBD/test1 --io-size 10240 --cluster master; rbd feature enable RBD/test1 journaling --cluster master; done

4. Step 3 completes, again i disabled the Journal. 


Actual results:
Journal got disabled from Master Node, but in Slave its still showing up.

rbd -p RBD --image test3 info --cluster master
rbd image 'test3':
        size 10240 MB in 2560 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.129c238e1f29
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
        flags: 


rbd -p RBD --image test3 info --cluster slave
rbd image 'test3':
        size 10240 MB in 2560 objects
        order 22 (4096 kB objects)
        block_name_prefix: rbd_data.107843754db7
        format: 2
        features: layering, exclusive-lock, object-map, fast-diff, deep-flatten, journaling
        flags: 
        journal: 107843754db7
        mirroring state: enabled
        mirroring global id: b6e7f98c-17ab-43d0-82c5-b6207385b8d1
        mirroring primary: false


Expected results:
Once Journal being disabled from Master Node, it should also get disabled from Slave Node.

Additional info:

Jun 16 09:46:37 magna003 rbd-mirror[30993]: 2016-06-16 09:46:37.987086 7f8d40ff9700 -1 rbd::mirror::Replayer: 0x7f8d8361e050 set_sources: failed to retrieve remote mirror uuid from pool RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:46:38 magna003 rbd-mirror[30993]: 2016-06-16 09:46:38.259674 7f8d40ff9700 -1 rbd::mirror::Replayer: 0x7f8d8361e050 set_sources: failed to retrieve remote mirror uuid from pool RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:47:08 magna003 rbd-mirror[30993]: 2016-06-16 09:47:08.259368 7f8d417fa700 -1 rbd::mirror::PoolWatcher: 0x7f8d8362edc0 refresh: could not tell whether mirroring was enabled for RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:47:08 magna003 rbd-mirror[30993]: 2016-06-16 09:47:08.532182 7f8d40ff9700 -1 rbd::mirror::Replayer: 0x7f8d8361e050 set_sources: failed to retrieve remote mirror uuid from pool RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:47:38 magna003 rbd-mirror[30993]: 2016-06-16 09:47:38.531569 7f8d417fa700 -1 rbd::mirror::PoolWatcher: 0x7f8d8362edc0 refresh: could not tell whether mirroring was enabled for RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:47:38 magna003 rbd-mirror[30993]: 2016-06-16 09:47:38.804377 7f8d40ff9700 -1 rbd::mirror::Replayer: 0x7f8d8361e050 set_sources: failed to retrieve remote mirror uuid from pool RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:48:08 magna003 rbd-mirror[30993]: 2016-06-16 09:48:08.803833 7f8d417fa700 -1 rbd::mirror::PoolWatcher: 0x7f8d8362edc0 refresh: could not tell whether mirroring was enabled for RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:48:09 magna003 rbd-mirror[30993]: 2016-06-16 09:48:09.076374 7f8d40ff9700 -1 rbd::mirror::Replayer: 0x7f8d8361e050 set_sources: failed to retrieve remote mirror uuid from pool RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:48:39 magna003 rbd-mirror[30993]: 2016-06-16 09:48:39.076300 7f8d417fa700 -1 rbd::mirror::PoolWatcher: 0x7f8d8362edc0 refresh: could not tell whether mirroring was enabled for RBD: (108) Cannot send after transport endpoint shutdown
Jun 16 09:48:39 magna003 rbd-mirror[30993]: 2016-06-16 09:48:39.349145 7f8d40ff9700 -1 rbd::mirror::Replayer: 0x7f8d8361e050 set_sources: failed to retrieve remote mirror uuid from pool RBD: (108) Cannot send after transport endpoint shutdown

Comment 6 kiran raje urs J 2016-06-16 13:42:06 UTC
setting it to 2.0

Comment 9 Jason Dillaman 2016-08-10 19:16:11 UTC
Upstream pull request: https://github.com/ceph/ceph/pull/9970

Comment 14 Rachana Patel 2016-10-21 01:10:49 UTC
Verified with build - 10.2.3-8.el7cp.x86_64
When we disable journaling, it removes image from remote/slave cluster.Hence moving to verified stae

Comment 16 errata-xmlrpc 2016-11-22 19:26: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://rhn.redhat.com/errata/RHSA-2016-2815.html