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"}
EP Updated by Ernesto Puerta over 5 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
LD Updated by Loïc Dachary over 5 years ago
- Target version deleted (
v16.2.6)
EP Updated by Ernesto Puerta almost 5 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.
SG Updated by Sarthak Gupta almost 5 years ago
- Assignee changed from Waad Alkhoury to Sarthak Gupta
EP Updated by Ernesto Puerta almost 5 years ago
- Pull request ID set to 44849
EP Updated by Ernesto Puerta almost 5 years ago
- Status changed from Triaged to In Progress
SG Updated by Sarthak Gupta almost 5 years ago
- Status changed from In Progress to Resolved
NA Updated by Nizamudeen A almost 5 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
UB Updated by Upkeep Bot almost 5 years ago
- Copied to Backport #54269: pacific: Directories Menu Can't Use on Ceph File System Dashboard added
EP Updated by Ernesto Puerta almost 5 years ago
- Status changed from Pending Backport to Resolved
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to db3eb10fa1c384326ef208a5c0b05f3e456a25e6
- Fixed In set to v17.0.0-10666-gdb3eb10fa1
- Released In set to v18.2.0~2710
- Upkeep Timestamp set to 2025-07-14T17:45:28+00:00