Skip to content

Conversation

@anathoodell
Copy link
Contributor

@anathoodell anathoodell commented Apr 14, 2025

Description

Adjust the driver node behaviour to remove extra mount points that materialize on a driver restart.

GitHub Issues

List the GitHub issues impacted by this PR:

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

Checklist:

  • Have you run format,vet & lint checks against your submission?
  • Have you made sure that the code compiles?
  • Did you run the unit tests successfully?
  • Have you maintained at least 90% code coverage?
  • Have you commented your code, particularly in hard-to-understand areas
  • Have you done corresponding changes to the documentation
  • Did you run tests in a real Kubernetes cluster?
  • Backward compatibility is not broken

How Has This Been Tested?

  • K8S cluster testing
  • Operator E2E on K8S
    op e2e ran, results tracked internally

@github-actions
Copy link
Contributor

Merging this branch will not change overall coverage

Impacted Packages Coverage Δ 🤖
github.com/dell/csi-powermax/service 0.00% (ø)

Coverage by file

Changed files (no unit tests)

Changed File Coverage Δ Total Covered Missed 🤖
github.com/dell/csi-powermax/service/mount.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-powermax/service/step_defs_test.go

@anathoodell anathoodell marked this pull request as ready for review April 15, 2025 12:39
Comment on lines +512 to 517
for _, t := range tgtMnt {
log.WithFields(f).Debugf("Unmounting %s", t)
if err := gofsutil.Unmount(ctx, t); err != nil {
return lastUnmounted, status.Errorf(codes.Internal,
"Error unmounting target: %s", err.Error())
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the correct behavior when an error is encountered. If there are other mounts that need to be unmounted then what will the state of the node be?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In this change we're looking for /noderoot prefixed mounts, not errors, so only these additional mounts are unmounted. So far on driver restart we've seen dupMounts with "/noderoot" prefix as on line 473.

@anathoodell anathoodell merged commit 66730dd into main Apr 15, 2025
6 checks passed
@anathoodell anathoodell deleted the usr/babija/restart-mount-fix branch April 15, 2025 14:51
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.

5 participants