ceph-mon fails to start when CEPH_DATA_DIR is overridden

Bug #1658142 reported by Fiatala Salamo on 2017-01-20
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

System: CentOS 7

ceph-mon needs a '--mon-data ${CEPH_DATA_DIR}/mon/ceph-$(hostname)'

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 data = ...
    keyring = ...

ceph-create-keys runs when the service starts, and it only knows about /var/lib/ceph.

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