]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephadm: return nonzero exit code when applying spec fails in bootstrap 47952/head
authorAdam King <adking@redhat.com>
Wed, 17 Aug 2022 20:54:54 +0000 (16:54 -0400)
committerAdam King <adking@redhat.com>
Sat, 3 Sep 2022 17:20:35 +0000 (13:20 -0400)
commit04be5915de52d399efcfb93f7bcd4c6fed4e22ef
tree0570fa1ba61682f26f16b59ad601c5be3b4e4feb
parent3252d0c7063f36223b01a43f35687a003b885baa
cephadm: return nonzero exit code when applying spec fails in bootstrap

This is mostly useful for testing automation, but right now if applying the
spec provided with --apply-spec fails, the return code remains zero. We don't
want to error out entirely in that case as we still want to print the remaining
output (e.g. the dashboard password). Continuing onward and then returning a
nonzero code could provide a balance where we still give all the output but
still have something to make it easier for those writing automation around bootstrap.

Fixes: https://tracker.ceph.com/issues/57173
Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit be17f1d4b30e19aa6039fa5d6a694129cb5f3583)
src/cephadm/cephadm