Bug #38800
closedmgr/dashboard: User list does not load
0%
Description
mgr log:
['{"status": "500 Internal Server Error", "version": "8.9.1", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "traceback": "Traceback (most recent call last): File \\"/usr/lib/python2.7/dist-packages/cherrypy/_cprequest.py\\", line 670, in respond response.body = self.handler() File \\"/usr/lib/python2.7/dist-packages/cherrypy/lib/encoding.py\ \", line 220, in __call__ self.body = self.oldhandler(*args, **kwargs) File \\"/usr/lib/python2.7/dist-packages/cherrypy/_cpdispatch.py\\", line 60, in __call__ return self.callable(*self.args, **self.kwargs) File \\"/usr/lib/ceph/mgr/dashboard/controllers/__init__.py\\", line 169, in wrapper return meth(self, *vpath, **kwargs) File \\"/usr/lib/ceph/mgr/dashboard/controllers/rgw.py\\", line 102, in __c all__ return rgw_client.proxy(method, path, params, data) File \\"/usr/lib/ceph/mgr/dashboard/services/rgw_client.py\\", line 228, in proxy return self._proxy_request(self.admin_path, path, method, params, data) File \\"/usr/lib/ceph/mgr/dashboard/rest_client.py\\", line 506, in func_wrapper **kwargs) File \\"/usr/lib/ceph/mgr/dashboard/services/rgw_client.py\\", line 223, in _proxy_request metho d=method, params=params, data=data, raw_content=True) File \\"/usr/lib/ceph/mgr/dashboard/rest_client.py\\", line 313, in __call__ data, raw_content) File \\"/usr/lib/ceph/mgr/dashboard/rest_client.py\\", line 405, in do_request resp.status_code, resp.text) File \\"/usr/lib/python2.7/logging/__init__.py\\", line 1162, in debug self._log(DEBUG, msg, args, **kwargs) File \\"/usr/lib/python2.7/logging /__init__.py\\", line 1293, in _log self.handle(record) File \\"/usr/lib/python2.7/logging/__init__.py\\", line 1303, in handle self.callHandlers(record) File \\"/usr/lib/python2.7/logging/__init__.py\\", line 1343, in callHandlers hdlr.handle(record) File \\"/usr/lib/python2.7/logging/__init__.py\\", line 766, in handle self.emit(record) File \\"/usr/lib/ceph/mgr/mgr_module.py\\", line 27, i n emit self._module._ceph_log(ceph_level, self.format(record)) UnicodeEncodeError: \'ascii\' codec can\'t encode characters in position 93-94: ordinal not in range(128) "}'] rishabh (~rishabh@***.***.***.***) has quit (Quit: Leaving)
Files
Updated by Patrick Seidensal about 5 years ago
- Category set to 150
- Source set to Community (user)
Updated by Patrick Seidensal about 5 years ago
- Affected Versions v13.2.4 added
- Affected Versions deleted (
v13.2.2)
Updated by Lenz Grimmer almost 5 years ago
- Status changed from New to Need More Info
Is this still reproducable?
Updated by Lenz Grimmer almost 5 years ago
- Project changed from mgr to rgw
- Category deleted (
150)
Updated by Joao Aguiar almost 5 years ago
Lenz Grimmer wrote:
Is this still reproducable?
Yes the problem still persist in our system.
Updated by Lenz Grimmer almost 5 years ago
- Project changed from rgw to mgr
- Category set to 143
Updated by Laura Paduano almost 5 years ago
Updated by Laura Paduano almost 5 years ago
Joao Aguiar wrote:
Lenz Grimmer wrote:
Is this still reproducable?
Yes the problem still persist in our system.
Hi Joao, do you also see the same error like in the screenshot that I've just attached?
Updated by Joao Aguiar almost 5 years ago
Laura Paduano wrote:
Joao Aguiar wrote:
Lenz Grimmer wrote:
Is this still reproducable?
Yes the problem still persist in our system.
Hi Joao, do you also see the same error like in the screenshot that I've just attached?
Updated by Laura Paduano almost 5 years ago
- Status changed from Need More Info to 12
Updated by Volker Theile almost 5 years ago
In my case the problem is that it fails while requesting RGW user infos with the following parameters (the URL looks like this):
'http://192.168.178.2:8000/admin/user?uid=testx%25249876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef'
The backend sees the param 'uid' with the value 'testx%249876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef', but i think it should be 'testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef'.
The following users exist on the system:
[
"test4",
"56789abcdef0123456789abcdef0123456789abcdef0123456789abcdef01234",
"testx$9876543210abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"test3",
"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"admin",
"test",
"test2",
"test5",
"testid",
"test1"
]
The problem IMO is that the UI escapes the arguments but does not unescape them in the backend. I remember that we introduce a auto-feature in the UI to escape URL args. Maybe this is not successfully backported. I think this feature was done by Tiago at that time.
Updated by Volker Theile almost 5 years ago
- Status changed from 12 to In Progress
- Assignee changed from Laura Paduano to Volker Theile
Identified the problem that URL parameters are not unescaped. Second problem is that tenanted users are not processed correct. To fix this parts of
https://tracker.ceph.com/issues/36480
https://github.com/ceph/ceph/pull/24757
must be backported from Nautilus. Additionally
https://tracker.ceph.com/issues/36681
https://github.com/ceph/ceph/pull/24895
must be backported, too.
Updated by Volker Theile almost 5 years ago
- mimic: qa: Fix issues in vstart runner
https://github.com/ceph/ceph/pull/28208 - mimic: rgw: Return tenant field in bucket_stats function
https://github.com/ceph/ceph/pull/28209 - mimic: mgr/dashboard: Fix various RGW issues
https://github.com/ceph/ceph/pull/28210
Updated by Volker Theile almost 5 years ago
- Status changed from In Progress to Fix Under Review
Updated by Yuri Weinstein almost 5 years ago
Volker Theile wrote:
The following PR's are submitted in order to fix that issue:
- mimic: qa: Fix issues in vstart runner
https://github.com/ceph/ceph/pull/28208- mimic: rgw: Return tenant field in bucket_stats function
https://github.com/ceph/ceph/pull/28209- mimic: mgr/dashboard: Fix various RGW issues
https://github.com/ceph/ceph/pull/28210
Updated by Volker Theile almost 5 years ago
- Status changed from Fix Under Review to Resolved
- Pull request ID set to 28210
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 143 to Component - RGW