Project

General

Profile

Bug #9675

Updated by Loïc Dachary over 9 years ago

commit:78e84f34da83abf5a62ae97bb84ab70774b164a6 

 Dumpling 0.67.10 

 Rule is like this: 

       { "rule_id": 6, 
       "rule_name": "castor", 
       "ruleset": 7, 
       "type": 1, 
       "min_size": 1, 
       "max_size": 10, 
       "steps": [ 
             { "op": "take", 
               "item": -21}, 
             { "op": "chooseleaf_firstn", 
               "num": 0, 
               "type": "host"}, 
             { "op": "emit"}]}] 

 Then: 

    ceph osd pool create testsplit 64   
    # default ruleset is 0 
    ceph osd pool set testsplit pg_num 65 
    # new pg is created correctly 
    ceph osd pool set testsplit crush_ruleset 7 
    # pgs are moved correctly to the other root 
    ceph osd pool set testsplit pg_num 66 
    # new pg is _not_ created 
    ceph osd pool set testsplit crush_ruleset 0 
    # 65 pgs moved to default root, 66th pg still not created. 
    ceph osd pool set testsplit pg_num 67 
    # 66th and 67th pgs are created. 

Back