{"record":{"id":"da2ef3f163a7975a","repo":"kubernetes/kops","slug":"address-q-was-not-found","errorCode":null,"errorMessage":"Address %q was not found","messagePattern":"Address %q was not found","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/gcetasks/forwardingrule.go","lineNumber":193,"sourceCode":"\t\to.Target = e.TargetPool.URL(t.Cloud)\n\t}\n\n\tif e.BackendService != nil {\n\t\tif o.Target != \"\" {\n\t\t\treturn fmt.Errorf(\"cannot specify both %q and %q for forwarding rule target.\", o.Target, e.BackendService)\n\t\t}\n\t\to.BackendService = e.BackendService.URL(t.Cloud)\n\t}\n\n\tif e.IPAddress != nil {\n\t\to.IPAddress = fi.ValueOf(e.IPAddress.IPAddress)\n\t\tif o.IPAddress == \"\" {\n\t\t\taddr, err := e.IPAddress.find(t.Cloud)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"error finding Address %q: %v\", e.IPAddress, err)\n\t\t\t}\n\t\t\tif addr == nil {\n\t\t\t\treturn fmt.Errorf(\"Address %q was not found\", e.IPAddress)\n\t\t\t}\n\n\t\t\to.IPAddress = fi.ValueOf(addr.IPAddress)\n\t\t\tif o.IPAddress == \"\" {\n\t\t\t\treturn fmt.Errorf(\"Address had no IP: %v\", e.IPAddress)\n\t\t\t}\n\t\t}\n\t}\n\tif o.IPAddress != \"\" && e.RuleIPAddress != nil {\n\t\treturn fmt.Errorf(\"Specified both IP Address and rule-managed IP address: %v, %v\", e.IPAddress, *e.RuleIPAddress)\n\t}\n\tif e.RuleIPAddress != nil {\n\t\to.IPAddress = *e.RuleIPAddress\n\t}\n\n\tif e.Network != nil {\n\t\tproject := t.Cloud.Project()\n\t\tif e.Network.Project != nil {","sourceCodeStart":175,"sourceCodeEnd":211,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/gcetasks/forwardingrule.go#L175-L211","documentation":"After a successful find() call, if it returns nil (address not present in GCE), RenderGCE aborts with 'Address %q was not found'. The forwarding rule cannot be rendered because its IP cannot be resolved; kOps refuses to silently allocate an unspecified IP.","triggerScenarios":"Spec references an Address task with an empty IPAddress, and find() returns nil because no Address with that name exists in the project/region at apply time.","commonSituations":"Address was deleted from GCE console or by another IaC tool; wrong region configured; address created after this apply was expected to run; name mismatch between spec and GCE.","solutions":["Create the static Address in GCE (gcloud compute addresses create ...) in the correct region, then re-apply.","Correct the address name in the cluster spec to match the existing GCE Address.","Provide an explicit IP address in the spec's IPAddress field instead of a name reference.","Verify region/project configuration matches where the address was reserved."],"exampleFix":"// before\nipAddress: { name: \"old-lb-ip\" }\n// after\nipAddress: { name: \"lb-ip\", ipAddress: \"34.10.20.30\" }","handlingStrategy":"validation","validationCode":"// before applying, assert the address exists and has an IP:\n// test -n \"$(gcloud compute addresses describe ADDR --region=R --format='value(address)')\" || \\\n//   gcloud compute addresses create ADDR --region=R","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Reserve static addresses with gcloud/kops before referencing them in specs.","Treat address resources as managed solely by kops to avoid out-of-band deletion.","Include address existence checks in pre-apply CI."],"tags":["gce","load-balancer","address","not-found"],"backgroundTag":"address-not-found","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"}