kubernetes/kops · error

waiting for load balancer create/update: %w

Error message

waiting for load balancer create/update: %w

What it means

PollUntilDone failed while waiting for the load balancer CreateOrUpdate LRO; ARM accepted the request but provisioning ended in failure (often subnet/IP reference or lock conflicts).

Source

Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:51

	List(ctx context.Context, resourceGroupName string) ([]*network.LoadBalancer, error)
	Get(ctx context.Context, resourceGroupName string, loadBalancerName string) (*network.LoadBalancer, error)
	Delete(ctx context.Context, resourceGroupName, loadBalancerName string) error
}

type loadBalancersClientImpl struct {
	c *network.LoadBalancersClient
}

var _ LoadBalancersClient = (*loadBalancersClientImpl)(nil)

func (c *loadBalancersClientImpl) CreateOrUpdate(ctx context.Context, resourceGroupName, loadBalancerName string, parameters network.LoadBalancer) (*network.LoadBalancer, error) {
	future, err := c.c.BeginCreateOrUpdate(ctx, resourceGroupName, loadBalancerName, parameters, nil)
	if err != nil {
		return nil, fmt.Errorf("creating/updating load balancer: %w", err)
	}
	resp, err := future.PollUntilDone(ctx, nil)
	if err != nil {
		return nil, fmt.Errorf("waiting for load balancer create/update: %w", err)
	}
	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
			}

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Inspect the wrapped error for the provisioning failure reason
  2. Resolve resource conflicts (e.g. IP already in use) and retry the update
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/azure/loadbalancer.go:51 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/85772fc4446fb370. Report an issue: GitHub.