Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion pkg/csi/service/wcpguest/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,11 @@ func (c *controller) CreateVolume(ctx context.Context, req *csi.CreateVolumeRequ

log.Errorf("Last observed events on the pvc %q/%q in supervisor cluster: %+v",
c.supervisorNamespace, pvc.Name, spew.Sdump(eventList.Items))
return nil, csifault.CSIInternalFault, status.Error(codes.Internal, msg)
// Note: Set the return code to codes.DeadlineExceeded if PVC is still not bound
// to indicate that the volume provisioning has timed out
// so that external-provisioner will keep retrying and won't leave
// orphan volumes behind.
return nil, csifault.CSIInternalFault, status.Error(codes.DeadlineExceeded, msg)
}
attributes := make(map[string]string)
if commonco.ContainerOrchestratorUtility.IsFSSEnabled(ctx, common.FileVolume) && isFileVolumeRequest {
Expand Down
Loading