{"record":{"id":"5f864ffdd87e038e","repo":"kubernetes/kops","slug":"finding-load-balancers-w","errorCode":null,"errorMessage":"finding load-balancers: %w","messagePattern":"finding load-balancers: %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/scaleway/cloud.go","lineNumber":325,"sourceCode":"\treturn nil, nil\n}\n\n// FindVPCInfo is not implemented yet, it's only here to satisfy the fi.Cloud interface\nfunc (s *scwCloudImplementation) FindVPCInfo(id string) (*fi.VPCInfo, error) {\n\tklog.V(8).Info(\"Scaleway clusters don't have a VPC yet so FindVPCInfo is not implemented\")\n\treturn nil, fmt.Errorf(\"FindVPCInfo is not implemented yet for Scaleway\")\n}\n\nfunc (s *scwCloudImplementation) GetApiIngressStatus(cluster *kops.Cluster) ([]fi.ApiIngressStatus, error) {\n\tvar ingresses []fi.ApiIngressStatus\n\tname := \"api.\" + cluster.Name\n\n\tresponseLoadBalancers, err := s.lbAPI.ListLBs(&lb.ZonedAPIListLBsRequest{\n\t\tZone: s.zone,\n\t\tName: &name,\n\t}, scw.WithAllPages())\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"finding load-balancers: %w\", err)\n\t}\n\tif len(responseLoadBalancers.LBs) == 0 {\n\t\tklog.V(8).Infof(\"Could not find any load-balancers for cluster %s\", cluster.Name)\n\t\treturn nil, nil\n\t}\n\tif len(responseLoadBalancers.LBs) > 1 {\n\t\tklog.V(4).Infof(\"More than 1 load-balancer with the name %s was found\", name)\n\t}\n\n\tfor _, loadBalancer := range responseLoadBalancers.LBs {\n\t\tfor _, lbIP := range loadBalancer.IP {\n\t\t\tingresses = append(ingresses, fi.ApiIngressStatus{IP: lbIP.IPAddress})\n\t\t}\n\t}\n\n\treturn ingresses, nil\n}\n","sourceCodeStart":307,"sourceCodeEnd":343,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/scaleway/cloud.go#L307-L343","documentation":"Listing Scaleway load balancers (to determine API ingress status) failed at the API level. The wrapped error identifies the failure; typically credential, project/region misconfiguration, or an API connectivity problem.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/scaleway/cloud.go:325 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the wrapped Scaleway error","Verify the Scaleway credentials, project ID and zone in the cloud config","Retry once API access is restored"],"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"}