{"record":{"id":"69a558ec16d57a9d","repo":"kubernetes/kops","slug":"load-balancer-not-ready-no-arn","errorCode":null,"errorMessage":"load balancer not ready (no ARN)","messagePattern":"load balancer not ready \\(no ARN\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/targetgroup.go","lineNumber":145,"sourceCode":"\t\t\tn, err := strconv.Atoi(revisionTag)\n\t\t\tif err != nil {\n\t\t\t\tklog.Warningf(\"ignoring target group %q with revision %d\", targetGroup.ARN, revision)\n\t\t\t\tcontinue\n\t\t\t}\n\t\t\trevision = n\n\t\t}\n\n\t\tif latest == nil || revision > latestRevision {\n\t\t\tlatestRevision = revision\n\t\t\tlatest = targetGroup\n\t\t}\n\t}\n\n\tif latest != nil && e.networkLoadBalancer != nil {\n\t\tmatchRevision := e.networkLoadBalancer.revision\n\t\tarn := e.networkLoadBalancer.loadBalancerArn\n\t\tif arn == \"\" {\n\t\t\treturn nil, fmt.Errorf(\"load balancer not ready (no ARN)\")\n\t\t}\n\t\trevisionTag, _ := latest.GetTag(awsup.KopsResourceRevisionTag)\n\n\t\tif revisionTag != matchRevision {\n\t\t\tklog.Warningf(\"found target group but revision %q does not match load balancer revision %q; will create a new target group\", revisionTag, matchRevision)\n\t\t\tlatest = nil\n\t\t}\n\t}\n\n\t// Record deletions for later\n\tfor _, targetGroup := range targetGroups {\n\t\tif aws.ToString(targetGroup.TargetGroup.TargetGroupName) != name && targetGroup.NameTag() != name {\n\t\t\tcontinue\n\t\t}\n\t\tif latest != nil && latest.ARN == targetGroup.ARN {\n\t\t\tcontinue\n\t\t}\n","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/targetgroup.go#L127-L163","documentation":"TargetGroup.Find found a matching target group but the in-memory NLB task has an empty loadBalancerArn — the network load balancer has not yet been created/registered in this run, so the target group cannot be compared or linked yet.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/targetgroup.go:145 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `kops update cluster` so the NLB is created before target groups are reconciled","Re-run the apply; task ordering usually resolves the ARN in the next pass"],"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"}