Bug #54237
closed
pybind/cephfs: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx
Added by Sarthak Gupta about 2 years ago.
Updated over 1 year ago.
Description
opendir() in src/pybind/cephfs/cephfs.pyx returns a generic cephfs.OSError: Errno 13 for this tracker issue https://tracker.ceph.com/issues/51611, which can be to tricky to catch if we want to provide a more verbose error to the user.
Hence adding a mapping for Errno13 (CEPHFS_EACCES) in errno_to_exception and raising a custom Exception like PermissionDenied(OSError) can be useful in exception handling.
- Subject changed from mgr/dashboard: Add mapping for Ernno 13:Permission denied (CEPHFS_EACCES) in errno_to_exception in cephfs.pyx to mgr/dashboard: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx
- Project changed from Dashboard to CephFS
- Subject changed from mgr/dashboard: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx to pybind/cephfs: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx
- Assignee set to Sarthak Gupta
- Target version set to v18.0.0
- Source set to Development
- Backport set to quincy,pacific
- Component(FS) cephfs.pyx added
- Pull request ID set to 45104
- Status changed from New to Fix Under Review
- Status changed from Fix Under Review to Pending Backport
- Copied to Backport #54577: pacific: pybind/cephfs: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx added
- Copied to Backport #54578: quincy: pybind/cephfs: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx added
- Tags set to backport_processed
- Tracker changed from Feature to Bug
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
- Tags deleted (
backport_processed)
- Regression set to No
- Severity set to 3 - minor
Also available in: Atom
PDF