]> 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>
Tue, 4 Dec 2018 09:01:50 +0000 (09:01 +0000)
commit8d1c67beb254f8d0a94a959756b604d7fe18e785
tree5838fa940599f7b954fac7adac67416cb737185f
parent1151521784eab15ccbc4e1eb76709ff5abf58519
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>
(cherry picked from commit 4c5113019893c92c4d75c9fc457b04158b86398b)
roles/ceph-osd/templates/ceph-osd-run.sh.j2