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

Attempt to improve the stability of ec2_vpc_vgw and ec2_vpc_vpn #162

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Jul 27, 2020

SUMMARY

With the increased concurrency of tests we've started hitting 'The maximum number of mutating objects has been reached.'

Unfortunately AWS uses the same Error Code for 'Too much changing' as 'Too many VPNs/VGWs', so we need to tweak the retry class a little

fixes: #156
fixes: #154

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ec2_vpc_vgw
ec2_vpc_vpn

ADDITIONAL INFORMATION

See attached issues for example failures

@tremble tremble force-pushed the stability/ec2_vpc_vgw/mutating_objects branch 2 times, most recently from 1c84d22 to e9acf96 Compare July 27, 2020 17:03
@tremble
Copy link
Contributor Author

tremble commented Aug 12, 2020

Migration to wrapped clients has broken the unit tests, will need to dig into those to fix

@tremble
Copy link
Contributor Author

tremble commented Aug 19, 2020

Need to fix unit tests to cope with wrapped client

@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress affects_2.10 bug This issue/PR relates to a bug module module needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html needs_triage owner_pr PR created by owner/maintainer stale_ci CI is older than 7 days, rerun before merging labels Aug 19, 2020
@ansibullbot ansibullbot added the plugins plugin (any type) label Aug 27, 2020
@ansibullbot ansibullbot removed the stale_ci CI is older than 7 days, rerun before merging label Sep 22, 2020
@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label Nov 16, 2020
@tremble tremble force-pushed the stability/ec2_vpc_vgw/mutating_objects branch from 582f048 to 03902f7 Compare February 5, 2021 12:27
@ansibullbot ansibullbot removed the needs_rebase https://docs.ansible.com/ansible/devel/dev_guide/developing_rebasing.html label Feb 5, 2021
@tremble tremble force-pushed the stability/ec2_vpc_vgw/mutating_objects branch 3 times, most recently from 7a53bcb to dfd6390 Compare February 5, 2021 14:40
@tremble tremble changed the title [WIP] Attempt to improve the stability of ec2_vpc_vgw and ec2_vpc_vpn Attempt to improve the stability of ec2_vpc_vgw and ec2_vpc_vpn Feb 5, 2021
@ansibullbot ansibullbot added community_review and removed WIP Work in progress labels Feb 5, 2021
@jillr
Copy link
Collaborator

jillr commented Feb 9, 2021

@tremble I noticed you took the WIP off this. What you have here looks good, were you still working on the unit tests?

@ansibullbot ansibullbot added needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR and removed community_review needs_triage labels Feb 9, 2021
@tremble tremble changed the title Attempt to improve the stability of ec2_vpc_vgw and ec2_vpc_vpn [WIP] Attempt to improve the stability of ec2_vpc_vgw and ec2_vpc_vpn Feb 10, 2021
@tremble
Copy link
Contributor Author

tremble commented Feb 10, 2021

@jillr Unit tests still need updating, I thought it was done and then realised that the unit tests weren't being run

@ansibullbot ansibullbot added the WIP Work in progress label Feb 10, 2021
@tremble tremble force-pushed the stability/ec2_vpc_vgw/mutating_objects branch from dfd6390 to 7b440b5 Compare February 11, 2021 19:27
@ansibullbot ansibullbot added needs_maintainer tests tests and removed owner_pr PR created by owner/maintainer labels Feb 11, 2021
@tremble tremble force-pushed the stability/ec2_vpc_vgw/mutating_objects branch from 7b440b5 to 283bbd7 Compare February 11, 2021 19:34
@tremble tremble changed the title [WIP] Attempt to improve the stability of ec2_vpc_vgw and ec2_vpc_vpn Attempt to improve the stability of ec2_vpc_vgw and ec2_vpc_vpn Feb 11, 2021
@tremble
Copy link
Contributor Author

tremble commented Feb 11, 2021

@jillr ok. Unit tests fixed. (rolls eyes at how stupidly simple the fix was)

@ansibullbot ansibullbot removed the WIP Work in progress label Feb 11, 2021
@tremble tremble removed needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR stale_ci CI is older than 7 days, rerun before merging labels Feb 11, 2021
@ansibullbot ansibullbot added the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Feb 11, 2021
@tremble tremble requested a review from jillr February 11, 2021 20:31
@tremble tremble removed the needs_revision This PR fails CI tests or a maintainer has requested a review/revision of the PR label Feb 11, 2021
Copy link
Contributor

@alinabuzachis alinabuzachis left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you. This also helped me dig deeper into how to use AWSRetry. :-)

@tremble
Copy link
Contributor Author

tremble commented Mar 15, 2021

Tests passing and approved. Merging

@tremble tremble merged commit 79e0928 into ansible-collections:main Mar 15, 2021
danquixote pushed a commit to danquixote/community.aws that referenced this pull request May 16, 2021
…ble-collections#162)

* Add a custom Retry so we can retry when we receive 'The maximum number of mutating objects has been reached'
* Update ec2_vpc_vpn unit test to use a connection with an AWSRetry decorator
* changelog
@tremble tremble deleted the stability/ec2_vpc_vgw/mutating_objects branch June 29, 2021 12:56
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 16, 2021
…_vpn (ansible-collections#162)

* Add a custom Retry so we can retry when we receive 'The maximum number of mutating objects has been reached'
* Update ec2_vpc_vpn unit test to use a connection with an AWSRetry decorator
* changelog

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections@79e0928
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
…ble-collections#162)

* Add a custom Retry so we can retry when we receive 'The maximum number of mutating objects has been reached'
* Update ec2_vpc_vpn unit test to use a connection with an AWSRetry decorator
* changelog
alinabuzachis pushed a commit to alinabuzachis/community.aws that referenced this pull request Jul 19, 2021
…ble-collections#162)

* Add a custom Retry so we can retry when we receive 'The maximum number of mutating objects has been reached'
* Update ec2_vpc_vpn unit test to use a connection with an AWSRetry decorator
* changelog
danielcotton pushed a commit to danielcotton/community.aws that referenced this pull request Nov 23, 2021
…ble-collections#162)

* Add a custom Retry so we can retry when we receive 'The maximum number of mutating objects has been reached'
* Update ec2_vpc_vpn unit test to use a connection with an AWSRetry decorator
* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects_2.10 bug This issue/PR relates to a bug community_review module module needs_maintainer plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unstable integration test - ec2_vpc_vpn_info Unstable Integration tests ec2_vpc_vgw
4 participants