Repository navigation
umbrella: librbd: propagate ENOENT for non-existent groups and images - #70743
Conversation
7549b71 to
dd4cf9b
Compare
|
@VinayBhaskar-V It looks like the Conflicts marker for |
Calling `list_images()` on a non-existent group falsely succeeded and returned an empty iterator.This happened because `Group<I>::image_list` ignored the negative error code returned by `group_image_list`, allowing execution to proceed blindly. Furthermore, the C API `rbd_group_image_list` intercepted `-ENOENT` and forced a success (0) return value. Similarly other public C APIs `rbd_snap_list` and `rbd_group_snap_list` also intercepts -ENOENT and forces a success (0) return value which is incorrect. Fix these behavior by: - Propagating errors properly inside `Group<I>::image_list`. - Removing the incorrect `-ENOENT` masking in `rbd_group_image_list`, `rbd_snap_list`, rbd_group_snap_list` Now `list_images()` consistently raise an `ObjectNotFound` error when invoked on a non-existent group and public C APIs propagate ENOENT without masking it into 0. Also Extended the `TestGroups` test fixture with `self.dne_group` to validate the expected error paths across all relevant APIs. Fixes: https://tracker.ceph.com/issues/78108 Signed-off-by: VinayBhaskar-V <[email protected]> (cherry picked from commit c4c937d) Conflicts: PendingReleaseNotes [Removed the context that's not part of the changes and umbrella]
dd4cf9b to
64bac58
Compare
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Commit Parity Visualizer
| BACKPORT PR #70743 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 64bac58 librbd: propagate ENOENT for non-existent groups and images | PR #70086 | c4c937d librbd: propagate ENOENT for non-existent groups and images |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 64bac58 (cherry-pick of c4c937d)
Affected File(s)
PendingReleaseNotes
Range Diff
Click to expand
--- Original (c4c937d8)
+++ Backport (64bac58d)
@@ -23,3 +23,8 @@
Fixes: https://tracker.ceph.com/issues/78108
Signed-off-by: VinayBhaskar-V <[email protected]>
+(cherry picked from commit c4c937d81c228c0f242ad4e8478064bafd4281c0)
+
+Conflicts:
+ PendingReleaseNotes [Removed the context that's not part of the
+changes and umbrella]
================================================================================
RANGE DIFF
================================================================================
1: c4c937d81c2 ! 1: 64bac58d87a librbd: propagate ENOENT for non-existent groups and images
@@ Commit message
Fixes: https://tracker.ceph.com/issues/78108
Signed-off-by: VinayBhaskar-V <[email protected]>
+ (cherry picked from commit c4c937d81c228c0f242ad4e8478064bafd4281c0)
+
+ Conflicts:
+ PendingReleaseNotes [Removed the context that's not part of the
+ changes and umbrella]
## PendingReleaseNotes ##
@@
@@ PendingReleaseNotes
+ error when invoked on a non-existent group. The C APIs `rbd_group_image_list`,
+ `rbd_snap_list`, `rbd_group_snap_list` and C++ API `group_image_list` will now
+ return ENOENT instead of masking the error and returning 0.
- * BlueStore: The experimental PMEM device backend has been removed, together
- with the ``pmem`` value of the ``bdev_type`` option and the DML/DSA offload
- path. The hardware it targeted, Intel Optane DC persistent memory, was
+
+ >=20.0.0
+
## src/librbd/api/Group.cc ##
@@ src/librbd/api/Group.cc: int Group<I>::image_list(librados::IoCtx& group_ioctx,How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
|
✅ Audit Override Applied by @idryomov. |
|
jenkins test windows |
|
This PR has been added to wip-yuri15-testing-20260803.134326-umbrella. |
backport tracker: https://tracker.ceph.com/issues/78917
backport of #70086
parent tracker: https://tracker.ceph.com/issues/78108
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh