]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mon,ceph-disk: add lockbox permissions to bootstrap-osd
authorLoic Dachary <ldachary@redhat.com>
Tue, 15 Nov 2016 16:16:37 +0000 (17:16 +0100)
committerLoic Dachary <ldachary@redhat.com>
Wed, 16 Nov 2016 18:34:40 +0000 (19:34 +0100)
commitc1c6224bf8df788cd34e9ba7294a6515a9ab97e3
tree760c8128be6f7f333d718eebb264ae048ac84bc5
parent59bf888e2cdbb64a0e41f2944d104f046c4c59e2
mon,ceph-disk: add lockbox permissions to bootstrap-osd

ceph-disk --dmcrypt needs to put a config-key and authorize
the OSD to get it back. The corresponding permissions are
added to the bootstrap-osd profile in the monitor.

When preparing the OSD lockbox, use the bootstrap-osd profile instead of
implicitly requiring admin permissions to perform the initial config-key
and auth get-or-create operations.

Fixes: http://tracker.ceph.com/issues/17849
Signed-off-by: Loic Dachary <loic@dachary.org>
src/ceph-disk/ceph_disk/main.py
src/mon/MonCap.cc