-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'wip-check-for-overlapped-rule' of git://github.com/tcha…
…ikov/ceph into wip-sage-testing
- Loading branch information
Showing
5 changed files
with
151 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 89 additions & 0 deletions
89
src/test/cli/crushtool/check-overlapped-rules.crushmap.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
device 0 device0 | ||
device 1 device1 | ||
device 2 device2 | ||
device 3 device3 | ||
device 4 device4 | ||
|
||
type 0 osd | ||
type 1 host | ||
|
||
host host0 { | ||
id -1 | ||
alg straw | ||
hash 0 | ||
item device0 weight 1.000 | ||
item device1 weight 1.000 | ||
item device2 weight 1.000 | ||
item device3 weight 1.000 | ||
item device4 weight 1.000 | ||
} | ||
|
||
rule rule-r0 { | ||
ruleset 0 | ||
type replicated | ||
min_size 1 | ||
max_size 3 | ||
step take host0 | ||
step choose firstn 0 type osd | ||
step emit | ||
} | ||
|
||
rule rule-r1 { | ||
ruleset 0 | ||
type replicated | ||
min_size 1 | ||
max_size 1 | ||
step take host0 | ||
step choose firstn 0 type osd | ||
step emit | ||
} | ||
|
||
rule rule-r2 { | ||
ruleset 0 | ||
type replicated | ||
min_size 1 | ||
max_size 2 | ||
step take host0 | ||
step choose firstn 0 type osd | ||
step emit | ||
} | ||
|
||
rule rule-r3 { | ||
ruleset 0 | ||
type replicated | ||
min_size 2 | ||
max_size 3 | ||
step take host0 | ||
step choose indep 0 type osd | ||
step emit | ||
} | ||
|
||
rule rule-r4 { | ||
ruleset 0 | ||
type replicated | ||
min_size 4 | ||
max_size 5 | ||
step take host0 | ||
step choose indep 0 type osd | ||
step emit | ||
} | ||
|
||
rule rule-e0 { | ||
ruleset 0 | ||
type erasure | ||
min_size 1 | ||
max_size 10 | ||
step take host0 | ||
step choose indep 0 type osd | ||
step emit | ||
} | ||
|
||
rule rule-e1 { | ||
ruleset 1 | ||
type erasure | ||
min_size 1 | ||
max_size 10 | ||
step take host0 | ||
step choose indep 0 type osd | ||
step emit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
$ crushtool -c "$TESTDIR/check-overlapped-rules.crushmap.txt" -o "$TESTDIR/check-overlapped-rules.crushmap" | ||
$ crushtool -i "$TESTDIR/check-overlapped-rules.crushmap" --check | ||
overlapped rules in ruleset 0: rule-r0, rule-r1, rule-r2 | ||
overlapped rules in ruleset 0: rule-r0, rule-r2, rule-r3 | ||
overlapped rules in ruleset 0: rule-r0, rule-r3 | ||
$ rm -f "$TESTDIR/check-overlapped-rules.crushmap" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters