Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/aws_lb_target_group: Prevent eventual consistency related tagging errors on creation #17280

Merged
merged 3 commits into from
Feb 18, 2021

Conversation

shuheiktgw
Copy link
Collaborator

@shuheiktgw shuheiktgw commented Jan 25, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #16860

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSLBTargetGroup_tags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSLBTargetGroup_tags -timeout 120m
=== RUN   TestAccAWSLBTargetGroup_tags
=== PAUSE TestAccAWSLBTargetGroup_tags
=== CONT  TestAccAWSLBTargetGroup_tags
--- PASS: TestAccAWSLBTargetGroup_tags (209.78s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	211.805s

As I wrote in the issue, I myself could not reproduce the problem locally. However, many people seem to experience it so I added a retry mechanism to adding tags following #12738. Thank you for your review!

@shuheiktgw shuheiktgw requested a review from a team as a code owner January 25, 2021 21:09
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/elbv2 Issues and PRs that pertain to the elbv2 service. labels Jan 25, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 25, 2021
@YakDriver YakDriver self-assigned this Feb 18, 2021
@YakDriver
Copy link
Member

@shuheiktgw Thank you for your work on this PR! I will be working on this before long. In order to expedite the process, I will likely make some changes. Make sure that you have checked the box "Allow edits from maintainers." (Don't worry though, you will receive all credit for your contribution and code!) Also, please coordinate with us before making any commits to this branch. Again, thank you for your help and we look forward to this popular addition to the AWS provider!

@YakDriver YakDriver removed the needs-triage Waiting for first response or review from a maintainer. label Feb 18, 2021
@ghost ghost added size/S Managed by automation to categorize the size of a PR. and removed size/XS Managed by automation to categorize the size of a PR. labels Feb 18, 2021
@ghost ghost added size/M Managed by automation to categorize the size of a PR. and removed size/S Managed by automation to categorize the size of a PR. labels Feb 18, 2021
Copy link
Member

@YakDriver YakDriver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 🎉

GovCloud acceptance testing:

--- PASS: TestAccAWSLB_ALB_AccessLogs (371.03s)
--- PASS: TestAccAWSLB_ALB_AccessLogs_Prefix (314.26s)
--- PASS: TestAccAWSLB_ALB_basic (180.51s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateDeletionProtection (292.10s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateDropInvalidHeaderFields (291.56s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (281.35s)
--- PASS: TestAccAWSLB_BackwardsCompatibility (188.45s)
--- PASS: TestAccAWSLB_generatedName (189.03s)
--- PASS: TestAccAWSLB_generatesNameForZeroValue (182.34s)
--- PASS: TestAccAWSLB_IPv6SubnetMapping (247.36s)
--- PASS: TestAccAWSLB_namePrefix (190.51s)
--- PASS: TestAccAWSLB_networkLoadbalancer_subnet_change (262.82s)
--- PASS: TestAccAWSLB_networkLoadbalancer_updateCrossZone (330.22s)
--- PASS: TestAccAWSLB_networkLoadbalancerEIP (222.45s)
--- PASS: TestAccAWSLB_NLB_AccessLogs (437.93s)
--- PASS: TestAccAWSLB_NLB_AccessLogs_Prefix (375.61s)
--- PASS: TestAccAWSLB_NLB_basic (270.43s)
--- PASS: TestAccAWSLB_NLB_privateipv4address (219.38s)
--- PASS: TestAccAWSLB_noSecurityGroup (180.11s)
--- PASS: TestAccAWSLB_tags (317.13s)
--- PASS: TestAccAWSLB_updatedIpAddressType (254.59s)
--- PASS: TestAccAWSLB_updatedSecurityGroups (240.48s)
--- PASS: TestAccAWSLB_updatedSubnets (260.89s)
--- PASS: TestAccAWSLBTargetGroup_BackwardsCompatibility (33.26s)
--- PASS: TestAccAWSLBTargetGroup_basic (54.81s)
--- PASS: TestAccAWSLBTargetGroup_basicUdp (30.82s)
--- PASS: TestAccAWSLBTargetGroup_changeNameForceNew (84.45s)
--- PASS: TestAccAWSLBTargetGroup_changePortForceNew (57.53s)
--- PASS: TestAccAWSLBTargetGroup_changeProtocolForceNew (60.35s)
--- PASS: TestAccAWSLBTargetGroup_changeVpcForceNew (57.65s)
--- PASS: TestAccAWSLBTargetGroup_defaults_application (48.80s)
--- PASS: TestAccAWSLBTargetGroup_defaults_network (63.11s)
--- PASS: TestAccAWSLBTargetGroup_enableHealthCheck (34.87s)
--- PASS: TestAccAWSLBTargetGroup_generatedName (28.37s)
--- PASS: TestAccAWSLBTargetGroup_namePrefix (28.19s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroup (95.97s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy (56.12s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol (59.36s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tls (25.57s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion (30.03s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion_GRPC_HealthCheck (28.46s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion_HTTP_GRPC_Update (50.68s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultALB (47.78s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultNLB (105.66s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidALB (70.67s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidNLB (54.29s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidALB (73.77s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidNLB (149.07s)
--- PASS: TestAccAWSLBTargetGroup_tags (81.20s)
--- PASS: TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck (54.70s)
--- PASS: TestAccAWSLBTargetGroup_updateHealthCheck (59.76s)
--- PASS: TestAccAWSLBTargetGroup_updateSticknessEnabled (100.90s)
--- PASS: TestAccAWSLBTargetGroup_withoutHealthcheck (19.23s)
--- SKIP: TestAccAWSLB_ALB_outpost (0.75s)
--- SKIP: TestAccAWSLB_LoadBalancerType_Gateway (1.89s)
--- SKIP: TestAccAWSLB_LoadBalancerType_Gateway_EnableCrossZoneLoadBalancing (1.65s)
--- SKIP: TestAccAWSLBTargetGroup_Protocol_Geneve (0.33s)

us-west-2:

--- PASS: TestAccAWSLB_ALB_AccessLogs (364.16s)
--- PASS: TestAccAWSLB_ALB_AccessLogs_Prefix (416.02s)
--- PASS: TestAccAWSLB_ALB_basic (294.54s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateDeletionProtection (363.18s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateDropInvalidHeaderFields (360.14s)
--- PASS: TestAccAWSLB_applicationLoadBalancer_updateHttp2 (379.70s)
--- PASS: TestAccAWSLB_BackwardsCompatibility (259.80s)
--- PASS: TestAccAWSLB_generatedName (265.82s)
--- PASS: TestAccAWSLB_generatesNameForZeroValue (243.13s)
--- PASS: TestAccAWSLB_IPv6SubnetMapping (319.49s)
--- PASS: TestAccAWSLB_LoadBalancerType_Gateway (167.38s)
--- PASS: TestAccAWSLB_LoadBalancerType_Gateway_EnableCrossZoneLoadBalancing (183.37s)
--- PASS: TestAccAWSLB_namePrefix (262.22s)
--- PASS: TestAccAWSLB_networkLoadbalancerEIP (218.10s)
--- PASS: TestAccAWSLB_networkLoadbalancer_subnet_change (227.19s)
--- PASS: TestAccAWSLB_networkLoadbalancer_updateCrossZone (361.62s)
--- PASS: TestAccAWSLB_NLB_AccessLogs (420.23s)
--- PASS: TestAccAWSLB_NLB_AccessLogs_Prefix (363.67s)
--- PASS: TestAccAWSLB_NLB_basic (258.65s)
--- PASS: TestAccAWSLB_NLB_privateipv4address (229.84s)
--- PASS: TestAccAWSLB_noSecurityGroup (185.20s)
--- PASS: TestAccAWSLB_tags (422.13s)
--- PASS: TestAccAWSLB_updatedIpAddressType (239.22s)
--- PASS: TestAccAWSLB_updatedSecurityGroups (246.73s)
--- PASS: TestAccAWSLB_updatedSubnets (244.98s)
--- PASS: TestAccAWSLBTargetGroup_BackwardsCompatibility (27.56s)
--- PASS: TestAccAWSLBTargetGroup_basic (76.80s)
--- PASS: TestAccAWSLBTargetGroup_basicUdp (26.65s)
--- PASS: TestAccAWSLBTargetGroup_changeNameForceNew (51.46s)
--- PASS: TestAccAWSLBTargetGroup_changePortForceNew (52.04s)
--- PASS: TestAccAWSLBTargetGroup_changeProtocolForceNew (54.66s)
--- PASS: TestAccAWSLBTargetGroup_changeVpcForceNew (52.89s)
--- PASS: TestAccAWSLBTargetGroup_defaults_application (27.22s)
--- PASS: TestAccAWSLBTargetGroup_defaults_network (70.42s)
--- PASS: TestAccAWSLBTargetGroup_enableHealthCheck (28.61s)
--- PASS: TestAccAWSLBTargetGroup_generatedName (26.18s)
--- PASS: TestAccAWSLBTargetGroup_namePrefix (24.99s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroup (82.91s)
--- PASS: TestAccAWSLBTargetGroup_networkLB_TargetGroupWithProxy (48.68s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Geneve (24.37s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tcp_HealthCheck_Protocol (54.28s)
--- PASS: TestAccAWSLBTargetGroup_Protocol_Tls (21.45s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion (26.91s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion_GRPC_HealthCheck (26.12s)
--- PASS: TestAccAWSLBTargetGroup_ProtocolVersion_HTTP_GRPC_Update (43.56s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultALB (24.44s)
--- PASS: TestAccAWSLBTargetGroup_stickinessDefaultNLB (71.19s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidALB (75.84s)
--- PASS: TestAccAWSLBTargetGroup_stickinessInvalidNLB (72.36s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidALB (100.46s)
--- PASS: TestAccAWSLBTargetGroup_stickinessValidNLB (113.50s)
--- PASS: TestAccAWSLBTargetGroup_tags (72.75s)
--- PASS: TestAccAWSLBTargetGroup_TCP_HTTPHealthCheck (48.93s)
--- PASS: TestAccAWSLBTargetGroup_updateHealthCheck (55.06s)
--- PASS: TestAccAWSLBTargetGroup_updateSticknessEnabled (70.10s)
--- PASS: TestAccAWSLBTargetGroup_withoutHealthcheck (14.33s)
--- SKIP: TestAccAWSLB_ALB_outpost (1.34s)

@YakDriver YakDriver added this to the v3.29.0 milestone Feb 18, 2021
@YakDriver YakDriver merged commit 33ab17a into hashicorp:main Feb 18, 2021
@shuheiktgw
Copy link
Collaborator Author

Thank you!

@shuheiktgw shuheiktgw deleted the target_group-tags branch February 18, 2021 21:51
@ghost
Copy link

ghost commented Feb 19, 2021

This has been released in version 3.29.0 of the Terraform AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template for triage. Thanks!

@shuheiktgw
Copy link
Collaborator Author

Thank you for your review and modification! @YakDriver
I'll check your change

@ghost
Copy link

ghost commented Mar 20, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators Mar 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/elbv2 Issues and PRs that pertain to the elbv2 service. size/M Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error tagging resources for target_group
2 participants