Bug #8599
Updated by Loïc Dachary almost 10 years ago
h3. Workaround
Use the rule_id instead of the ruleset. The rule_id for a given ruleset can be found with:
<pre>
$ ceph osd crush rule dump
...
{ "rule_id": 4,
"rule_name": "fastrgw",
"ruleset": 50,
"type": 1,
...
</pre>
h3. Description
ceph osd pool set data crush_ruleset 50* was using CrushWrapper::rule_exists, which checks for a *rule* existing, whereas the value being set is a *ruleset*.
Fixed by J. Spray "on firefly":https://github.com/ceph/ceph/commit/fb504baed98d57dca8ec141bcc3fd021f99d82b0
"related mail thread":http://www.spinics.net/lists/ceph-devel/msg19302.html