-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
hostPath volumes used with subPath volume mounts don't support reconstruction #61446
Comments
Noticed this issue while working on #61373 |
How is this different than #61372? |
#61372 affects reconstruction for PVCs |
* Use of subPath module with hostPath volumes can cause issues during reconstruction ([#61446](kubernetes/kubernetes#61446)) and with containerized kubelets ([#61456](kubernetes/kubernetes#61456)). The workaround for this issue is to specify the complete path in the hostPath volume.
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
/remove-lifecycle stale We intend to address this by redesigning the volume reconstruction feature to use kubelet checkpointing. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
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/test-infra repository. |
/reopen |
@msau42: Reopened this issue. In response to this:
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/test-infra repository. |
Better practice:
|
These tests were previously disabled to work around kubernetes#61446 and kubernetes#79980 kubernetes@f1e1f3a
/assign |
The in-tree hostPath driver makes no attempt to unmount: kubernetes/pkg/volume/hostpath/host_path.go Lines 266 to 274 in 6c96ac0
Once that is fixed, these skips need to be removed: kubernetes/test/e2e/storage/testsuites/subpath.go Lines 347 to 350 in 6c96ac0
kubernetes/test/e2e/storage/testsuites/subpath.go Lines 359 to 362 in 6c96ac0
|
So it's not really the TearDown code I quoted above, the subpaths would normally be cleaned up here: kubernetes/pkg/volume/util/operationexecutor/operation_generator.go Lines 825 to 830 in 2e55595
But we never make any attempt to call UnmountVolume in this scenario. kubernetes/pkg/kubelet/volumemanager/reconciler/reconciler.go Lines 185 to 187 in 2e55595
For future reference it can be reproduced manually with:
|
Is this a BUG REPORT or FEATURE REQUEST?:
@kubernetes/sig-storage-bugs
What happened:
Normally this isn't a problem, but if you use subpath with hostpath volumes, then that means the subpath mounts will not get cleaned up during the reconstruction window (a pod is force deleted while kubelet is down)
The text was updated successfully, but these errors were encountered: