{"record":{"id":"2ef72fbaf2f1e7b9","repo":"kubernetes/kops","slug":"error-getting-targetpool-q-v","errorCode":null,"errorMessage":"error getting TargetPool %q: %v","messagePattern":"error getting TargetPool %q: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/poolhealthcheck.go","lineNumber":67,"sourceCode":"\t\t\tdeps = append(deps, task)\n\t\t}\n\t}\n\treturn deps\n}\n\nfunc (e *PoolHealthCheck) CompareWithID() *string {\n\treturn e.Name\n}\n\nfunc (e *PoolHealthCheck) Find(c *fi.CloudupContext) (*PoolHealthCheck, error) {\n\tcloud := c.T.Cloud.(gce.GCECloud)\n\tname := fi.ValueOf(e.Pool.Name)\n\tr, err := cloud.Compute().TargetPools().Get(cloud.Project(), cloud.Region(), name)\n\tif err != nil {\n\t\tif gce.IsNotFound(err) {\n\t\t\treturn nil, nil\n\t\t}\n\t\treturn nil, fmt.Errorf(\"error getting TargetPool %q: %v\", name, err)\n\t}\n\tif slices.Contains(r.HealthChecks, e.Healthcheck.SelfLink) {\n\t\treturn &PoolHealthCheck{\n\t\t\tName:        e.Name,\n\t\t\tHealthcheck: e.Healthcheck,\n\t\t\tPool:        e.Pool,\n\t\t\tLifecycle:   e.Lifecycle,\n\t\t}, nil\n\t}\n\treturn nil, nil\n}\n\nfunc (e *PoolHealthCheck) Run(c *fi.CloudupContext) error {\n\treturn fi.CloudupDefaultDeltaRunMethod(e, c)\n}\n\nfunc (_ *PoolHealthCheck) CheckChanges(a, e, changes *PoolHealthCheck) error {\n\treturn nil","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/poolhealthcheck.go#L49-L85","documentation":"Wrapped error from PoolHealthCheck.Find when the TargetPools.Get call (used to inspect health-check membership) fails with a non-404 error. The target pool name is included; causes include permissions, wrong region, or a transient API failure.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/poolhealthcheck.go:67 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the Google API reason","Confirm the target pool named in the spec exists in the cluster's region","Ensure compute.targetPools.get permission, and retry on transient errors"],"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-12T12:17:11.808Z"}