ceph-mon fails to start when CEPH_DATA_DIR is overridden

Bug #1658142 reported by Fiatala Salamo on 2017-01-20
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack-plugin-ceph
Undecided
Unassigned

Bug Description

System: CentOS 7

ceph-mon needs a '--mon-data ${CEPH_DATA_DIR}/mon/ceph-$(hostname)'
https://github.com/openstack/devstack-plugin-ceph/blob/master/devstack/lib/ceph#L389

Without that flag the keyring and store are written to the default location with root ownership. The service then fails to start.

Fiatala Salamo (fsalamo) wrote :

Looks like this will also need a "mon data" change in ceph.conf.

Fiatala Salamo (fsalamo) wrote :

Never mind - looks like keyring is hard-coded, so modifying the mon-data string or the config won't work. e.g.

    [mon]
    mon data = ...
    keyring = ...

ceph-create-keys runs when the service starts, and it only knows about /var/lib/ceph.
https://github.com/ceph/ceph/blob/master/src/ceph-create-keys#L108

sven mark (svenmark) wrote :

yeah,only this local.conf var CEPH_DISK_IMAGE is valid, if other namespace is to be used.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers