{"record":{"id":"e48a0c8632a4e5f8","repo":"kubernetes/kops","slug":"creating-load-balancer-w","errorCode":null,"errorMessage":"creating load-balancer: %w","messagePattern":"creating load-balancer: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go","lineNumber":189,"sourceCode":"\t\t\t\treturn fmt.Errorf(\"updatings tags for load-balancer %q: %w\", fi.ValueOf(expected.Name), err)\n\t\t\t}\n\t\t}\n\n\t\texpected.LBID = actual.LBID\n\t\texpected.LBAddresses = actual.LBAddresses\n\n\t} else {\n\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}","sourceCodeStart":171,"sourceCodeEnd":207,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go#L171-L207","documentation":"In the load-balancer task's RenderScw, lbService.CreateLB failed while provisioning a new API load-balancer with the default type. Nothing was created; the wrapped error is the SDK response — quota, invalid zone, permissions, or name conflict.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scalewaytasks/loadbalancer.go:189 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error (LB quota limits are common)","Verify the zone supports load-balancers","Free quota or adjust limits, then retry the apply"],"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"}