Skip to content

Commit fdb0872

Browse files
authored
Merge pull request ceph#62755 from adk3798/cephadm-upgrade-smb
mgr/cephadm: add smb to upgrade order Reviewed-by: John Mulligan <[email protected]>
2 parents 2be9630 + 2d24819 commit fdb0872

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/pybind/mgr/cephadm/module.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
from .upgrade import CephadmUpgrade
9898
from .template import TemplateMgr
9999
from .utils import CEPH_IMAGE_TYPES, RESCHEDULE_FROM_OFFLINE_HOSTS_TYPES, forall_hosts, \
100-
cephadmNoImage, CEPH_UPGRADE_ORDER, SpecialHostLabels
100+
cephadmNoImage, SpecialHostLabels
101101
from .configchecks import CephadmConfigChecks
102102
from .offline_watcher import OfflineHostWatcher
103103
from .tuned_profiles import TunedProfileUtils
@@ -3956,9 +3956,9 @@ def upgrade_start(self, image: str, version: str, daemon_types: Optional[List[st
39563956
raise OrchestratorError('--daemon-types and --services are mutually exclusive')
39573957
if daemon_types is not None:
39583958
for dtype in daemon_types:
3959-
if dtype not in CEPH_UPGRADE_ORDER:
3959+
if dtype not in utils.CEPH_IMAGE_TYPES:
39603960
raise OrchestratorError(f'Upgrade aborted - Got unexpected daemon type "{dtype}".\n'
3961-
f'Viable daemon types for this command are: {utils.CEPH_TYPES + utils.GATEWAY_TYPES}')
3961+
f'Viable daemon types for this command are: {utils.CEPH_IMAGE_TYPES}')
39623962
if services is not None:
39633963
for service in services:
39643964
if service not in self.spec_store:

src/pybind/mgr/cephadm/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class CephadmNoImage(Enum):
2424
# NOTE: order important here as these are used for upgrade order
2525
CEPH_TYPES = ['mgr', 'mon', 'crash', 'osd', 'mds', 'rgw',
2626
'rbd-mirror', 'cephfs-mirror', 'ceph-exporter']
27-
GATEWAY_TYPES = ['iscsi', 'nfs', 'nvmeof']
27+
GATEWAY_TYPES = ['iscsi', 'nfs', 'nvmeof', 'smb']
2828
MONITORING_STACK_TYPES = ['node-exporter', 'prometheus',
2929
'alertmanager', 'grafana', 'loki', 'promtail']
3030
RESCHEDULE_FROM_OFFLINE_HOSTS_TYPES = ['haproxy', 'nfs']

0 commit comments

Comments
 (0)