]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commit
ceph-osd: exit gracefully when no data partition
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 26 Jun 2020 17:49:17 +0000 (13:49 -0400)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 7 Jul 2020 16:18:14 +0000 (18:18 +0200)
commit4e3301d3614bb9e9ee40d531fcd4421ccf5ea18b
tree0320c4db57c66e8aeaa2619bd18d81b9c82a472c
parent90f3f615483591fe5c983d1d54a72f4bd6b87c10
ceph-osd: exit gracefully when no data partition

When using collocated or non-collocated osd_scenarios (ceph-disk) and
trying to deterime the OSD_DEVICE from the OSD_ID passed to the systemd
unit then we can be in a situation where the OSD hasn't been activated
but the OSD ID exists.
This means the data partition isn't in activate state and the ceph-disk
list command won't show the OSD ID on the data partition.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1850377
Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
roles/ceph-osd/templates/ceph-osd-run.sh.j2