Skip to content

Commit ee6b7ba

Browse files
authored
Merge pull request ceph#56933 from adk3798/service-size-cleanup
mgr/cephadm: cleanup service size logic block Reviewed-by: Michael Fritch <[email protected]>
2 parents f5c30a0 + ed68c6e commit ee6b7ba

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pybind/mgr/cephadm/module.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2259,17 +2259,17 @@ def describe_service(self, service_type: Optional[str] = None, service_name: Opt
22592259
if service_name is not None and service_name != nm:
22602260
continue
22612261

2262-
if spec.service_type not in ['osd', 'node-proxy']:
2263-
size = spec.placement.get_target_count(self.cache.get_schedulable_hosts())
2262+
if spec.service_type == 'osd':
2263+
# osd counting is special
2264+
size = 0
22642265
elif spec.service_type == 'node-proxy':
22652266
# we only deploy node-proxy daemons on hosts we have oob info for
22662267
# Let's make the expected daemon count `orch ls` displays reflect that
22672268
schedulable_hosts = self.cache.get_schedulable_hosts()
22682269
oob_info_hosts = [h for h in schedulable_hosts if h.hostname in self.node_proxy_cache.oob.keys()]
22692270
size = spec.placement.get_target_count(oob_info_hosts)
22702271
else:
2271-
# osd counting is special
2272-
size = 0
2272+
size = spec.placement.get_target_count(self.cache.get_schedulable_hosts())
22732273

22742274
sm[nm] = orchestrator.ServiceDescription(
22752275
spec=spec,

0 commit comments

Comments
 (0)