]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix group name bugs in the nvmeof API 60222/head
authorNizamudeen A <nia@redhat.com>
Wed, 9 Oct 2024 14:45:55 +0000 (20:15 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 11 Oct 2024 08:01:57 +0000 (13:31 +0530)
commitf9b50b2e88ae5d9ac4f2cab986527a0a12317da9
treeada5cbfd58247262df94e79f63c46dd3baead274
parentd3a9045eb3f3904f296ac47a89a16999c69ed336
mgr/dashboard: fix group name bugs in the nvmeof API

there are 2 issues

1. in cephadm, i was always using the first daemon to populate the group
   in all the services for the dashboard config.

2. in the API, if there are more than 1 gateways listed in the config,
   rather than chosing a random gateway from the group, raise an
   exception and warn user to specify the gw_group parameter in the api
   request

Fixes: https://tracker.ceph.com/issues/68463
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/cephadm/services/nvmeof.py
src/pybind/mgr/dashboard/services/nvmeof_conf.py