Bug #51611
closedDirectories Menu Can't Use on Ceph File System Dashboard
0%
Description
After upgrade to 16.2.5 This error is appear. When I use on 16.2.3 this error didn't appear.
2021-07-09T21:13:51.924+0700 7f2b98711700 0 [dashboard ERROR exception] Internal Server Error
Traceback (most recent call last):
File "/usr/share/ceph/mgr/dashboard/services/exception.py", line 46, in dashboard_exception_handler
return handler(*args, **kwargs)
File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 60, in call
return self.callable(*self.args, **self.kwargs)
File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 694, in inner
ret = func(*args, **kwargs)
File "/usr/share/ceph/mgr/dashboard/controllers/__init__.py", line 909, in wrapper
return func(*vpath, **params)
File "/usr/share/ceph/mgr/dashboard/controllers/cephfs.py", line 540, in ls_dir
paths = cfs.ls_dir(path, depth)
File "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 77, in ls_dir
return [self.get_directory(p) for p in paths if p != path.encode()]
File "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 77, in <listcomp>
return [self.get_directory(p) for p in paths if p != path.encode()]
File "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 129, in get_directory
'snapshots': self.ls_snapshots(path),
File "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 201, in ls_snapshots
with self.opendir(path) as d:
File "/usr/lib/python3.6/contextlib.py", line 81, in enter
return next(self.gen)
File "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 57, in opendir
d = self.cfs.opendir(dirpath)
File "cephfs.pyx", line 942, in cephfs.LibCephFS.opendir
cephfs.OSError: opendir failed: Permission denied [Errno 13]
2021-07-09T21:13:51.928+0700 7f2b98711700 0 [dashboard ERROR request] [10.0.80.2:53485] [GET] [500] [0.083s] [admin] [513.0B] /ui-api/cephfs/1/ls_dir
2021-07-09T21:13:51.928+0700 7f2b98711700 0 [dashboard ERROR request] [b'{"status": "500 Internal Server Error", "detail": "The server encountered an unexpected condition which prevented it from fulfilling the request.", "request_id": "d0b14426-eeab-41d1-824a-7ea347207e5d"}
Updated by Ernesto Puerta over 2 years ago
- Status changed from New to Triaged
- Assignee set to Waad Alkhoury
- Target version set to v16.2.6
- Source set to Community (user)
- Backport set to pacific
- Regression changed from No to Yes
Updated by Ernesto Puerta over 2 years ago
User E Taka that reported the same problem in the ceph-users mailing list added steps for reproducing it and resolution:
I found the reason. One of the users set a directory permission without the
+x bit (drw-------). After the command 'chmod 700' everything was OK again.
The MDS log did not help, but with the API call 'ls_dir?path=…' I was able
to iterate to the directory with the wrong permissions.
IMHO this is not an urgent problem , but an user should not be able to
crash the management interface of the admin.
So a solution would be to handle these exceptions in the Dashboard cephfs logic (libcephfs exception) and return a red pop up notification.
Updated by Sarthak Gupta about 2 years ago
- Assignee changed from Waad Alkhoury to Sarthak Gupta
Updated by Ernesto Puerta about 2 years ago
- Status changed from Triaged to In Progress
Updated by Sarthak Gupta about 2 years ago
- Status changed from In Progress to Resolved
Updated by Nizamudeen A about 2 years ago
- Status changed from Resolved to Pending Backport
Hey Sarthak, you need to do the pacific backport too before marking it as Resolved. So if there is any Pending Backport to be done, we change the status to Pending Backport and do the backport. Once it is done we move it to Resolved
Updated by Backport Bot about 2 years ago
- Copied to Backport #54269: pacific: Directories Menu Can't Use on Ceph File System Dashboard added
Updated by Ernesto Puerta about 2 years ago
- Status changed from Pending Backport to Resolved