]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
osd: discover osd_objectstore on the fly
authorSébastien Han <seb@redhat.com>
Fri, 30 Nov 2018 10:20:03 +0000 (11:20 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Mon, 3 Dec 2018 14:11:47 +0000 (14:11 +0000)
commit4c5113019893c92c4d75c9fc457b04158b86398b
treee084290b7d5ca6efa9e4b51226b3a181f03819f3
parentbef522627e1e9827b86710c7a54f35a0cd596fbb
osd: discover osd_objectstore on the fly

Applying and passing the OSD_BLUESTORE/FILESTORE on the fly is wrong for
existing clusters as their config will be changed.

Typically, if an OSD was prepared with ceph-disk on filestore and we
change the default objectstore to bluestore, the activation will fail.
The flag osd_objectstore should only be used for the preparation, not
activation. The activate in this case detects the osd objecstore which
prevents failures like the one described above.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-osd/templates/ceph-osd-run.sh.j2