]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: handle setting required osd release with no OSDs during upgrade 56768/head
authorAdam King <adking@redhat.com>
Wed, 3 Apr 2024 18:34:08 +0000 (14:34 -0400)
committerAdam King <adking@redhat.com>
Mon, 8 Apr 2024 19:51:44 +0000 (15:51 -0400)
commit5a66f1cfd1bf5155725db7c935d60d46e70f1e83
tree95430dd22944b8f6e9b72fa7595f6d2d37a68979
parent4870d5a890743a871e99c190e2baea5ccf0df349
mgr/cephadm: handle setting required osd release with no OSDs during upgrade

A change to the `ceph osd require-osd-release` command made it so
it fails if no OSDs are up unless --yes-i-really-mean-it is passed.
For real clusters this is likely not an issue, but it can be an
annoyance for trying upgrades on test clusters that may not have
OSDs deployed. This patch is to try and just pass the flag in cases
where we have no OSDs rather than failing the upgrade

Signed-off-by: Adam King <adking@redhat.com>
(cherry picked from commit 1033251fd3e021c92e0f407f63632b85073e4a36)
src/pybind/mgr/cephadm/upgrade.py