Skip to content

umbrella: librbd: propagate ENOENT for non-existent groups and images - #70743

Merged
batrick merged 1 commit into
ceph:umbrellafrom
VinayBhaskar-V:wip-78917-umbrella
Aug 4, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
VinayBhaskar-V:wip-78917-umbrella

Conversation

@VinayBhaskar-V

Copy link
Copy Markdown
Contributor

@VinayBhaskar-V
VinayBhaskar-V requested a review from a team as a code owner July 31, 2026 09:34
@VinayBhaskar-V VinayBhaskar-V added this to the umbrella milestone Jul 31, 2026
@github-actions github-actions Bot added documentation tests releng-audit-pass Release engineering: passed backport verification audit. labels Jul 31, 2026
@github-actions github-actions Bot removed the releng-audit-pass Release engineering: passed backport verification audit. label Jul 31, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 31, 2026
@idryomov

Copy link
Copy Markdown
Contributor

@VinayBhaskar-V It looks like the Conflicts marker for PendingReleaseNotes didn't get preserved in the commit message. Please add it, see d34955a for an example.

@idryomov idryomov modified the milestones: umbrella, v21.1.1 Jul 31, 2026
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]
@VinayBhaskar-V VinayBhaskar-V removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 31, 2026
github-actions[bot]

This comment was marked as outdated.

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 31, 2026
@VinayBhaskar-V VinayBhaskar-V removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 31, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

⚠️ WARNING: Cherry-pick conflicts or deviations were found that require component lead review.

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)

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.


⚠️ Note: Automated audit checks will be suspended on future pushes to prevent comment spam while you work.

When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.

View workflow run

@github-actions github-actions Bot added the releng-audit-fail Release engineering: failed backport verification audit. label Jul 31, 2026
@github-actions github-actions Bot removed the releng-audit-fail Release engineering: failed backport verification audit. label Jul 31, 2026
@github-actions

Copy link
Copy Markdown

✅ Audit Override Applied by @idryomov.

View workflow run

@idryomov

Copy link
Copy Markdown
Contributor

jenkins test windows

@yuriw

yuriw commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri15-testing-20260803.134326-umbrella.

@batrick
batrick merged commit 88de570 into ceph:umbrella Aug 4, 2026
13 of 15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants