{"record":{"id":"4956acda1ad62bdb","repo":"kubernetes/kops","slug":"error-listing-disks-v","errorCode":null,"errorMessage":"error listing disks: %v","messagePattern":"error listing disks: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/resources/gce/gce.go","lineNumber":300,"sourceCode":"\treturn resourceTrackers, nil\n}\n\n// findGCEDisks finds all Disks that are associated with the current cluster\n// It matches them by looking for the cluster label\nfunc (d *clusterDiscoveryGCE) findGCEDisks() ([]*compute.Disk, error) {\n\tc := d.gceCloud\n\n\tclusterLabel := gce.LabelForCluster(d.clusterName)\n\n\tvar matches []*compute.Disk\n\n\tctx := context.Background()\n\n\t// TODO: Push down tag filter?\n\n\tdiskLists, err := c.Compute().Disks().AggregatedList(ctx, c.Project())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error listing disks: %v\", err)\n\t}\n\n\tfor _, list := range diskLists {\n\t\tfor _, d := range list.Disks {\n\t\t\tmatch := false\n\t\t\tfor k, v := range d.Labels {\n\t\t\t\tif k == clusterLabel.Key {\n\t\t\t\t\tif v == clusterLabel.Value {\n\t\t\t\t\t\tmatch = true\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmatch = false\n\t\t\t\t\t\tbreak\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif !match {\n\t\t\t\tcontinue","sourceCodeStart":282,"sourceCodeEnd":318,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/pkg/resources/gce/gce.go#L282-L318","documentation":"findGCEDisks wraps the Compute Disks.AggregatedList failure while discovering cluster disks by label across all zones. It fires when the GCE API errors (quota, auth, project misconfiguration), aborting `kops delete cluster` disk discovery for GCE.","triggerScenarios":"Thrown at pkg/resources/gce/gce.go:300 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check GCP credentials and compute.disks.list permission","Retry after transient API or quota errors","Verify the project and zones are accessible"],"exampleFix":null,"handlingStrategy":"retry","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"}