]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Drop invalid RGW client instances, improve logging 38583/head
authorVolker Theile <vtheile@suse.com>
Wed, 2 Dec 2020 16:14:45 +0000 (17:14 +0100)
committerVolker Theile <vtheile@suse.com>
Tue, 15 Dec 2020 09:28:30 +0000 (10:28 +0100)
commit5d4cf6fdd75332cbbadb4f3eb61632b302067c50
tree69c9c6ba22394f9e93f1edfe2615b3a886539c1e
parente8cafbfec3ea15f188d5c601d4b8abafcf257faa
mgr/dashboard: Drop invalid RGW client instances, improve logging

* Log RGW settings for easier problem tracking.
* Drop RGW client instances that do not exist anymore. This happens when a RGW service is removed via the orchestrator. The Dashboard tries to access the RGW client using the previous settings which leads to an error which might be confusing. Without dropping the error message 'RGW REST API failed request ...' is displayed instead of the correct one 'No RGW found'. Dropping the RGW client instance will produce correct error messages the next time the backend tries to establish a new connection.

Fixes: https://tracker.ceph.com/issues/48586
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit 495ff0a2cf1713312deba3b61da6d213019fc920)
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/services/rgw_client.py