{"record":{"id":"0aa6b04f2f8dca98","repo":"kubernetes/kops","slug":"got-retryable-error-while-creating-tags-on-q-but","errorCode":null,"errorMessage":"got retryable error while creating tags on %q, but retried too many times without success: %v","messagePattern":"got retryable error while creating 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":1272,"sourceCode":"\tec2Tags := []ec2types.Tag{}\n\tfor k, v := range tags {\n\t\tec2Tags = append(ec2Tags, ec2types.Tag{Key: aws.String(k), Value: aws.String(v)})\n\t}\n\n\tattempt := 0\n\tfor {\n\t\tattempt++\n\n\t\trequest := &ec2.CreateTagsInput{\n\t\t\tTags:      ec2Tags,\n\t\t\tResources: []string{resourceID},\n\t\t}\n\n\t\t_, err := c.EC2().CreateTags(ctx, request)\n\t\tif err != nil {\n\t\t\tif isTagsEventualConsistencyError(err) {\n\t\t\t\tif attempt > CreateTagsMaxAttempts {\n\t\t\t\t\treturn fmt.Errorf(\"got retryable error while creating 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 % CreateTagsLogInterval) == 0 {\n\t\t\t\t\tklog.Infof(\"waiting for eventual consistency while creating tags on %q\", resourceID)\n\t\t\t\t}\n\n\t\t\t\tklog.V(2).Infof(\"will retry after encountering error creating tags on %q: %v\", resourceID, err)\n\t\t\t\ttime.Sleep(CreateTagsRetryInterval)\n\t\t\t\tcontinue\n\t\t\t}\n\n\t\t\treturn fmt.Errorf(\"error creating tags on %v: %v\", resourceID, err)\n\t\t}\n\n\t\treturn nil\n\t}\n}\n","sourceCodeStart":1254,"sourceCodeEnd":1290,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/awsup/aws_cloud.go#L1254-L1290","documentation":"The CreateTags loop kept hitting eventual-consistency-class errors and exhausted CreateTagsMaxAttempts retries; the tags on resource %q were never successfully applied.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/awsup/aws_cloud.go:1272 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Re-run the kops operation once AWS consistency catches up","Verify the resource exists and the credentials can create tags on it"],"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"}