-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
b/aws_eip on delete error with ipam_pool_id stuck in IPAM eventual consistency loop #40082
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Community NoteVoting for Prioritization
For Submitters
|
github-actions
bot
added
service/ec2
Issues and PRs that pertain to the ec2 service.
needs-triage
Waiting for first response or review from a maintainer.
labels
Nov 11, 2024
justinretzolk
added
bug
Addresses a defect in current functionality.
and removed
needs-triage
Waiting for first response or review from a maintainer.
labels
Nov 11, 2024
jar-b
approved these changes
Nov 11, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
% make testacc PKG=ec2 TESTS=TestAccEC2EIP_
make: Verifying source code with gofmt...
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go1.23.2 test ./internal/service/ec2/... -v -count 1 -parallel 20 -run='TestAccEC2EIP_' -timeout 360m
2024/11/11 11:31:00 Initializing Terraform AWS Provider...
=== NAME TestAccEC2EIP_carrierIP
wavelength_carrier_gateway_test.go:198: skipping since no Wavelength Zones are available
--- SKIP: TestAccEC2EIP_carrierIP (0.78s)
=== NAME TestAccEC2EIP_customerOwnedIPv4Pool
ec2_eip_test.go:538: skipping since no Outposts found
--- SKIP: TestAccEC2EIP_customerOwnedIPv4Pool (0.82s)
--- PASS: TestAccEC2EIP_BYOIPAddress_default (23.11s)
--- PASS: TestAccEC2EIP_disappears (23.64s)
--- PASS: TestAccEC2EIP_networkBorderGroup (25.05s)
--- PASS: TestAccEC2EIP_PublicIPv4Pool_default (25.77s)
--- PASS: TestAccEC2EIP_noVPC (26.43s)
--- PASS: TestAccEC2EIP_basic (26.55s)
--- PASS: TestAccEC2EIP_NetworkInterface_twoEIPsOneInterface (32.10s)
--- PASS: TestAccEC2EIP_migrateVPCToDomain (33.64s)
--- PASS: TestAccEC2EIP_networkInterface (35.61s)
--- PASS: TestAccEC2EIP_tags (45.86s)
--- PASS: TestAccEC2EIP_PublicIPv4Pool_IPAMPoolId (82.51s)
--- PASS: TestAccEC2EIP_Instance_reassociate (125.31s)
--- PASS: TestAccEC2EIP_Instance_notAssociated (132.89s)
--- PASS: TestAccEC2EIP_association (167.12s)
--- PASS: TestAccEC2EIP_Instance_associatedUserPrivateIP (167.48s)
--- PASS: TestAccEC2EIP_instance (332.63s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ec2 338.207s
Thanks for the fix, @alexbacchin! 👍 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Addresses a defect in current functionality.
service/ec2
Issues and PRs that pertain to the ec2 service.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR fixes the
aws_eip
issue when actionReleaseAddress
raises an error andipam_pool_id
is set. The error is not handled because the code enters IPAM eventual consistency check and never exists (until timeout).This simply moves the error handling before the IPAM eventual consistency check
Relations
References
Output from Acceptance Testing