kubernetes/kops · error
getting load balancer: %w
Error message
getting load balancer: %w
What it means
The ARM Get call for a specific load balancer (with frontend IP expansion) failed; fires when the load balancer does not exist, or on authorization/transient ARM errors.
Source
Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:83
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 {
future, err := c.c.BeginDelete(ctx, resourceGroupName, loadBalancerName, nil)
if err != nil {
return fmt.Errorf("deleting load balancer: %w", err)
}
if _, err := future.PollUntilDone(ctx, nil); err != nil {
return fmt.Errorf("waiting for load balancer deletion completion: %w", err)
}
return nil
}
func newLoadBalancersClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*loadBalancersClientImpl, error) {
c, err := network.NewLoadBalancersClient(subscriptionID, cred, nil)
if err != nil {View on GitHub (pinned to 4c8573c808)
Solutions
- Check the wrapped error for NotFound and confirm the load balancer name
- Verify read permissions in the resource group
- Retry after transient failures
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:83 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/6084c94ba6dd4750.
Report an issue: GitHub.