]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: fix upgrade order validation when using daemon_types with hosts
authorShubha Jain <SHUBHA.JAIN1@ibm.com>
Mon, 9 Mar 2026 07:11:14 +0000 (12:41 +0530)
committerShubha Jain <SHUBHA.JAIN1@ibm.com>
Thu, 30 Apr 2026 17:39:04 +0000 (23:09 +0530)
commit4760facb40ad6da09d15b8bcd7886f7626c1b24d
tree71875984453f157b42997eddd138cfaeece1b33c
parent5715eac79accc01df303df95747b63bfaca64d59
mgr/cephadm: fix upgrade order validation when using daemon_types with hosts

When both daemon_types and hosts filters are provided to
`ceph orch upgrade start`, the validation logic in
`_validate_upgrade_filters()` only checked earlier daemon
types on hosts outside the target host set.

This caused a bug where earlier daemon types running on the
target hosts were ignored, allowing upgrades to proceed out
of order. For example, a crash daemon upgrade could start on
a host even when mon daemons on that same host were still on
an older version.

This patch fixes the validation by checking earlier daemon
types on both:

* daemons running on the same hosts
* daemons running on other hosts

This ensures upgrade order enforcement remains correct when
host filters are applied.

Fixes: https://tracker.ceph.com/issues/75397
Signed-off-by: Shubha Jain <SHUBHA.JAIN1@ibm.com>
src/pybind/mgr/cephadm/upgrade.py