mirror of
https://github.com/ceph/ceph
synced 2024-12-26 21:43:10 +00:00
mgr/localpool: fix rule selection
The 'osd pool create' arg parsing is broken; the rule name for 'ceph osd pool create $name $numpgs replicated $rulename' is passed via the erasure_code_profile param. Too many req=false options without a way to disambiguate them. Work around it by passing both 'rule' and 'erasure_code_profile' keys, so that if/when the hack in OSDMonitor.cc is removed it will still work. Blech. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
af72a8932c
commit
7623513935
@ -54,6 +54,7 @@ class Module(MgrModule):
|
||||
"format": "json",
|
||||
"pool": pool_name,
|
||||
'rule': pool_name,
|
||||
'erasure_code_profile': pool_name,
|
||||
"pool_type": 'replicated',
|
||||
'pg_num': str(pg_num),
|
||||
}), "")
|
||||
|
Loading…
Reference in New Issue
Block a user