Skip to content

Conversation

@kishen-v
Copy link
Contributor

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:

Clean up Publish and Unpublish flows

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. labels Nov 12, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kishen-v
Once this PR has been reviewed and has the lgtm label, please assign mkumatag for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 12, 2025
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
}
Copy link
Contributor Author

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.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 14, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants