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

Enhance CSI Driver Resize Method to Handle Timeout #18

Open
morningtzh opened this issue Feb 5, 2025 · 0 comments
Open

Enhance CSI Driver Resize Method to Handle Timeout #18

morningtzh opened this issue Feb 5, 2025 · 0 comments

Comments

@morningtzh
Copy link

When the CSI driver invokes the func (resizefs *ResizeFs) Resize(devicePath string, deviceMountPath string) (bool, error) function, it is possible for the execution of the resize2fs command to take longer than the timeout specified for Kubernetes CSI interface calls. This scenario results in the CSI interface returning a failure, even though the resize2fs command is still in progress. Consequently, if Kubernetes attempts to call the CSI interface again, it may inadvertently issue another resize2fs command.

To mitigate this issue, could we implement a "Resize method with timeout handling"? This would allow the CSI driver to proactively return an error during the interface call, rather than allowing Kubernetes to time out and assume the operation has failed.

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

No branches or pull requests

1 participant