-
Notifications
You must be signed in to change notification settings - Fork 29
[WIP][DNM-2] Clean up Publish and Unpublish calls to speed up operations #1003
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: main
Are you sure you want to change the base?
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kishen-v The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
b33fead to
79f7ef9
Compare
| if err != nil { | ||
| if strings.Contains(strings.ToLower(err.Error()), ErrVolumeNotFound.Error()) { | ||
| klog.Warningf("Volume %s not found, assuming deleted", volumeID) | ||
| return nil | ||
| } | ||
| return err | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the volume not found error is not handled:
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
...
Warning VolumeFailedDelete 58s (x3 over 3m10s) powervs.csi.ibm.com_powervs-csi-controller-9f7dfd45b-4vnps_9219da62-c812-4d8f-9868-c84afca35d70 rpc error: code = Internal desc = Could not delete volume ID "44ccac77-b0ad-4880-a7d1-c8880151d07b": failed to perform Delete Volume Operation for volume 44ccac77-b0ad-4880-a7d1-c8880151d07b with error [DELETE /pcloud/v1/cloud-instances/{cloud_instance_id}/volumes/{volume_id}][404] pcloudCloudinstancesVolumesDeleteNotFound {"description":"volume does not exist. ID: 44ccac77-b0ad-4880-a7d1-c8880151d07b","error":"volume not found"}
With the check, #754 can be mitigated.
d1616db to
71002d5
Compare
71002d5 to
d2a26d7
Compare
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR makes changes around Publish and Unpublish stages which improves the time taken to claim and unclaim volumes.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note: