]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
osd: best effort if no device is found during activation
authorSébastien Han <seb@redhat.com>
Mon, 18 Dec 2017 15:43:37 +0000 (16:43 +0100)
committerSébastien Han <seb@redhat.com>
Wed, 20 Dec 2017 16:45:06 +0000 (17:45 +0100)
commit4ba36e9593b4d00fbd8130eaf87b86c9442ac23c
tree9300cd0d09a3d2a67c3d4090d91b29143555b618
parentfe7a2378f77d5e78fed711b669725b80b49b1cc0
osd: best effort if no device is found during activation

We have a scenario when we switch from non-container to containers. This
means we don't know anything about the ceph partitions associated to an
OSD. Normally in a containerized context we have files containing the
preparation sequence. From these files we can get the capabilities of
each OSD. As a last resort we use a ceph-disk call inside a dummy bash
container to discover the ceph journal on the current osd.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=1525612
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit bbc79765f3e8b93b707b0f25f94e975c1bd85c66)
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-osd/templates/ceph-osd-run.sh.j2