Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
This project is now read‑only. Starting Monday, February 2, please use https://ibm-ceph.atlassian.net/ for all bug tracking management.

Bug 1245785

Summary: Objecter: resend linger ops on split
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Josh Durgin <jdurgin>
Component: RBDAssignee: Josh Durgin <jdurgin>
Status: CLOSED ERRATA QA Contact: ceph-qe-bugs <ceph-qe-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 1.2.3CC: ceph-eng-bugs, jdillama, kdreyer, mhackett, nlevine, tmuthami, wusui
Target Milestone: rc   
Target Release: 1.2.4   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: ceph-0.80.8-15.el6cp ceph-0.80.8-15.el7cp Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-09-02 14:08:02 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 Josh Durgin 2015-07-22 18:12:22 UTC
Description of problem:
Watches are not resent correctly if the number of pgs in a pool is increased (aka split).

This results in rbd snapshots not taking effect, and getting new data added to them past the point when the snapshot was taken (i.e. tracker.ceph.com/issues/12422)

Version-Release number of selected component (if applicable):
all ceph-1.2

How reproducible:
ce
Steps to Reproduce:
Assuming you're testing with a cluster with more than one osd, and using the 'rbd' pool with 8 pgs:

1. rbd create -s 1 --image-format 1 test

2. In one terminal leave this running: rbd watch test

3. In another terminal, double the number of pgs in the rbd pool:

ceph osd pool set rbd pg_num 16
sleep 30
ceph osd pool set rbd pgp_num 16
sleep 30

4. Check whether the watch is still there:

rados -p rbd listwatchers test.rbd


Actual results:
No watchers listed

Expected results:
Watchers still present

Additional info:

Comment 1 Josh Durgin 2015-07-22 18:14:15 UTC
Note that this only affects the 1.2 series - this fix is already included in hammer and rhcs1.3.

Comment 3 Ken Dreyer (Red Hat) 2015-07-30 03:57:08 UTC
The patch to fix this bug will be in Ceph v0.80.8.4 for non-RHEL.

Comment 4 Warren 2015-08-26 04:34:36 UTC
On trusty and precise, the test in the description returns

error listing watchers spool/test.rbd: (2) No such file or directory

Comment 5 Warren 2015-09-01 02:22:52 UTC
Passed on Centos 6.7 -- I ran this test five times without producing a failure

Comment 7 errata-xmlrpc 2015-09-02 14:08:02 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-2015-1703.html

Comment 8 Tamil 2015-09-03 00:10:12 UTC
for the record, this bug was verified on centos 6.7, trusty and precise. works fine!

Comment 10 Mike Hackett 2015-10-14 21:49:21 UTC
*** Bug 1271827 has been marked as a duplicate of this bug. ***