Project

General

Profile

Actions

Bug #9492

closed

Crush Mapper crashes when number of replicas is less than total number of osds to be selected.

Added by Johnu George over 9 years ago. Updated almost 7 years ago.

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

100%

Source:
other
Tags:
Backport:
giant, firefly
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

1. ./crushtool --outfn crushmap --build --num_osds 100 host straw 4 rack straw 10 default straw 0
2../crushtool -d crushmap -o crushmap.txt
3. Add to crushmap.txt
rule myrule {
ruleset 1
type replicated
min_size 1
max_size 10
step take default
step choose firstn 2 type rack
step chooseleaf firstn 4 type host
step emit
}

4. ./crushtool -c crushmap.txt -o crushmap
5. ./crushtool -i crushmap --test --show-utilization --rule 1 --min-x 1 --max-x 10 --num-rep=3
(Same is the case for --num-rep=1 or --num-rep=2)


Related issues 2 (0 open2 closed)

Related to Ceph - Bug #9490: crushtool crash if --num-rep is missingRejectedLoïc Dachary09/16/2014

Actions
Related to Ceph - Bug #9485: Monitor crash due to wrong crush rule setResolvedLoïc Dachary09/15/2014

Actions
Actions

Also available in: Atom PDF