-
Notifications
You must be signed in to change notification settings - Fork 188
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
Delay PublishVolumeRequest until OFFLINE-resizable Volume is resized #207
Comments
Here is the hack:
|
I think this should be solved on the driver level. Kubernetes is a dynamic system and does not offer any mechanism to "lock" objects on controller level and clean up the locks when a controller dies / restarts. |
Oh, but there are examples of locking throughout the Kubernetes. Leases (and Endpoints previously) that are used for leader election is a good example. |
Leader election works per controller (i.e. one object per cluster). You want to have a lock per PV. That's completely different scale. We tried to add annotation with a lock to PVCs to be able to run multiple provisioners in parallel, but adding/removing/checking the annotation on every PVC basically overloaded API server. |
Okay, I see, thanks for the references. Let's approach the issue from another direction. Has there been a successful CSI |
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. |
If a plugin has a
VolumeExpansion.OFFLINE
, then a resize process should happen afterControllerUnpublishVolume
and beforeControllerPublishVolume
.Currently, this is not the case, and if I am to delete Pod, then external-resizer and external-attacher would race each other. If external-resizer wins and calls
ControllerPublishVolume
before a resize operation is finished, then we have to delete a Pod again. Which is incredibly frustrating.I've hacked together a hacky "solution". But I think that OFFLINE resize should work properly on the CSI side, not on the plugin side.
I propose not Publishing a Volume to a Node if a PVC is currently resizing.
The text was updated successfully, but these errors were encountered: