kubernetes/kops · error

listing storage accounts: %w

Error message

listing storage accounts: %w

What it means

Listing storage accounts across the subscription via the ARM pager failed; fires on authorization failures (the list is subscription-wide), throttling, or transient ARM errors.

Source

Thrown at upup/pkg/fi/cloudup/azure/storageaccount.go:44

// StorageAccountsClient is a client for managing Network Interfaces.
type StorageAccountsClient interface {
	List(ctx context.Context) ([]*armstorage.Account, error)
}

type storageAccountsClientImpl struct {
	c *armstorage.AccountsClient
}

var _ StorageAccountsClient = (*storageAccountsClientImpl)(nil)

func (c *storageAccountsClientImpl) List(ctx context.Context) ([]*armstorage.Account, error) {
	var l []*armstorage.Account
	pager := c.c.NewListPager(nil)
	for pager.More() {
		resp, err := pager.NextPage(ctx)
		if err != nil {
			return nil, fmt.Errorf("listing storage accounts: %w", err)
		}
		l = append(l, resp.Value...)
	}
	return l, nil
}

func newStorageAccountsClientImpl(subscriptionID string, cred *azidentity.DefaultAzureCredential) (*storageAccountsClientImpl, error) {
	c, err := armstorage.NewAccountsClient(subscriptionID, cred, nil)
	if err != nil {
		return nil, fmt.Errorf("creating storage accounts client: %w", err)
	}
	return &storageAccountsClientImpl{
		c: c,
	}, nil
}

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Verify the credential can list storage accounts in the subscription
  2. Retry after transient ARM/throttling errors
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/azure/storageaccount.go:44 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/f9f915e233fcb19d. Report an issue: GitHub.