]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
osd: ensure /var/lib/ceph/osd/{cluster}-{id} is present
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 17 Nov 2020 09:45:14 +0000 (10:45 +0100)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Fri, 20 Nov 2020 02:14:02 +0000 (21:14 -0500)
commit0efc347a675fc4d2cac45e449f7a15452142d058
tree72676e942a68bd8d2389b03cf0068b064b8877b0
parent76a77f1c924b60b70148dc85ffa815aec9459ac7
osd: ensure /var/lib/ceph/osd/{cluster}-{id} is present

This commit ensures that the `/var/lib/ceph/osd/{{ cluster }}-{{ osd_id }}` is
present before starting OSDs.

This is needed specificly when redeploying an OSD in case of OS upgrade
failure.
Since ceph data are still present on its devices then the node can be
redeployed, however those directories aren't present since they are
initially created by ceph-volume. We could recreate them manually but
for better user experience we can ask ceph-ansible to recreate them.

NOTE:
this only works for OSDs that were deployed with ceph-volume.
ceph-disk deployed OSDs would have to get those directories recreated
manually.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1898486
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 873fc8ec0ff12fa1d1b45c5400050f15d0417480)
roles/ceph-osd/tasks/start_osds.yml