Add disk check logs before csi attach
@@ -52,7 +52,7 @@ func attachDisk(tenantUserUID, diskID, nodeID string, isSharedDisk bool) (string
return "", status.Errorf(codes.Internal, "AttachDisk: find disk: %s with error: %s", diskID, err.Error())
}
if disk == nil {
- return "", status.Errorf(codes.Internal, "AttachDisk: can't find disk: %s, check the disk region, disk exist or not, and the csi access auth", diskID)
+ return "", status.Errorf(codes.Internal, "AttachDisk: csi can't find disk: %s in region: %s, Please check if the cloud disk exists, if the region is correct, or if the csi permissions are correct", diskID, GlobalConfigVar.Region)
}
if !GlobalConfigVar.ADControllerEnable {
