Project

General

Profile

Actions

Bug #38800

closed

mgr/dashboard: User list does not load

Added by Patrick Seidensal about 5 years ago. Updated about 3 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Component - RGW
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Screenshot_20190513_124254.png (42.9 KB) Screenshot_20190513_124254.png Laura Paduano, 05/13/2019 10:51 AM
Screenshot 2019-05-13 at 11.56.48.png (265 KB) Screenshot 2019-05-13 at 11.56.48.png Mine is different Joao Aguiar, 05/13/2019 10:57 AM
Actions #1

Updated by Patrick Seidensal about 5 years ago

  • Affected Versions v13.2.2 added
Actions #2

Updated by Patrick Seidensal about 5 years ago

  • Category set to 150
  • Source set to Community (user)
Actions #3

Updated by Patrick Seidensal about 5 years ago

  • Affected Versions v13.2.4 added
  • Affected Versions deleted (v13.2.2)
Actions #4

Updated by Lenz Grimmer almost 5 years ago

  • Status changed from New to Need More Info

Is this still reproducable?

Actions #5

Updated by Lenz Grimmer almost 5 years ago

  • Project changed from mgr to rgw
  • Category deleted (150)
Actions #6

Updated by Joao Aguiar almost 5 years ago

Lenz Grimmer wrote:

Is this still reproducable?

Yes the problem still persist in our system.

Actions #7

Updated by Lenz Grimmer almost 5 years ago

  • Project changed from rgw to mgr
  • Category set to 143
Actions #8

Updated by Lenz Grimmer almost 5 years ago

  • Assignee set to Laura Paduano
Actions #10

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?

Actions #11

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?

Actions #12

Updated by Laura Paduano almost 5 years ago

  • Status changed from Need More Info to 12
Actions #13

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.

Actions #14

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.

Actions #15

Updated by Volker Theile almost 5 years ago

The following PR's are submitted in order to fix that issue:
Actions #16

Updated by Laura Paduano almost 5 years ago

  • Pull request ID set to 28210
Actions #17

Updated by Laura Paduano almost 5 years ago

  • Pull request ID deleted (28210)
Actions #18

Updated by Volker Theile almost 5 years ago

  • Status changed from In Progress to Fix Under Review
Actions #19

Updated by Yuri Weinstein almost 5 years ago

Volker Theile wrote:

The following PR's are submitted in order to fix that issue:

merged https://github.com/ceph/ceph/pull/28210

Actions #20

Updated by Volker Theile almost 5 years ago

  • Status changed from Fix Under Review to Resolved
  • Pull request ID set to 28210
Actions #21

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 143 to Component - RGW
Actions

Also available in: Atom PDF