]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commit
Add OSD secret before monitor starts 208/head
authorSergio de Carvalho <scarvalhojr@users.noreply.github.com>
Mon, 10 Aug 2015 16:53:06 +0000 (17:53 +0100)
committerSergio de Carvalho <scarvalhojr@users.noreply.github.com>
Mon, 10 Aug 2015 16:53:06 +0000 (17:53 +0100)
commit9d875081d486883f86c6f8f5b94a08c04643b907
tree148208edc9ab5690bd35dea8d07fe47d6a6080d5
parentc99b3298c595910abe8b7e6b6c68ee73c6a15929
Add OSD secret before monitor starts

Commit e1f084 introduced a regression when the bootstrap OSD secret is
stored in encrypted databags (EDB). The problem is that if the first
monitor is started without the bootstrap OSD key in the keyring, a
random OSD secret is generated, which will then not match the
pre-generated one.

The solution is to revert the resource that adds the bootstrap OSD key
to where it was (before monitor starts) but add a condition that ensures
this is only done if EDBs are enabled. When EDBs are not enabled, it is
not necessary to add the bootstrap OSD key to the keyring.
recipes/mon.rb