]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
dashboard: add location field to NVMeoF namespace and gateway group APIs 67400/head
authorVictoria Mackie <victoriam@uk.ibm.com>
Fri, 13 Feb 2026 21:40:01 +0000 (21:40 +0000)
committerVictoria Mackie <victoriam@uk.ibm.com>
Tue, 3 Mar 2026 10:13:02 +0000 (10:13 +0000)
commit5821d1b03e8317242ceeb66ab2f32937bf986db0
tree104cd5cf24cae765a1e40d76647a2c3b17e3dcff
parent2af3823c0cd4a77df36368746b2a3e83545ff8d4
dashboard: add location field to NVMeoF namespace and gateway group APIs

Namespace location:
- Add location field to Namespace model in nvmeof.py
- Add location parameter to PATCH /api/nvmeof/subsystem/{nqn}/namespace/{nsid}
- Location can now be retrieved via GET and set via PATCH

Gateway group locations:
- Add locations array to gateway group endpoint response
- Extract locations from all gateways in a service group
- Add _get_gateway_locations() helper method using nvme-gw show command
- Locations appear in placement.locations for each service

Signed-off-by: Victoria Mackie <victoriam@uk.ibm.com>
src/pybind/mgr/dashboard/controllers/nvmeof.py
src/pybind/mgr/dashboard/model/nvmeof.py
src/pybind/mgr/dashboard/openapi.yaml
src/pybind/mgr/dashboard/services/nvmeof_client.py