]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: select default daemon based on the default zonegroup
authorNizamudeen A <nia@redhat.com>
Fri, 7 Jun 2024 07:45:06 +0000 (13:15 +0530)
committerNizamudeen A <nia@redhat.com>
Fri, 21 Jun 2024 11:15:50 +0000 (16:45 +0530)
commit013d0826c12e4bfc9dc2b8984b1605694ac7d2ea
tree048fd218365daf0ad1425b8188fdfd111491aabd
parent414085c1d72de0fd6669746cf5d1dc2815ee48b1
mgr/dashboard: select default daemon based on the default zonegroup

if multisite is configured, the default daemon needs to be selected
based on the default zonegroup. Otherwise dashboard gives you incorrect
details when doing the period commit

The issue occurs when you do a period update --commit and you reload one
of the block page, the api assigns the zonegroup of the second gateway
because for a moment, the first gateway reflects the period changes...
This is not true because the default zonegroup is of the previous active
gateway but even though the back-end correctly says the active
zonegroup, the dashboard api says it wrongly.

Fixes: https://tracker.ceph.com/issues/66394
Signed-off-by: Nizamudeen A <nia@redhat.com>
qa/tasks/mgr/dashboard/test_rgw.py
src/pybind/mgr/dashboard/services/rgw_client.py
src/pybind/mgr/dashboard/tests/__init__.py
src/pybind/mgr/dashboard/tests/test_rgw.py