Skip to content

Commit 05c9d46

Browse files
authored
Merge pull request ceph#56637 from adk3798/node-proxy-service-expected-daemon-count
mgr/cephadm: fix node-proxy service size Reviewed-by: Guillaume Abrioux <[email protected]>
2 parents 5e5b4b9 + 7ce1f79 commit 05c9d46

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/pybind/mgr/cephadm/module.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2259,8 +2259,14 @@ 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 != 'osd':
2262+
if spec.service_type not in ['osd', 'node-proxy']:
22632263
size = spec.placement.get_target_count(self.cache.get_schedulable_hosts())
2264+
elif spec.service_type == 'node-proxy':
2265+
# we only deploy node-proxy daemons on hosts we have oob info for
2266+
# Let's make the expected daemon count `orch ls` displays reflect that
2267+
schedulable_hosts = self.cache.get_schedulable_hosts()
2268+
oob_info_hosts = [h for h in schedulable_hosts if h.hostname in self.node_proxy_cache.oob.keys()]
2269+
size = spec.placement.get_target_count(oob_info_hosts)
22642270
else:
22652271
# osd counting is special
22662272
size = 0

0 commit comments

Comments
 (0)