Skip to content

fix: return backup lookup errors when deleting snapshots#3148

Open
immanuwell wants to merge 1 commit into
kubernetes:masterfrom
immanuwell:fix/cinder-backup-lookup-error
Open

fix: return backup lookup errors when deleting snapshots#3148
immanuwell wants to merge 1 commit into
kubernetes:masterfrom
immanuwell:fix/cinder-backup-lookup-error

Conversation

@immanuwell

@immanuwell immanuwell commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Fixes a path where a Cinder backup lookup failure is ignored during DeleteSnapshot.

A non-404 error now reaches the snapshotter, so it retries instead of treating a later snapshot 404 as success.

Repro:

  1. Use a VolumeSnapshotClass with type: backup
  2. Make Cinder return 500 or 503 to GET /backups/<id>
  3. Delete the VolumeSnapshot. Before this, it can report success and leave the backup behind.

Tests: make unit, go test ./tests/sanity/cinder

Release note:

[cinder-csi-plugin] Return Cinder backup lookup failures when deleting a backup-backed VolumeSnapshot so the snapshotter retries deletion.

@kubernetes-prow kubernetes-prow Bot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Jul 16, 2026
@kubernetes-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign zetaab for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow
kubernetes-prow Bot requested review from gouthampacha and kayrus July 16, 2026 06:57
@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 16, 2026
@kubernetes-prow

Copy link
Copy Markdown

Hi @immanuwell. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Tip

We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@kubernetes-prow kubernetes-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 16, 2026
@kayrus

kayrus commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

/ok-to-test

@immanuwell please set a proper release note in the initial PR message

@kubernetes-prow kubernetes-prow Bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 16, 2026
Comment thread pkg/csi/cinder/controllerserver.go
Signed-off-by: immanuwell <pchpr.00@list.ru>
@immanuwell
immanuwell force-pushed the fix/cinder-backup-lookup-error branch from ad98b91 to 3d0b9cc Compare July 17, 2026 08:06
@kubernetes-prow kubernetes-prow Bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 17, 2026
@immanuwell

Copy link
Copy Markdown
Contributor Author

@kayrus addressed your suggestions, PTAL

@immanuwell
immanuwell requested a review from kayrus July 17, 2026 08:07
@kubernetes-prow kubernetes-prow Bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Jul 17, 2026
@kayrus

kayrus commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

/test pull-cloud-provider-openstack-check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants