Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When remove ephemeral csi failed, force remove it. #221

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

VinceCui
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Jul 18, 2023

Codecov Report

Attention: Patch coverage is 42.10526% with 11 lines in your changes missing coverage. Please review.

Project coverage is 32.38%. Comparing base (255e6d8) to head (bcdb134).
Report is 50 commits behind head on main.

Files with missing lines Patch % Lines
pkg/csi/nodeserver.go 20.00% 8 Missing ⚠️
pkg/csi/nodeutils.go 66.66% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #221      +/-   ##
==========================================
+ Coverage   32.10%   32.38%   +0.28%     
==========================================
  Files          41       41              
  Lines        6411     6425      +14     
==========================================
+ Hits         2058     2081      +23     
+ Misses       4064     4054      -10     
- Partials      289      290       +1     
Flag Coverage Δ
unittests 32.38% <42.10%> (+0.28%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -224,13 +225,22 @@ func (ns *nodeServer) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpu
}
}

ephemeralDevice, exist := ns.ephemeralVolumeStore.GetDevice(volumeID)

if err := ns.osTool.CleanupMountPoint(targetPath, ns.k8smounter, true /*extensiveMountPointCheck*/); err != nil {
Copy link
Collaborator

@peter-wangxu peter-wangxu Jul 18, 2023

Choose a reason for hiding this comment

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

What's the case of unmount failure, is the container still running?

@VinceCui VinceCui force-pushed the force-remove-ephemeral-csi-if-fail branch from bc41367 to b3ed397 Compare July 19, 2023 01:47
@VinceCui VinceCui force-pushed the force-remove-ephemeral-csi-if-fail branch from b3ed397 to 74e2ff6 Compare July 28, 2023 05:48
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