]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cephadm: fix upgrade order validation when using --daemon-types with --hosts
authorShubha Jain <SHUBHA.JAIN1@ibm.com>
Mon, 16 Mar 2026 11:07:25 +0000 (16:37 +0530)
committerShubha Jain <SHUBHA.JAIN1@ibm.com>
Thu, 30 Apr 2026 17:39:05 +0000 (23:09 +0530)
commit4759cad91c5f88b9c5f3ade665f7adfa184cb497
tree69835bfa56dfc4bbe333ccf47780bb2703af2412
parent4760facb40ad6da09d15b8bcd7886f7626c1b24d
cephadm: fix upgrade order validation when using --daemon-types with --hosts

Fix upgrade validation to check earlier daemon types on both same-host and other-host groups when host filtering is used.

Previously only daemons on other hosts were validated, allowing upgrades to bypass the enforced upgrade order in stretch mode clusters.

Add regression tests covering daemon_types+hosts and services+hosts scenarios.

Fixes: https://tracker.ceph.com/issues/75397
Signed-off-by: Shubha Jain <SHUBHA.JAIN1@ibm.com>
src/pybind/mgr/cephadm/templates/services/nfs/ganesha.conf.j2
src/pybind/mgr/cephadm/tests/test_upgrade.py
src/pybind/mgr/cephadm/upgrade.py