You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnnil, status.Error(codes.AlreadyExists, fmt.Sprintf("CreateVolume disk already exists with same name and is incompatible: %v", err))
176
176
}
177
177
178
-
ready, err:=isDiskReady(existingDisk)
179
-
iferr!=nil {
180
-
returnnil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume disk %v had error checking ready status: %v", volKey, err))
181
-
}
178
+
// ready, err := isDiskReady(existingDisk)
179
+
// if err != nil {
180
+
// return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume disk %v had error checking ready status: %v", volKey, err))
181
+
// }
182
182
183
-
if!ready {
184
-
returnnil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume existing disk %v is not ready. The existing disk %v has status %v. ", volKey, existingDisk, existingDisk.GetStatus()))
185
-
}
183
+
// if !ready {
184
+
// return nil, status.Error(codes.Internal, fmt.Sprintf("CreateVolume existing disk %v is not ready. The existing disk %v has status %v. ", volKey, existingDisk, existingDisk.GetStatus()))
185
+
// }
186
186
187
187
// If there is no validation error, immediately return success
188
188
klog.V(4).Infof("CreateVolume succeeded for disk %v, it already exists and was compatible", volKey)
@@ -1096,7 +1096,6 @@ func generateCreateVolumeResponse(disk *gce.CloudDisk, zones []string) *csi.Crea
0 commit comments