Bug 1255827 - [RH-COMMON] FAILED assert(m_seed < old_pg_num) in librbd when increasing placement groups
Summary: [RH-COMMON] FAILED assert(m_seed < old_pg_num) in librbd when increasing plac...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RBD
Version: 1.2.3
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 1.2.4
Assignee: Josh Durgin
QA Contact: ceph-qe-bugs
URL:
Whiteboard:
Depends On: 1271774
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-21 16:12 UTC by Jason Dillaman
Modified: 2022-02-21 18:19 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1255830 (view as bug list)
Environment:
Last Closed: 2015-12-08 16:27:53 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 10399 0 None None None Never
Red Hat Bugzilla 1258625 0 high CLOSED FAILED assert(m_seed < old_pg_num) in librbd when increasing placement groups 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker RHCEPH-3347 0 None None None 2022-02-21 18:19:19 UTC

Internal Links: 1258625

Description Jason Dillaman 2015-08-21 16:12:04 UTC
Description of problem:
If librbd has an image opened and the image header's placement group is split (via increasing the number of placement groups), librbd will crash due to a failed assertion.

Version-Release number of selected component (if applicable):
ceph-0.80.8-16

How reproducible:
100%

Steps to Reproduce:
1. create a pool 'test' with 8 pgs
2. rbd create --pool test --image-format 1 --size 1024 foo
3. rbd watch --pool test foo
4. ceph osd pool set test pg_num 16

Actual results:
FAILED assert(m_seed < old_pg_num)

Expected results:
librbd transparently handles the PG increase.

Additional info:

Comment 2 Jason Dillaman 2015-08-21 16:23:39 UTC
Technically -- will only fail if the "RBD header's placement hash" module "old PG count mask" != "RBD header's placement hash" modulo "new PG count mask".  Therefore, the larger the increase in PG count (i.e. double the size), the more likely you will encounter the issue.

Comment 3 Ken Dreyer (Red Hat) 2015-09-01 18:15:11 UTC
Jason and Josh, I'm thinking this bug is a duplicate of bug 1258625. Do you agree?

Comment 4 Josh Durgin 2015-09-01 18:27:35 UTC
Yeah, same bug. Close whichever is convenient.

Comment 5 Ken Dreyer (Red Hat) 2015-09-01 18:32:26 UTC
Thanks! closing this one, since 1258625 has more people on the CC and the customer portal cases attached.

*** This bug has been marked as a duplicate of bug 1258625 ***

Comment 6 Ken Dreyer (Red Hat) 2015-09-03 02:36:42 UTC
On second thought, we'll need this BZ in order to track the librbd fix in RH-COMMON.

Comment 7 Ken Dreyer (Red Hat) 2015-12-08 16:27:53 UTC
Closing all RHCS 1.2 bugs, since we are not planning to do a formal RHCS 1.2.4 release.

This particular issue was already fixed in RHCS 1.3, in https://bugzilla.redhat.com/show_bug.cgi?id=1255830


Note You need to log in before you can comment on or make changes to this bug.