]> git-server-git.apps.pok.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>
Tue, 25 Jun 2024 08:45:49 +0000 (14:15 +0530)
commit4dfeee6006b4a3575ea70e435e787bd41d2a0ead
tree1d5683eea444699d7e62302c9fe6f06e5c0e62cc
parentb449c09126347393447d9182f5b4b29a5c5a1d8b
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>
(cherry picked from commit 013d0826c12e4bfc9dc2b8984b1605694ac7d2ea)
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