{"record":{"id":"12066373500518a6","repo":"kubernetes/kops","slug":"error-waiting-for-nlb-q-w","errorCode":null,"errorMessage":"error waiting for NLB %q: %w","messagePattern":"error waiting for NLB %q: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awstasks/network_load_balancer.go","lineNumber":549,"sourceCode":"\n\t\t\tlb := response.LoadBalancers[0]\n\t\t\te.DNSName = lb.DNSName\n\t\t\te.HostedZoneId = lb.CanonicalHostedZoneId\n\t\t\te.VPC = &VPC{ID: lb.VpcId}\n\t\t\tloadBalancerArn = aws.ToString(lb.LoadBalancerArn)\n\t\t\te.loadBalancerArn = loadBalancerArn\n\t\t\te.revision = revision\n\t\t}\n\n\t\tif e.waitForLoadBalancerReady {\n\t\t\tklog.Infof(\"Waiting for load balancer %q to be created...\", loadBalancerName)\n\t\t\trequest := &elbv2.DescribeLoadBalancersInput{\n\t\t\t\tNames: []string{loadBalancerName},\n\t\t\t}\n\n\t\t\terr := elbv2.NewLoadBalancerAvailableWaiter(t.Cloud.ELBV2()).Wait(ctx, request, 15*time.Minute)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"error waiting for NLB %q: %w\", loadBalancerName, err)\n\t\t\t}\n\t\t}\n\n\t} else {\n\t\tloadBalancerArn = a.loadBalancerArn\n\n\t\tif len(changes.IpAddressType) > 0 {\n\t\t\trequest := &elbv2.SetIpAddressTypeInput{\n\t\t\t\tIpAddressType:   e.IpAddressType,\n\t\t\t\tLoadBalancerArn: &loadBalancerArn,\n\t\t\t}\n\t\t\tif _, err := t.Cloud.ELBV2().SetIpAddressType(ctx, request); err != nil {\n\t\t\t\treturn fmt.Errorf(\"error setting the IP addresses type: %v\", err)\n\t\t\t}\n\t\t}\n\n\t\tif changes.SubnetMappings != nil {\n\t\t\tactualSubnets := make(map[string]*string)","sourceCodeStart":531,"sourceCodeEnd":567,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awstasks/network_load_balancer.go#L531-L567","documentation":"The LoadBalancerAvailable waiter did not observe the NLB become active within 15 minutes; creation is unusually slow or stalled (service-linked roles, capacity, misconfigured listeners), and the waiter error is wrapped with %w.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awstasks/network_load_balancer.go:549 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the NLB's provisioning state and events in the AWS console","Re-run `kops update`/apply once the LB is active or after removing the blocker"],"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"}