]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/nfs: improve cluster info implementation and fix deployment type logic
authorShubha Jain <SHUBHA.JAIN1@ibm.com>
Mon, 16 Feb 2026 14:03:01 +0000 (19:33 +0530)
committerShubha Jain <SHUBHA.JAIN1@ibm.com>
Thu, 19 Feb 2026 17:00:55 +0000 (22:30 +0530)
commit23227a2e898c35b1502e02d77252bbbbabcd843d
treeba779d96586c9aa5567da6cf417021dea7a52e2b
parent32ae7d59fe9e2a51c45d4d66955048f25456016c
mgr/nfs: improve cluster info implementation and fix deployment type logic

- Show placement details and daemon roles in cluster info output
- Add deployment type field showing standalone/active-passive/active-active
- Use orchestrator.DaemonDescriptionStatus.to_str() directly
- Use placement.to_json() for placement field
- Cache get_hosts() to avoid O(n) orchestrator calls
- Optimize ingress service lookup with direct query
- Fix safe access to daemon.ports to prevent IndexError
- Use explicit None checks for port values
- Return empty dict {} for placement instead of None
- Remove unnecessary wrapper methods and comments
- Fix flake8 issues and update tests

Fixes: https://tracker.ceph.com/issues/74239
Fixes: https://tracker.ceph.com/issues/74240
Signed-off-by: Shubha jain <SHUBHA.JAIN1@ibm.com>
Signed-off-by: Shubha Jain <SHUBHA.JAIN1@ibm.com>
qa/tasks/cephfs/test_nfs.py
src/pybind/mgr/nfs/cluster.py
src/pybind/mgr/nfs/tests/test_nfs.py