Skip to content

umbrella: crimson/osd: fix PGBackend::remove() to return ENOENT on no-op deletes - #69539

Merged
batrick merged 1 commit into
ceph:umbrellafrom
ronen-fr:wip-rf-69415-umbrella
Aug 5, 2026
Merged

batrick merged 1 commit into
ceph:umbrellafrom
ronen-fr:wip-rf-69415-umbrella

Conversation

@ronen-fr

Copy link
Copy Markdown
Contributor

PGBackend::remove() was returning success when asked to delete a non-existent object or an already-whiteout object that must remain a whiteout. The classic OSD returns -ENOENT in both cases. Fix both paths to return enoent, and remove the duplicate !os.exists check.

Fixes: https://tracker.ceph.com/issues/77409
Original tracker: https://tracker.ceph.com/issues/76529
Backport of: #69415
(cherry picked from commit cae12ec)

@ronen-fr
ronen-fr requested a review from a team as a code owner June 17, 2026 10:09
@github-actions github-actions Bot added this to the umbrella milestone Jun 17, 2026
@github-actions github-actions Bot added the releng-audit-pass Release engineering: passed backport verification audit. label Jun 17, 2026
@ronen-fr ronen-fr added the backport umbrella This is a backport targeting Umbrella. label Jun 17, 2026
@Matan-B Matan-B added this to Crimson Jun 22, 2026
@Matan-B Matan-B moved this to Umbrella Backports in Crimson Jun 22, 2026
@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test windows

@ronen-fr

Copy link
Copy Markdown
Contributor Author

jenkins test make check

PGBackend::remove() was returning success when asked to delete a
non-existent object or an already-whiteout object that must remain
a whiteout. The classic OSD returns -ENOENT in both cases. Fix both
paths to return enoent, and remove the duplicate !os.exists check.

Fixes: https://tracker.ceph.com/issues/76529
Signed-off-by: Ronen Friedman <[email protected]>
(cherry picked from commit cae12ec)
@ronen-fr
ronen-fr force-pushed the wip-rf-69415-umbrella branch from b4a760c to 9b09df2 Compare July 15, 2026 16:31
@github-actions github-actions Bot added releng-audit-pass Release engineering: passed backport verification audit. and removed releng-audit-pass Release engineering: passed backport verification audit. labels Jul 15, 2026
@yuriw

yuriw commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

This PR has been added to wip-yuri-testing-20260724.161317-umbrella.

@batrick batrick modified the milestones: umbrella, v21.1.1 Jul 30, 2026
@lee-j-sanders

Copy link
Copy Markdown
Member

@batrick
batrick merged commit 9715bde into ceph:umbrella Aug 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport umbrella This is a backport targeting Umbrella. bug-fix crimson needs-crimson-qa needs-qa releng-audit-pass Release engineering: passed backport verification audit. wip-yuri-testing

Projects

Status: Umbrella Backports

Development

Successfully merging this pull request may close these issues.

5 participants