WIP: Add NodeFreeze/UnfreezeVolumeFilesystem Support #407
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
While it is possible to do filesystem freeze/unfreeze using ExecutionHook when taking a snapshot, it requires elevated privileges on the pod. We are considering adding new NodeFreeze/UnfreezeVolumeFilesystem Node PRCs because node plugin already has those privileges.
Some history about this PR:
This PR was prepared a year ago (need a rebase) and discussed at the sig-storage meetup at KubeCon [1]. We also discussed this at the sig-storage Volume Snapshot WG meeting on 12/17/2018 [2]. It was put on hold after we decided to work on ExecutionHook first [3]. There was discussion in the recent sig-storage meeting to add this support in CSI again [4].
References:
[1] https://docs.google.com/document/d/1Z_jM7LWkeGqO06iaoJB40ZGETgedsG706up_EOSdQko/edit# (meeting notes on snapshot) [2] https://docs.google.com/document/d/1qdfvAj5O-tTAZzqJyz3B-yczLLxOiQd-XKpJmTEMazs/edit# (meeting notes on 12/17/2018)
[3] https://github.com/kubernetes/enhancements/blob/master/keps/sig-storage/20190120-execution-hook-design.md
[4] https://docs.google.com/document/d/1-8KEG8AjAgKznS9NFm3qWqkGyCHmvU6HVl0sk5hwoAE/edit# (meeting notes on 1/2/2020)
Mark it as WIP as we still need to figure out lots of details before proposing it formally. We need to figure out how these calls can be triggered by Kubernetes and how to coordinate between these CSI fsfreeze calls and quiesce calls from ExecutionHook when both are used. We also need to take into consideration the current status and future plans of ExecutionHook.