{"record":{"id":"5ca4a7e3fd93c3da","repo":"kubernetes/kops","slug":"error-querying-for-ip-address-v","errorCode":null,"errorMessage":"error querying for IP Address: %v","messagePattern":"error querying for IP Address: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/address.go","lineNumber":143,"sourceCode":"\t\t\tName: new(lastComponent(r.Subnetwork)),\n\t\t}\n\t}\n\n\treturn actual, nil\n}\n\nvar _ fi.HasAddress = (*Address)(nil)\n\n// GetWellKnownServices implements fi.HasAddress::GetWellKnownServices.\n// It indicates which services we support with this address (likely attached to a load balancer).\nfunc (e *Address) GetWellKnownServices() []wellknownservices.WellKnownService {\n\treturn e.WellKnownServices\n}\n\nfunc (e *Address) FindAddresses(context *fi.CloudupContext) ([]string, error) {\n\tactual, err := e.find(context.T.Cloud.(gce.GCECloud))\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"error querying for IP Address: %v\", err)\n\t}\n\tif actual == nil {\n\t\treturn nil, nil\n\t}\n\treturn []string{fi.ValueOf(actual.IPAddress)}, nil\n}\n\nfunc (e *Address) Run(c *fi.CloudupContext) error {\n\treturn fi.CloudupDefaultDeltaRunMethod(e, c)\n}\n\nfunc (_ *Address) CheckChanges(a, e, changes *Address) error {\n\tif a != nil {\n\t\tif changes.Name != nil {\n\t\t\treturn fi.CannotChangeField(\"Name\")\n\t\t}\n\t\tif changes.IPAddress != nil {\n\t\t\treturn fi.CannotChangeField(\"Address\")","sourceCodeStart":125,"sourceCodeEnd":161,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/address.go#L125-L161","documentation":"Wraps the inner find() failure in the GCE Address task's FindAddresses, which resolves the reserved IP for services like the API LB. Fires when the compute addresses lookup errors (permissions, bad name/region, connectivity).","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/gcetasks/address.go:143 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the address exists in the project/region","Check compute.addresses.get permissions","Inspect the wrapped error and retry transient failures"],"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"}