]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Catch LookupError when checking the RGW status 24028/head
authorVolker Theile <vtheile@suse.com>
Tue, 11 Sep 2018 10:37:28 +0000 (12:37 +0200)
committerVolker Theile <vtheile@suse.com>
Tue, 11 Sep 2018 10:48:55 +0000 (12:48 +0200)
commit0035bb0831ee94293ec236fa8bb818a852ca0081
tree45227266080cbc73f0a048d4550f083868c748a1
parenta0c6b833348b9495ffb5d5141a53d87ba84df7a6
mgr/dashboard: Catch LookupError when checking the RGW status

This exception is thrown by the RGW client function _determine_rgw_addr(). Without catching that exception a 'The server encountered an unexpected condition which prevented it from fulfilling the request.' will be displayed in the UI instead of displaying a notification panel with a hint that the Object Gateway is not running.

Fixes: https://tracker.ceph.com/issues/35921
Signed-off-by: Volker Theile <vtheile@suse.com>
src/pybind/mgr/dashboard/controllers/rgw.py