{"record":{"id":"881bb43b7d2555d5","repo":"kubernetes/kops","slug":"error-listing-tags-on-v-v","errorCode":null,"errorMessage":"error listing tags on %v: %v","messagePattern":"error listing tags on (.+?): (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_cloud.go","lineNumber":1232,"sourceCode":"\t\tresponse, err := c.EC2().DescribeTags(ctx, request, func(o *ec2.Options) {\n\t\t\to.RetryMaxAttempts = DescribeTagsMaxAttempts\n\t\t})\n\t\tif err != nil {\n\t\t\tif isTagsEventualConsistencyError(err) {\n\t\t\t\tif attempt > DescribeTagsMaxAttempts {\n\t\t\t\t\treturn nil, fmt.Errorf(\"got retryable error while getting tags on %q, but retried too many times without success: %v\", resourceID, err)\n\t\t\t\t}\n\n\t\t\t\tif (attempt % DescribeTagsLogInterval) == 0 {\n\t\t\t\t\tklog.Infof(\"waiting for eventual consistency while describing tags on %q\", resourceID)\n\t\t\t\t}\n\n\t\t\t\tklog.V(2).Infof(\"will retry after encountering error getting tags on %q: %v\", resourceID, err)\n\t\t\t\ttime.Sleep(DescribeTagsRetryInterval)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\treturn nil, fmt.Errorf(\"error listing tags on %v: %v\", resourceID, err)\n\t\t}\n\n\t\tfor _, tag := range response.Tags {\n\t\t\ttags[aws.ToString(tag.Key)] = aws.ToString(tag.Value)\n\t\t}\n\n\t\treturn tags, nil\n\t}\n}\n\n// CreateTags will add tags to the specified resource, retrying up to MaxCreateTagsAttempts times if it hits an eventual-consistency type error\nfunc (c *awsCloudImplementation) CreateTags(resourceID string, tags map[string]string) error {\n\treturn createTags(c, resourceID, tags)\n}\n\nfunc createTags(c AWSCloud, resourceID string, tags map[string]string) error {\n\tif len(tags) == 0 {\n\t\treturn nil","sourceCodeStart":1214,"sourceCodeEnd":1250,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L1214-L1250","documentation":"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.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1232 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for auth failure and verify ec2:DescribeTags permission","Confirm the resource ID is valid and in the right region"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}