From: Adam King Date: Wed, 9 Apr 2025 22:54:41 +0000 (-0400) Subject: mgr/cephadm: fix staggered upgrade daemon type warning X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=2d248199cda0257884d2aac6a5003118e86c5880;p=ceph.git mgr/cephadm: fix staggered upgrade daemon type warning This was meant to just be daemons that use the ceph image, which everything under "gateway" daemons used to be before the addition of nvmeof and smb. This patch updates it to explicitly reference the daemon types that use the ceph image. Signed-off-by: Adam King --- diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 1a5389d026083..2439c835cbacf 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -97,7 +97,7 @@ from .inventory import ( from .upgrade import CephadmUpgrade from .template import TemplateMgr from .utils import CEPH_IMAGE_TYPES, RESCHEDULE_FROM_OFFLINE_HOSTS_TYPES, forall_hosts, \ - cephadmNoImage, CEPH_UPGRADE_ORDER, SpecialHostLabels + cephadmNoImage, SpecialHostLabels from .configchecks import CephadmConfigChecks from .offline_watcher import OfflineHostWatcher from .tuned_profiles import TunedProfileUtils @@ -3913,9 +3913,9 @@ Then run the following: raise OrchestratorError('--daemon-types and --services are mutually exclusive') if daemon_types is not None: for dtype in daemon_types: - if dtype not in CEPH_UPGRADE_ORDER: + if dtype not in utils.CEPH_IMAGE_TYPES: raise OrchestratorError(f'Upgrade aborted - Got unexpected daemon type "{dtype}".\n' - f'Viable daemon types for this command are: {utils.CEPH_TYPES + utils.GATEWAY_TYPES}') + f'Viable daemon types for this command are: {utils.CEPH_IMAGE_TYPES}') if services is not None: for service in services: if service not in self.spec_store: