]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Drop invalid RGW client instances, improve logging
authorVolker Theile <vtheile@suse.com>
Wed, 2 Dec 2020 16:14:45 +0000 (17:14 +0100)
committerVolker Theile <vtheile@suse.com>
Mon, 14 Dec 2020 11:57:14 +0000 (12:57 +0100)
commit495ff0a2cf1713312deba3b61da6d213019fc920
tree2bdd51159b77e0b2967b63ef4a7924fb14f85006
parent851d10ed3516a88586515913d95df514d065e53d
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>
src/pybind/mgr/dashboard/controllers/rgw.py
src/pybind/mgr/dashboard/services/rgw_client.py