Skip to content

NodeGetVolumeStats host IP check fix for NFS#541

Merged
santhoshatdell merged 4 commits into
mainfrom
nodegetvolumestats-nfs-fix
Aug 20, 2025
Merged

NodeGetVolumeStats host IP check fix for NFS#541
santhoshatdell merged 4 commits into
mainfrom
nodegetvolumestats-nfs-fix

Conversation

@santhoshatdell

Copy link
Copy Markdown
Contributor

Description

Fixed an incorrect node to host IP check in NodeGetVolumeStats() call for NFS based PVs.

GitHub Issues

List the GitHub issues impacted by this PR:

GitHub Issue #
https://github.com/dell/csm/issues/1998

Checklist:

  • I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
  • I have verified that new and existing unit tests pass locally with my changes
  • I have not allowed coverage numbers to degenerate
  • I have maintained at least 90% code coverage
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • Backward compatibility is not broken

How Has This Been Tested?

  • Verified that NodeGetVolumeStats now returns response for the NFS PV which was failing earlier.
    Logs added to internal ticket.

  • Ran Volume Health Metrics test in cert-csi, but it does not pass since it is looking for both ControllerGetVolume and NodeGetVolumeStats. As per this doc, driver supporting both ControllerGetVolume and ListVolumes calls, ListVolumes will be called.

Comment thread pkg/node/node.go
Comment thread pkg/node/node.go Outdated
@github-actions

Copy link
Copy Markdown
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csi-powerstore/pkg/node 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csi-powerstore/pkg/node/node.go 0.00% (ø) 0 0 0

Please note that the "Total", "Covered", and "Missed" counts above refer to code statements instead of lines of code. The value in brackets refers to the test coverage of that file in the old version of the code.

Changed unit test files

  • github.com/dell/csi-powerstore/pkg/node/node_test.go

@santhoshatdell

Copy link
Copy Markdown
Contributor Author

CSI Spec compliance tests for NodeGetVolumeStats (NFS) has passed.

Ran 4 of 78 Specs in 15.651 seconds
SUCCESS! -- 4 Passed | 0 Failed | 1 Pending | 73 Skipped

@santhoshatdell santhoshatdell merged commit d79239a into main Aug 20, 2025
6 checks passed
@santhoshatdell santhoshatdell deleted the nodegetvolumestats-nfs-fix branch August 20, 2025 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants