Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: TEST_crush_rule_create_erasure consistently fails on i386 builder #6201

Merged
1 commit merged into from Oct 9, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/test/mon/osd-crush.sh
Expand Up @@ -112,14 +112,14 @@ function TEST_crush_rule_create_erasure() {
./ceph osd crush rule rm $ruleset || return 1
! ./ceph osd crush rule ls | grep $ruleset || return 1
#
# create a bugous ruleset and verify it cannot be used
# to create a pool.
# verify that if the crushmap contains a bugous ruleset,
# it will prevent the creation of a pool.
#
ceph osd erasure-code-profile set myprofile plugin=lrc mapping=__DD__DD layers='[[ "_cDD_cDD", "" ],[ "cDDD____", "" ],[ "____cDDD", "" ],]' ruleset-steps='[ [ "choose", "datacenter", 3 ], [ "chooseleaf", "osd", 0] ]'
local crushtool_path_old=`ceph-conf --show-config-value crushtool`
ceph tell mon.* injectargs --crushtool "false"

expect_failure $dir "Error EINVAL" \
./ceph osd pool create mypool 1 1 erasure myprofile || return 1
./ceph osd crush rule rm mypool || return 1
./ceph osd erasure-code-profile rm myprofile || return 1
./ceph osd pool create mypool 1 1 erasure || return 1
}

function check_ruleset_id_match_rule_id() {
Expand Down