{"record":{"id":"adfed250fdf6ccde","repo":"kubernetes/kops","slug":"got-retryable-error-while-getting-tags-on-q-but","errorCode":null,"errorMessage":"got retryable error while getting tags on %q, but retried too many times without success: %v","messagePattern":"got retryable error while getting tags on %q, but retried too many times without success: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/awsup/aws_cloud.go","lineNumber":1220,"sourceCode":"\ttags := map[string]string{}\n\n\trequest := &ec2.DescribeTagsInput{\n\t\tFilters: []ec2types.Filter{\n\t\t\tNewEC2Filter(\"resource-id\", resourceID),\n\t\t},\n\t}\n\n\tattempt := 0\n\tfor {\n\t\tattempt++\n\n\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","sourceCodeStart":1202,"sourceCodeEnd":1238,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L1202-L1238","documentation":"The DescribeTags loop kept hitting eventual-consistency errors (e.g. InvalidInstanceID.NotFound right after resource creation) and exhausted DescribeTagsMaxAttempts retries without the tags becoming visible. The resource ID in %q is the one whose tags never converged.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1220 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait for AWS eventual consistency and re-run the operation","Verify the resource ID actually exists","If persistent, check for credential/permission issues masquerading as consistency errors"],"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"}