Actions
Bug #54237
closed
SG
SG
pybind/cephfs: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx
Bug #54237:
pybind/cephfs: Add mapping for Ernno 13:Permission Denied and adding path (in msg) while raising exception from opendir() in cephfs.pyx
Due date:
% Done:
100%
Source:
Development
Backport:
quincy,pacific
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
cephfs.pyx
Labels (FS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
v17.0.0-11110-gcac29ca70a7
Released In:
v18.2.0~2558
Upkeep Timestamp:
2025-07-14T08:46:20+00:00
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.
SG Updated by Sarthak Gupta almost 5 years ago
- 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
PD Updated by Patrick Donnelly almost 5 years ago
- 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
EP Updated by Ernesto Puerta over 4 years ago
- Pull request ID set to 45104
EP Updated by Ernesto Puerta over 4 years ago
- Status changed from New to Fix Under Review
VS Updated by Venky Shankar over 4 years ago
- Status changed from Fix Under Review to Pending Backport
UB Updated by Upkeep Bot over 4 years ago
- 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
UB Updated by Upkeep Bot over 4 years ago
- 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
KS Updated by Konstantin Shalygin about 4 years ago
- Tracker changed from Feature to Bug
- Status changed from Pending Backport to Resolved
- % Done changed from 0 to 100
- Regression set to No
- Severity set to 3 - minor
UB Updated by Upkeep Bot over 1 year ago
- Merge Commit set to cac29ca70a76ddf7a04ee12aaf7ed2012cd12f22
- Fixed In set to v17.0.0-11110-gcac29ca70a7
- Released In set to v18.2.0~2558
- Upkeep Timestamp set to 2025-07-14T08:46:20+00:00
Actions