kubernetes/kops · error

waiting for public ip address create/update completion

Error message

waiting for public ip address create/update completion: %w

What it means

PollUntilDone failed while waiting for the public IP address CreateOrUpdate LRO; ARM accepted the request but provisioning ended in failure.

Solutions

  1. Inspect the wrapped error for the provisioning failure reason
  2. Fix the public IP parameters and retry
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/azure/publicipaddress.go:49 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/1a18ba77955893ca. Report an issue: GitHub.

Appendix: source

Thrown at upup/pkg/fi/cloudup/azure/publicipaddress.go:49

	CreateOrUpdate(ctx context.Context, resourceGroupName, publicIPAddressName string, parameters network.PublicIPAddress) (*network.PublicIPAddress, error)
	List(ctx context.Context, resourceGroupName string) ([]*network.PublicIPAddress, error)
	Delete(ctx context.Context, resourceGroupName, publicIPAddressName string) error
}

type publicIPAddressesClientImpl struct {
	c *network.PublicIPAddressesClient
}

var _ PublicIPAddressesClient = (*publicIPAddressesClientImpl)(nil)

func (c *publicIPAddressesClientImpl) CreateOrUpdate(ctx context.Context, resourceGroupName, publicIPAddressName string, parameters network.PublicIPAddress) (*network.PublicIPAddress, error) {
	future, err := c.c.BeginCreateOrUpdate(ctx, resourceGroupName, publicIPAddressName, parameters, nil)
	if err != nil {
		return nil, fmt.Errorf("creating/updating public ip address: %w", err)
	}
	resp, err := future.PollUntilDone(ctx, nil)
	if err != nil {
		return nil, fmt.Errorf("waiting for public ip address create/update completion: %w", err)
	}
	return &resp.PublicIPAddress, err
}

func (c *publicIPAddressesClientImpl) List(ctx context.Context, resourceGroupName string) ([]*network.PublicIPAddress, error) {
	if resourceGroupName == "" {
		return nil, nil
	}

	var l []*network.PublicIPAddress
	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)