From 0035bb0831ee94293ec236fa8bb818a852ca0081 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Tue, 11 Sep 2018 12:37:28 +0200 Subject: [PATCH] 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 --- src/pybind/mgr/dashboard/controllers/rgw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/dashboard/controllers/rgw.py b/src/pybind/mgr/dashboard/controllers/rgw.py index 71097919aed5c..4576b97d81d3a 100644 --- a/src/pybind/mgr/dashboard/controllers/rgw.py +++ b/src/pybind/mgr/dashboard/controllers/rgw.py @@ -38,7 +38,7 @@ class Rgw(BaseController): instance.userid) raise RequestException(status['message']) status['available'] = True - except RequestException: + except (RequestException, LookupError): pass return status -- 2.39.5