Project

General

Profile

Actions

Bug #9485

closed

Monitor crash due to wrong crush rule set

Added by Dong Lei over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
High
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I create a customized crush rule for ec pool

1 set take default
2 choose firstn 6 type rack
3 chooseleaf firstn 2 type host
4 step emit

and it works fine, but if i change "firstn" to "indep" and set crushmap, the monitor crash and can not be restarted.

My cluster has only 6 rack. I guess that the "choose indep 6 type rack" may returns hole in the result, and at the next step CRUSH can not choose leaf from hole, so it fails.

Unfortunately, the wrong crush rule has been set, and every time I try to restart monitor, the monitor crash for the same reason "can not apply rule ... segment fault...". The whole cluster then become unusable.

Although I set a crush rule that can not be satisfied, the monitor should not crash forever.


Files

ceph_osd_tree.txt (1.31 KB) ceph_osd_tree.txt ceph osd tree output Dong Lei, 09/19/2014 02:59 AM
c.txt (4.63 KB) c.txt crush map output Dong Lei, 09/19/2014 02:59 AM

Related issues 2 (0 open2 closed)

Related to RADOS - Bug #9492: Crush Mapper crashes when number of replicas is less than total number of osds to be selected.ResolvedJohnu George09/16/2014

Actions
Is duplicate of RADOS - Support #8600: MON crashes on new crushmap injectionClosed

Actions
Actions

Also available in: Atom PDF