]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: make osd create on an existing LV idempotent 33755/head
authorSage Weil <sage@redhat.com>
Thu, 5 Mar 2020 16:42:26 +0000 (10:42 -0600)
committerSage Weil <sage@redhat.com>
Thu, 5 Mar 2020 23:30:44 +0000 (17:30 -0600)
commitea987a0e56db106f7c76d11f86b3e602257f365e
treeff298590cc20404f78ce2438cf13d951921784de
parent2551bce86d0d27f3780ffe2f741fbfb9763b5c24
mgr/cephadm: make osd create on an existing LV idempotent

If we try to prepare an LV that was already prepared, ceph-volume will
return an error message and code.  We want our osd create command to be
idempotent, though, so recognize the error string and continue.

This is an ugly hack, but quicker than changing ceph-volume behavior, and
it is sufficient to stop all of the teuthology failures.

The second part of this is that we have to deploy the daemon on OSDs that
are already prepared and already exist in our osdmap beforehand, but have
never started.

Works-around: https://tracker.ceph.com/issues/44313
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/cephadm/module.py
src/pybind/mgr/cephadm/tests/test_cephadm.py