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

ec2_vpc_nat_gateway - integration tests unstable #428

Closed
tremble opened this issue Feb 20, 2021 · 2 comments · Fixed by #427
Closed

ec2_vpc_nat_gateway - integration tests unstable #428

tremble opened this issue Feb 20, 2021 · 2 comments · Fixed by #427
Labels
bug This issue/PR relates to a bug CI has_pr module module needs_triage plugins plugin (any type)

Comments

@tremble
Copy link
Contributor

tremble commented Feb 20, 2021

SUMMARY

The ec2_vpc_nat_gateway are regularly failing. When they do pass they seem to take at least 10 minutes.

ISSUE TYPE
  • Bug Report
COMPONENT NAME

ec2_vpc_nat_gateway

ANSIBLE VERSION

devel

CONFIGURATION

CI

OS / ENVIRONMENT

CI

STEPS TO REPRODUCE

Run the CI tests

EXPECTED RESULTS

Tests pass

ACTUAL RESULTS

We're often seeing something like:

33:19 
33:19 TASK [ec2_vpc_nat_gateway : Update with CamelCase tags] ************************
33:19 task path: /root/ansible_collections/community/aws/tests/output/.tmp/integration/ec2_vpc_nat_gateway-nIUlx0-ÅÑŚÌβŁÈ/tests/integration/targets/ec2_vpc_nat_gateway/tasks/main.yml:446
33:19 <testhost> ESTABLISH LOCAL CONNECTION FOR USER: root
33:19 <testhost> EXEC /bin/sh -c 'echo ~root && sleep 0'
33:19 <testhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /root/.ansible/tmp `"&& mkdir "` echo /root/.ansible/tmp/ansible-tmp-1613836132.39-8437-25369739251632 `" && echo ansible-tmp-1613836132.39-8437-25369739251632="` echo /root/.ansible/tmp/ansible-tmp-1613836132.39-8437-25369739251632 `" ) && sleep 0'
33:19 Using module file /root/ansible_collections/community/aws/plugins/modules/ec2_vpc_nat_gateway.py
33:19 <testhost> PUT /root/.ansible/tmp/ansible-local-79497ZLbDw/tmpcBrFHI TO /root/.ansible/tmp/ansible-tmp-1613836132.39-8437-25369739251632/AnsiballZ_ec2_vpc_nat_gateway.py
33:19 <testhost> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1613836132.39-8437-25369739251632/ /root/.ansible/tmp/ansible-tmp-1613836132.39-8437-25369739251632/AnsiballZ_ec2_vpc_nat_gateway.py && sleep 0'
33:19 <testhost> EXEC /bin/sh -c 'ANSIBLE_DEBUG_BOTOCORE_LOGS=True /tmp/python-p4KwZo-ansible/python /root/.ansible/tmp/ansible-tmp-1613836132.39-8437-25369739251632/AnsiballZ_ec2_vpc_nat_gateway.py && sleep 0'
34:56 <testhost> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1613836132.39-8437-25369739251632/ > /dev/null 2>&1 && sleep 0'
34:56 fatal: [testhost]: FAILED! => {
34:56     "changed": true, 
34:56     "invocation": {
34:56         "module_args": {
34:56             "allocation_id": "eipalloc-0622d992c12fb6d94", 
34:56             "aws_access_key": "ASIA6CCDWXDON3QK3ZMN", 
34:56             "aws_ca_bundle": null, 
34:56             "aws_config": null, 
34:56             "aws_secret_key": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
34:56             "client_token": null, 
34:56             "debug_botocore_endpoint_logs": true, 
34:56             "ec2_url": null, 
34:56             "eip_address": null, 
34:56             "if_exist_do_not_create": true, 
34:56             "nat_gateway_id": null, 
34:56             "profile": null, 
34:56             "purge_tags": false, 
34:56             "region": "us-east-1", 
34:56             "release_eip": false, 
34:56             "security_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", 
34:56             "state": "present", 
34:56             "subnet_id": "subnet-0a9162e855e40471a", 
34:56             "tags": {
34:56                 "CamelCase": "SimpleCamelCase ❤️", 
34:56                 "Title Case": "Hello Cruel World ❤️", 
34:56                 "lowercase spaced": "hello cruel world ❤️", 
34:56                 "snake_case": "simple_snake_case ❤️"
34:56             }, 
34:56             "validate_certs": true, 
34:56             "wait": true, 
34:56             "wait_timeout": 320
34:56         }
34:56     }, 
34:56     "msg": "Wait time out reached, while waiting for results", 
34:56     "resource_actions": [
34:56         "ec2:CreateTags", 
34:56         "ec2:DescribeNatGateways", 
34:56         "ec2:DescribeTags", 
34:56         "ec2:CreateNatGateway"
34:56     ], 
34:56     "success": false
34:56 }

Note the 'CreateNatGateway call. This makes me suspect that something's going wrong with the search for Nat Gateways so it's trying to create a fresh one.

@ansibullbot
Copy link

ansibullbot commented Feb 20, 2021

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot
Copy link

@ansibullbot ansibullbot added bug This issue/PR relates to a bug has_pr module module needs_triage plugins plugin (any type) labels Feb 20, 2021
@tremble tremble added the CI label Feb 21, 2021
@tremble tremble linked a pull request Feb 21, 2021 that will close this issue
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this issue May 25, 2022
…s#429)

Disable ec2_key, ec2_snapshot and ec2_group tests

SUMMARY
Work around ansible-collections#428 and ansible-collections#440 ansible-collections#441
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
ec2_key
ec2_snapshot
ec2_group
ADDITIONAL INFORMATION

Reviewed-by: Jill R <None>
Reviewed-by: None <None>
Reviewed-by: Paul Belanger <None>
Reviewed-by: Mark Chappell <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug CI has_pr module module needs_triage plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants