kubernetes/kops · error

got retryable error while creating tags on %q, but retried t

Error message

got retryable error while creating tags on %q, but retried too many times without success: %v

What it means

The CreateTags loop kept hitting eventual-consistency-class errors and exhausted CreateTagsMaxAttempts retries; the tags on resource %q were never successfully applied.

Source

Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1272

	ec2Tags := []ec2types.Tag{}
	for k, v := range tags {
		ec2Tags = append(ec2Tags, ec2types.Tag{Key: aws.String(k), Value: aws.String(v)})
	}

	attempt := 0
	for {
		attempt++

		request := &ec2.CreateTagsInput{
			Tags:      ec2Tags,
			Resources: []string{resourceID},
		}

		_, err := c.EC2().CreateTags(ctx, request)
		if err != nil {
			if isTagsEventualConsistencyError(err) {
				if attempt > CreateTagsMaxAttempts {
					return fmt.Errorf("got retryable error while creating tags on %q, but retried too many times without success: %v", resourceID, err)
				}

				if (attempt % CreateTagsLogInterval) == 0 {
					klog.Infof("waiting for eventual consistency while creating tags on %q", resourceID)
				}

				klog.V(2).Infof("will retry after encountering error creating tags on %q: %v", resourceID, err)
				time.Sleep(CreateTagsRetryInterval)
				continue
			}

			return fmt.Errorf("error creating tags on %v: %v", resourceID, err)
		}

		return nil
	}
}

View on GitHub (pinned to 4c8573c808)

Solutions

  1. Re-run the kops operation once AWS consistency catches up
  2. Verify the resource exists and the credentials can create tags on it
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1272 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/0aa6b04f2f8dca98. Report an issue: GitHub.