ceph-ansible replicated crush rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

With ceph-ansible the default replicated crush rule is :
{
       "rule_id": 0,
       "rule_name": "replicated_rule",
       "ruleset": 0,
       "type": 1,
       "min_size": 1,
       "max_size": 10,
       "steps": [
           {
               "op": "take",
               "item": -1,
               "item_name": "default"
           },
           {
               "op": "chooseleaf_firstn",
               "num": 0,
               "type": "host"
           },
           {
               "op": "emit"
           }
       ]
   }

And I would like to have this:
{
       "rule_id": 0,
       "rule_name": "replicated_rule",
       "ruleset": 0,
       "type": 1,
       "min_size": 2,
       "max_size": 4,
       "steps": [
           {
               "op": "take",
               "item": -1,
               "item_name": "default"
           },
           {
               "op": "chooseleaf_firstn",
               "num": 0,
               "type": "rack"
           },
           {
               "op": "emit"
           }
       ]
   }

How can I do this within ceph-ansible playbook ?
I try :
crush_rule_replicated:
 name: replicated_rule
 root: default
 ruleset: 0
 type: replicated
 min_size: 2
 max_size: 4
 step: 
   - take default
   - chooseleaf firstn 0 type rack
   - emit
 default: true

crush_rules:
 - "{{ crush_rule_replicated }}" 


task path: roles/ceph-osd/tasks/crush_rules.yml:32 try to change it but it fail:
stdout_lines:
   - ''
   - '{"rule_id":0,"rule_name":"replicated_rule","ruleset":0,"type":1,"min_size":1,"max_size":10,"steps":[{"op":"take","item":-1,"item_name":"default"},{"op":"chooseleaf_firstn","num":0,"type":"host"},{"op":"emit"}]}'

Anyone have an idea ?
Regards

Marc
_______________________________________________
ceph-users mailing list -- ceph-users@xxxxxxx
To unsubscribe send an email to ceph-users-leave@xxxxxxx



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux