]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
fs2bs: skip migration when a mix of fs and bs is detected
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 15 Dec 2020 16:49:32 +0000 (17:49 +0100)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 13 Jan 2021 11:36:31 +0000 (12:36 +0100)
commitaf95c34c6b9f317dcd104e326ffd161ef4844d60
treecd55ec75cdef6571d2d26da34f1e8666473a0b4c
parent8d59a25a55790917ede4c3f3bed6858c7d697fb6
fs2bs: skip migration when a mix of fs and bs is detected

Since the default of `osd_objectstore` has changed as of 3.2, some
deployments might have a mix of filestore and bluestore OSDs on a same
node. In some specific cases, there's a possibility that a filestore OSD
shares a journal/db device with a bluestore OSD. We shouldn't try to
redeploy in this context because ceph-volume will complain. (either
because in lvm batch you can't pass partition or about gpt header).
The safest option is to skip the migration on the node when such a mix
is detected or force all osds including those already using bluestore
(option `force_filestore_to_bluestore=True` has to be passed as an extra var).
If all OSDs are using filestore, then they will be migrated to
bluestore.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1875777
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit e66f12d1387e7fa86138ae18d3026a1f31328b6b)
infrastructure-playbooks/filestore-to-bluestore.yml