{"record":{"id":"344e7b734e018e99","repo":"kubernetes/kops","slug":"error-creating-disk-v","errorCode":null,"errorMessage":"error creating Disk: %v","messagePattern":"error creating Disk: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/disk.go","lineNumber":135,"sourceCode":"\t\t*e.VolumeType)\n\n\tdisk := &compute.Disk{\n\t\tName:   *e.Name,\n\t\tSizeGb: *e.SizeGB,\n\t\tType:   typeURL,\n\t}\n\n\tif e.VolumeIops != nil {\n\t\tdisk.ProvisionedIops = *e.VolumeIops\n\t}\n\tif e.VolumeThroughput != nil {\n\t\tdisk.ProvisionedThroughput = *e.VolumeThroughput\n\t}\n\n\tif a == nil {\n\t\top, err := cloud.Compute().Disks().Insert(t.Cloud.Project(), *e.Zone, disk)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error creating Disk: %v\", err)\n\t\t}\n\t\terr = cloud.WaitForOp(op)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error during Disk creation: %v\", err)\n\t\t}\n\t}\n\n\tif changes.Labels != nil {\n\t\td, err := cloud.Compute().Disks().Get(t.Cloud.Project(), *e.Zone, disk.Name)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"error reading created Disk: %v\", err)\n\t\t}\n\n\t\tlabelsRequest := &compute.ZoneSetLabelsRequest{\n\t\t\tLabelFingerprint: d.LabelFingerprint,\n\t\t\tLabels:           make(map[string]string),\n\t\t}\n\t\t// Danger: labels replace tags on instances; but thankfully volumes don't have tags","sourceCodeStart":117,"sourceCodeEnd":153,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/disk.go#L117-L153","documentation":"Wrapped error from Disk.RenderGCE when the synchronous Disks.Insert call fails for a new disk (a == nil). GCE rejected the create request — typical causes are invalid disk type/size, zone issues, quota, or name conflicts.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/disk.go:135 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the exact rejection reason","Verify the disk type exists in the target zone and size/iops/throughput values are valid for that type","Clear quota or naming conflicts, then re-run the apply"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}