Skip to content

Skip VolumeAttachments of other drivers#682

Merged
k8s-ci-robot merged 1 commit intokubernetes-csi:masterfrom
jsafrane:skip-unknown-vas
Sep 23, 2025
Merged

Skip VolumeAttachments of other drivers#682
k8s-ci-robot merged 1 commit intokubernetes-csi:masterfrom
jsafrane:skip-unknown-vas

Conversation

@jsafrane
Copy link
Copy Markdown
Contributor

@jsafrane jsafrane commented Sep 23, 2025

What type of PR is this?
/kind bug

What this PR does / why we need it:
During periodic re-sync in ReconcileVA, skip VolumeAttachments of unrelated CSI drivers. These unrelated VolumeAttachments would be skipped anyway in syncVA().

This only prevents log spam and saves some CPU.

Which issue(s) this PR fixes:

Fixes #681

Does this PR introduce a user-facing change?:

Fixed log spam "VolumeAttachment attached status and actual state do not match. Adding back to VolumeAttachment queue for forced reprocessing" for VolumeAttachments of unrelated CSI drivers.

During periodic re-sync in ReconcileVA, skip VolumeAttachments of
unrelated CSI drivers. The VolumeAttachments will be skipped anyway in
syncVA().

This only prevents log spam and saves some CPU.
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 23, 2025
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jsafrane

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

The pull request process is described 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

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Sep 23, 2025
// skip VolumeAttachments of other CSI drivers
continue
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

tut tut - tests.:-)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I tried! But the test framework runs ReconcileVA() in a loop and it's hard to check just the first ReconcileVA result :-(

@gnufied
Copy link
Copy Markdown
Contributor

gnufied commented Sep 23, 2025

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 23, 2025
@k8s-ci-robot k8s-ci-robot merged commit 3a057e7 into kubernetes-csi:master Sep 23, 2025
6 checks passed
@openshift-merge-robot
Copy link
Copy Markdown

Fix included in accepted release 4.21.0-0.nightly-2025-10-02-002727

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

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Periodic VolumeAttachment resyncs VolumeAttachments of all CSI drivers

4 participants