Explicitly call ceph-create-keys after MON start
... for Ceph versions >= 11.1
For versions of Ceph >= 11.1, starting ceph-mon service doesn't
implicitly call ceph-create-keys to create the client admin key [1].
Call ceph-create-keys after starting MONs to do so.
[1] http://tracker.ceph.com/issues/16036
cc441cbd6e
Change-Id: Id67cc875ce5e8bca7430465a30e2b02dd81c7e6a
This commit is contained in:
parent
ed24ed385d
commit
cf3215dfef
@ -404,6 +404,12 @@ EOF
|
|||||||
sudo service ceph start mon.$(hostname)
|
sudo service ceph start mon.$(hostname)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
local ceph_version
|
||||||
|
ceph_version=$(_get_ceph_version mon)
|
||||||
|
if [[ $(echo $ceph_version '>=' 11.1 | bc -l) == 1 ]] ; then
|
||||||
|
sudo ceph-create-keys --cluster ceph --id $(hostname)
|
||||||
|
fi
|
||||||
|
|
||||||
# wait for the admin key to come up
|
# wait for the admin key to come up
|
||||||
# otherwise we will not be able to do the actions below
|
# otherwise we will not be able to do the actions below
|
||||||
until [ -f ${CEPH_CONF_DIR}/ceph.client.admin.keyring ]; do
|
until [ -f ${CEPH_CONF_DIR}/ceph.client.admin.keyring ]; do
|
||||||
|
Loading…
Reference in New Issue
Block a user