]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/localpool: fix rule selection 18112/head
authorSage Weil <sage@redhat.com>
Wed, 4 Oct 2017 13:25:38 +0000 (08:25 -0500)
committerSage Weil <sage@redhat.com>
Wed, 4 Oct 2017 13:26:47 +0000 (08:26 -0500)
commit49294965f9f92946382949264344c2aa0b6d70bd
treee1220f406a1c2402d5b703c1caa8b1707622a805
parentcf6f90c5e1e17a1f44f6ed80422b5f1c543362ca
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>
(cherry picked from commit 7623513935525498640defa2064c291fd69a2b76)
src/pybind/mgr/localpool/module.py