-
Notifications
You must be signed in to change notification settings - Fork 199
Set error code to indicate timeout in pvCSI #3763
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
base: master
Are you sure you want to change the base?
Conversation
4e8fc16 to
5f3c7d9
Compare
5f3c7d9 to
e86577f
Compare
|
FAILED --- Jenkins Build #661 |
|
/ok-to-test |
|
/lgtm |
|
/test pull-vsphere-csi-driver-verify-golangci-lint |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nikhilbarge, xing-yang The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What this PR does / why we need it:
This PR changes the return code to a non-final error if supervisor PVC is not in bound state within the timeout limit. This allows external-provisioner to continue with retries and eventually deletes the volume when it is finally created.
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #Testing done:
WCP pre-check pipeline: https://jenkins-vcf-csifvt.devops.broadcom.net/job/wcp-instapp-e2e-pre-checkin/661/ (failed but unrelated to my change as I only modified pvCSI)
VKS pre-check pipeline: https://jenkins-vcf-csifvt.devops.broadcom.net/view/instapp/job/vks-instapp-e2e-pre-checkin/615/ (passed)
Manual tests with my fix:
Special notes for your reviewer:
I also submitted a fix in external-provisioner: kubernetes-csi/external-provisioner#1448
With the provisioner fix, the PVC in supervisor will also be deleted after it is finally created from VolumeSnapshot if the VolumeSnapshot itself is also being deleted. VolumeSnapshot will be deleted as well.
Note: The fix in pvCSI is independent of the fix in external-provisioner. Without the provisioner fix, the PVC in supervisor will be deleted after it is finally created from VolumeSnapshot if the VolumeSnapshot itself is not being deleted.
Release note: