kubernetes/kops · error
LoadBalancers.List returned error: %v
Error message
LoadBalancers.List returned error: %v
What it means
Wraps GetAllLoadBalancers failure in the DO load-balancer renderer, used to check whether a LB with the expected name already exists before creating one. Fires when the DO list call errors, blocking the create-or-adopt decision.
Source
Thrown at upup/pkg/fi/cloudup/dotasks/loadbalancer.go:160
TargetPort: wellknownports.KopsControllerPort,
TlsPassthrough: true,
},
}
HealthCheck := &godo.HealthCheck{
Protocol: "tcp",
Port: 443,
Path: "",
CheckIntervalSeconds: 60,
ResponseTimeoutSeconds: 5,
UnhealthyThreshold: 3,
HealthyThreshold: 5,
}
// check if load balancer exist.
loadBalancers, err := t.Cloud.GetAllLoadBalancers()
if err != nil {
return fmt.Errorf("LoadBalancers.List returned error: %v", err)
}
for _, loadbalancer := range loadBalancers {
klog.V(10).Infof("load balancer retrieved=%s, e.Name=%s", loadbalancer.Name, fi.ValueOf(e.Name))
if strings.Contains(loadbalancer.Name, fi.ValueOf(e.Name)) {
// load balancer already exists.
e.ID = new(loadbalancer.ID)
e.IPAddress = new(loadbalancer.IP) // This will be empty on create, but will be filled later on FindAddresses invokation.
return nil
}
}
// associate vpcuuid to the loadbalancer if set
vpcUUID := ""
if fi.ValueOf(e.NetworkCIDR) != "" {
vpcUUID, err = t.Cloud.GetVPCUUID(fi.ValueOf(e.NetworkCIDR), fi.ValueOf(e.VPCName))
if err != nil {
return fmt.Errorf("Error fetching vpcUUID from network cidr=%s", fi.ValueOf(e.NetworkCIDR))View on GitHub (pinned to 4c8573c808)
Solutions
- Verify the DO API token and connectivity
- Inspect the wrapped error for the DO API reason
- Retry after transient API failures clear
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/dotasks/loadbalancer.go:160 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of kubernetes/kops@4c8573c808 (2026-09-05).
Data as JSON: /api/errors/c3deb24a3fdb4c66.
Report an issue: GitHub.