kubernetes/kops · error
listing load balancers: %w
Error message
listing load balancers: %w
What it means
Listing load balancers via the ARM pager failed with an error other than ResourceGroupNotFound (already treated as empty). Fires on authorization failures, throttling, or transient ARM errors.
Source
Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:70
}
return &resp.LoadBalancer, nil
}
func (c *loadBalancersClientImpl) List(ctx context.Context, resourceGroupName string) ([]*network.LoadBalancer, error) {
if resourceGroupName == "" {
return nil, nil
}
var l []*network.LoadBalancer
pager := c.c.NewListPager(resourceGroupName, nil)
for pager.More() {
resp, err := pager.NextPage(ctx)
if err != nil {
var respErr *azcore.ResponseError
if errors.As(err, &respErr) && respErr.ErrorCode == "ResourceGroupNotFound" {
return nil, nil
}
return nil, fmt.Errorf("listing load balancers: %w", err)
}
l = append(l, resp.Value...)
}
return l, nil
}
func (c *loadBalancersClientImpl) Get(ctx context.Context, resourceGroupName string, loadBalancerName string) (*network.LoadBalancer, error) {
opts := &network.LoadBalancersClientGetOptions{
Expand: to.Ptr("frontendIpConfigurations/publicIpAddress"),
}
resp, err := c.c.Get(ctx, resourceGroupName, loadBalancerName, opts)
if err != nil {
return nil, fmt.Errorf("getting load balancer: %w", err)
}
return &resp.LoadBalancer, nil
}
func (c *loadBalancersClientImpl) Delete(ctx context.Context, resourceGroupName, loadBalancerName string) error {View on GitHub (pinned to 4c8573c808)
Solutions
- Verify list permissions on the resource group
- Retry after transient ARM/throttling errors
- Check the wrapped ResponseError code
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:70 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/c47769abe5e9359c.
Report an issue: GitHub.