ceph-mon fails to start when CEPH_DATA_DIR is overridden

Bug #1658142 reported by Fiatala Salamo
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
devstack-plugin-ceph
New
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.

Revision history for this message
Fiatala Salamo (fsalamo) wrote :

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

Revision history for this message
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

Revision history for this message
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  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.