Project

General

Profile

Actions

Bug #72401

closed
PD RD

pybind/cephfs: errno definitions use Linux numbers and not the host system

Bug #72401: pybind/cephfs: errno definitions use Linux numbers and not the host system

Added by Patrick Donnelly over 1 year ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
Due date:
% Done:

0%

Source:
Development
Backport:
tentacle,squid
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Tags (freeform):
Fixed In:
v20.3.0-3435-gf3d5db48a2
Released In:
v21.2.0~1920
Upkeep Timestamp:
2026-10-24T02:06:26+00:00

Description

These definitions:

https://github.com/ceph/ceph/blob/a57b5663e914d67b46b1d767e4b8964e60b94c43/src/pybind/cephfs/cephfs.pyx#L65-L105

need to get the host level error code. Two options I see:

  • Use `errno.ENAME` to get the errno number. If this does not exist on some platform, then we have no useful fallback.
  • Wireup ceph_to_hostos_errno in libcephfs so we can use the same routines Ceph internally uses.

Related issues 2 (0 open — 2 closed)

Copied to CephFS - Backport #73402: tentacle: pybind/cephfs: errno definitions use Linux numbers and not the host systemResolvedRishabh Dave

Actions
Copied to CephFS - Backport #73403: squid: pybind/cephfs: errno definitions use Linux numbers and not the host systemResolvedRishabh Dave

Actions

RD Updated by Rishabh Dave over 1 year ago Actions #1

  • Status changed from New to Fix Under Review
  • Pull request ID set to 65135

RD Updated by Rishabh Dave about 1 year ago Actions #2

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot about 1 year ago Actions #3

  • Merge Commit set to f3d5db48a2b42d2832fb396a65c25f65fc36d08f
  • Fixed In set to v20.3.0-3435-gf3d5db48a2
  • Upkeep Timestamp set to 2025-10-08T03:03:57+00:00

RD Updated by Rishabh Dave about 1 year ago Actions #4

  • Copied to Backport #73402: tentacle: pybind/cephfs: errno definitions use Linux numbers and not the host system added

RD Updated by Rishabh Dave about 1 year ago Actions #5

  • Copied to Backport #73403: squid: pybind/cephfs: errno definitions use Linux numbers and not the host system added

RD Updated by Rishabh Dave about 1 year ago Actions #6

  • Tags (freeform) set to backport_processed

UB Updated by Upkeep Bot 3 months ago Actions #7

  • Status changed from Pending Backport to Backporting
  • Tags (freeform) deleted (backport_processed)
  • Upkeep Timestamp changed from 2025-10-08T03:03:57+00:00 to 2026-08-27T18:13:10+00:00

UB Updated by Upkeep Bot 3 months ago Actions #8

  • Status changed from Backporting to Resolved
  • Upkeep Timestamp changed from 2026-08-27T18:13:10+00:00 to 2026-09-11T01:21:52+00:00

UB Updated by Upkeep Bot about 1 month ago Actions #9

  • Released In set to v21.2.0~1920
  • Upkeep Timestamp changed from 2026-09-11T01:21:52+00:00 to 2026-10-24T02:06:26+00:00
Actions

Also available in: PDF Atom