Description of problem: We are not able to set the quota on the directories in FileSystem(FS) We are seeing 500 Internal error warning Same we are able to set using CLI [root@ceph-snap-fail-amk-01m9k1-node7 ka0u5sud4y]# setfattr -n ceph.quota.max_files -v 1000 /mnt/cephfs_kernelta8rz2hnwt/ka0u5sud4y [root@ceph-snap-fail-amk-01m9k1-node7 ka0u5sud4y]# getfattr --only-values -n ceph.quota.max_files /mnt/cephfs_kernelta8rz2hnwt/ka0u5sud4y getfattr: Removing leading '/' from absolute path names 1000[root@ceph-snap-fail-amk-01m9k1-node7 ka0u5sud4y]# Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Please specify the severity of this bug. Severity is defined here: https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.
Hi Ernesto, After enabling the debug mode also I did not see much info on the Dashboard page. As you suspected it is a permission issue. Please find the trace from mgr logs. debug 2022-03-23T09:37:25.958+0000 7f08e5685700 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 "/lib/python3.6/site-packages/cherrypy/_cpdispatch.py", line 54, in __call__ return self.callable(*self.args, **self.kwargs) File "/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py", line 258, in inner ret = func(*args, **kwargs) File "/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py", line 191, in wrapper return func(*vpath, **params) File "/usr/share/ceph/mgr/dashboard/controllers/cephfs.py", line 434, in quota return cfs.set_quotas(path, max_bytes, max_files) File "/usr/share/ceph/mgr/dashboard/services/cephfs.py", line 263, in set_quotas str(max_files).encode(), 0) File "cephfs.pyx", line 1691, in cephfs.LibCephFS.setxattr cephfs.OSError: error in setxattr: Permission denied [Errno 13] debug 2022-03-23T09:37:25.959+0000 7f08e5685700 0 [dashboard ERROR request] [::ffff:10.67.24.10:59786] [PUT] [500] [0.034s] [admin] [1.8K] /api/cephfs/1/quota debug 2022-03-23T09:37:25.959+0000 7f08e5685700 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": "7cee5302-5102-4de7-a489-7e7e644bc7b3", "traceback": "Traceback (most recent call last):\\n File \\"/lib/python3.6/site-packages/cherrypy/_cprequest.py\\", line 638, in respond\\n self._do_respond(path_info)\\n File \\"/lib/python3.6/site-packages/cherrypy/_cprequest.py\\", line 697, in _do_respond\\n response.body = self.handler()\\n File \\"/lib/python3.6/site-packages/cherrypy/lib/encoding.py\\", line 219, in __call__\\n self.body = self.oldhandler(*args, **kwargs)\\n File \\"/lib/python3.6/site-packages/cherrypy/_cptools.py\\", line 230, in wrap\\n return self.newhandler(innerfunc, *args, **kwargs)\\n File \\"/usr/share/ceph/mgr/dashboard/services/exception.py\\", line 55, in dashboard_exception_handler\\n raise error\\n File \\"/usr/share/ceph/mgr/dashboard/services/exception.py\\", line 46, in dashboard_exception_handler\\n return handler(*args, **kwargs)\\n File \\"/lib/python3.6/site-packages/cherrypy/_cpdispatch.py\\", line 54, in __call__\\n return self.callable(*self.args, **self.kwargs)\\n File \\"/usr/share/ceph/mgr/dashboard/controllers/_base_controller.py\\", line 258, in inner\\n ret = func(*args, **kwargs)\\n File \\"/usr/share/ceph/mgr/dashboard/controllers/_rest_controller.py\\", line 191, in wrapper\\n return func(*vpath, **params)\\n File \\"/usr/share/ceph/mgr/dashboard/controllers/cephfs.py\\", line 434, in quota\\n return cfs.set_quotas(path, max_bytes, max_files)\\n File \\"/usr/share/ceph/mgr/dashboard/services/cephfs.py\\", line 263, in set_quotas\\n str(max_files).encode(), 0)\\n File \\"cephfs.pyx\\", line 1691, in cephfs.LibCephFS.setxattr\\ncephfs.OSError: error in setxattr: Permission denied [Errno 13]\\n", "version": "18.4.0"}'] Mount command used to mount the ceph directory: mount -t ceph 10.0.208.235,10.0.211.239,10.0.211.126:/ /mnt/cephfs_kernel4ojdhz1yii/ -o name=ceph-snap-fail-amk-w25dhr-node7,secretfile=/etc/ceph/ceph-snap-fail-amk-w25dhr-node7.secret How can I perform with the above user? or Can we have a proper error that gives the details that the mount has been done by a different user? Regards, Amarnath
Hi Ernesto, Thanks for the trackers. As we already have a tracker Shall I close this bug as a Duplicate? Regards, Amarnath
Sure, Ernesto.
Verified it on Below Version and it all looks fine. We are not seeing 500 internal error 100[root@ceph-amk-up-zgzb90-node7 cephfs_fuse]# getfattr --only-values -n ceph.quota.max_files /mnt/cephfs_fusetojakmgg11/189uibdc92/ getfattr: Removing leading '/' from absolute path names 999[root@ceph-amk-up-zgzb90-node7 cephfs_fuse]# ceph versions { "mon": { "ceph version 17.2.3-42.el9cp (1d92a7a016e5b5e517e4b53a8be4def327a0b9ad) quincy (stable)": 3 }, "mgr": { "ceph version 17.2.3-42.el9cp (1d92a7a016e5b5e517e4b53a8be4def327a0b9ad) quincy (stable)": 2 }, "osd": { "ceph version 17.2.3-42.el9cp (1d92a7a016e5b5e517e4b53a8be4def327a0b9ad) quincy (stable)": 12 }, "mds": { "ceph version 17.2.3-42.el9cp (1d92a7a016e5b5e517e4b53a8be4def327a0b9ad) quincy (stable)": 3 }, "overall": { "ceph version 17.2.3-42.el9cp (1d92a7a016e5b5e517e4b53a8be4def327a0b9ad) quincy (stable)": 20 } } Regards Amarnath
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Red Hat Ceph Storage 6.0 Bug Fix update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:1360