kubernetes/kops · error
error listing tags on %v: %v
Error message
error listing tags on %v: %v
What it means
DescribeTags failed with a non-retryable error (not an eventual-consistency class failure), so the tag-fetch loop aborted for the resource in %v. Fires on permission denied, invalid resource ID, or other hard EC2 API errors.
Source
Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1232
response, err := c.EC2().DescribeTags(ctx, request, func(o *ec2.Options) {
o.RetryMaxAttempts = DescribeTagsMaxAttempts
})
if err != nil {
if isTagsEventualConsistencyError(err) {
if attempt > DescribeTagsMaxAttempts {
return nil, fmt.Errorf("got retryable error while getting tags on %q, but retried too many times without success: %v", resourceID, err)
}
if (attempt % DescribeTagsLogInterval) == 0 {
klog.Infof("waiting for eventual consistency while describing tags on %q", resourceID)
}
klog.V(2).Infof("will retry after encountering error getting tags on %q: %v", resourceID, err)
time.Sleep(DescribeTagsRetryInterval)
continue
}
return nil, fmt.Errorf("error listing tags on %v: %v", resourceID, err)
}
for _, tag := range response.Tags {
tags[aws.ToString(tag.Key)] = aws.ToString(tag.Value)
}
return tags, nil
}
}
// CreateTags will add tags to the specified resource, retrying up to MaxCreateTagsAttempts times if it hits an eventual-consistency type error
func (c *awsCloudImplementation) CreateTags(resourceID string, tags map[string]string) error {
return createTags(c, resourceID, tags)
}
func createTags(c AWSCloud, resourceID string, tags map[string]string) error {
if len(tags) == 0 {
return nilView on GitHub (pinned to 4c8573c808)
Solutions
- Check the wrapped error for auth failure and verify ec2:DescribeTags permission
- Confirm the resource ID is valid and in the right region
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1232 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/881bb43b7d2555d5.
Report an issue: GitHub.