{"record":{"id":"a724dc6225a71b12","repo":"kubernetes/kops","slug":"waiting-for-load-balancer-s-w-a724dc","errorCode":null,"errorMessage":"waiting for load-balancer %s: %w","messagePattern":"waiting for load-balancer (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go","lineNumber":197,"sourceCode":"\n\t\tklog.Infof(\"Creating new load-balancer with name %q\", fi.ValueOf(expected.Name))\n\n\t\tlbCreated, err := lbService.CreateLB(&lb.ZonedAPICreateLBRequest{\n\t\t\tZone: scw.Zone(fi.ValueOf(expected.Zone)),\n\t\t\tName: fi.ValueOf(expected.Name),\n\t\t\tType: LbDefaultType,\n\t\t\tTags: expected.Tags,\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"creating load-balancer: %w\", err)\n\t\t}\n\n\t\t_, err = lbService.WaitForLb(&lb.ZonedAPIWaitForLBRequest{\n\t\t\tLBID: lbCreated.ID,\n\t\t\tZone: scw.Zone(fi.ValueOf(expected.Zone)),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"waiting for load-balancer %s: %w\", lbCreated.ID, err)\n\t\t}\n\n\t\tlbIPs := []string(nil)\n\t\tfor _, ip := range lbCreated.IP {\n\t\t\tlbIPs = append(lbIPs, ip.IPAddress)\n\t\t}\n\t\texpected.LBID = &lbCreated.ID\n\t\texpected.LBAddresses = lbIPs\n\n\t}\n\n\treturn nil\n}\n\ntype terraformLBIP struct{}\n\ntype terraformLoadBalancer struct {\n\tType        string                   `cty:\"type\"`","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go#L179-L215","documentation":"In the load-balancer task's RenderScw, WaitForLb timed out or errored after CreateLB succeeded. The load-balancer exists but did not reach a ready state, so subsequent configuration (frontends/backends) was skipped; the LB ID identifies it.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go:197 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for timeout details","Inspect the LB state in the Scaleway console","Re-run the apply; the existing LB is picked up as 'actual' and updated"],"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"}