-
Notifications
You must be signed in to change notification settings - Fork 343
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
ec2_vpc_nat_gateway fails silently if EIP doesn't exist #1295
Comments
Files identified in the description:
If these files are inaccurate, please update the |
@bloob00k Thank you for reporting this. Does your EIP "67.219.240.2" exist prior creating the NAT gateway? |
Hi, no the EIP does not exist. So in that respect the module is correct; but I think in that case it should fail, rather than report ok. (For further context, the EIP is a BYOIP, which I forgot to allocate before creating the NAT GW) |
ec2_vpc_nat_gateway show fails if EIP doesn't exist SUMMARY Fixes #1295 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/ec2_vpc_nat_gateway ADDITIONAL INFORMATION Reviewed-by: Jill R Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis Reviewed-by: Mike Graves <mgraves@redhat.com>
ec2_vpc_nat_gateway show fails if EIP doesn't exist SUMMARY Fixes #1295 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/ec2_vpc_nat_gateway ADDITIONAL INFORMATION Reviewed-by: Jill R Reviewed-by: Bikouo Aubin Reviewed-by: Alina Buzachis Reviewed-by: Mike Graves <mgraves@redhat.com> (cherry picked from commit 6f207ec)
[PR #1604/6f207ec1 backport][stable-6] ec2_vpc_nat_gateway show fails if EIP doesn't exist This is a backport of PR #1604 as merged into main (6f207ec). SUMMARY Fixes #1295 ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/modules/ec2_vpc_nat_gateway ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis
Summary
Trying to create a new NAT gateway with an elastic IP. The task reports ok, but the result does not include a nat_gateway_id. The NAT gateway is not created, and does not already exist. When running with -vvv I can see a message which says the EIP does not exist.
Issue Type
Bug Report
Component Name
ec2_vpc_nat_gateway
Ansible Version
Collection Versions
AWS SDK versions
Configuration
OS / Environment
Red Hat Enterprise Linux release 8.6 (Ootpa)
Linux aac.az-b.us-east-1.shared.dev.symcld.net 4.18.0-372.13.1.el8_6.x86_64 #1 SMP Mon Jun 6 15:05:22 EDT 2022 x86_64 x86_64 x86_64 GNU/Linux
Using ansible-navigator with a container execution environment
Steps to Reproduce
Expected Results
I expect either a NAT gateway to be created with the specified parameters, and for the task to report changed and return the nat_gateway_id, or for the task to fail. In fact it reported ok (but the gateway does not already exist), and it does not return a nat_gateway_id. This causes subsequent tasks to fail which try to use the id, but the problem is earlier.
Actual Results
Code of Conduct
The text was updated successfully, but these errors were encountered: