From cf3215dfef91e275f2619333ac4dd1f169b83615 Mon Sep 17 00:00:00 2001 From: Ramana Raja Date: Tue, 28 Mar 2017 18:56:33 +0100 Subject: [PATCH] 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 https://github.com/ceph/ceph/commits/cc441cbd6e146e22b84224f1e53753b780151f01 Change-Id: Id67cc875ce5e8bca7430465a30e2b02dd81c7e6a --- devstack/lib/ceph | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/devstack/lib/ceph b/devstack/lib/ceph index 8eac925..ace5e25 100644 --- a/devstack/lib/ceph +++ b/devstack/lib/ceph @@ -404,6 +404,12 @@ EOF sudo service ceph start mon.$(hostname) 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 # otherwise we will not be able to do the actions below until [ -f ${CEPH_CONF_DIR}/ceph.client.admin.keyring ]; do