]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mon,ceph-disk: add lockbox permissions to bootstrap-osd 12033/head
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 23:51:35 +0000 (00:51 +0100)
commit652f4902562247591f503d444de25da8edb845a3
tree9baf657b73243c42228e274c3072be520e40458f
parent6cf2916b0ee1336c3508974ee439dde1320265df
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>
(cherry picked from commit c1c6224bf8df788cd34e9ba7294a6515a9ab97e3)
src/ceph-disk/ceph_disk/main.py
src/mon/MonCap.cc