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

Backport stable-3 - rds module_util - add retry_code to get_rds_method_attributes and add… #839

Conversation

jatorcasso
Copy link
Contributor

SUMMARY

Manual backport of #776

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

rds

… functionality for copying snapshot (ansible-collections#776)

rds module_util - add retry_code to get_rds_method_attributes and add functionality for copying snapshot

SUMMARY

catch InvalidDBSecurityGroupStateFault when modifying db
add retry_codes to return data from get_rds_method_attribute, and add unit tests to cover
add functionality for copy_db_snapshot
refactor to utilize the return values of get_rds_method_attribute

ISSUE TYPE

Feature Pull Request
Bugfix Pull Request

COMPONENT NAME
rds
ADDITIONAL INFORMATION

Ran into the InvalidDBSecurityGroupStateFault error running integration tests for community.aws.rds_instance

There is quite a bit of refactoring here so I wanted to explain why I made the changes I did:

there were many instances of calling get_rds_method_attribute to retrieve certain values (waiter, retry_codes, which RDS resource), so I tried to remove the duplicate calls and use the return values already retrieved from the initial call.
split wait_for_snapshot_status into wait_for_instance_snapshot_status and wait_for_cluster_snapshot_status, as they have different identifiers (they are also broken up in get_final_identifier)

The initial goal here was simply to add retry_codes as a return value of get_rds_method_attribute and add copy_db_snapshot as a valid method, but working through that uncovered some bugs and just general redundancies, so I felt these were necessary changes.

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Joseph Torcasso <None>
Reviewed-by: Sloane Hertel <None>
(cherry picked from commit b002515)
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

✔️ ansible-galaxy-importer SUCCESS in 5m 00s
✔️ build-ansible-collection SUCCESS in 4m 54s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 9m 28s
✔️ ansible-test-sanity-aws-ansible-2.9-python38 SUCCESS in 11m 06s
✔️ ansible-test-sanity-aws-ansible-2.11-python38 SUCCESS in 10m 49s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 22s
✔️ ansible-test-splitter SUCCESS in 2m 34s
⚠️ integration-amazon.aws-1 SKIPPED
⚠️ integration-amazon.aws-2 SKIPPED
⚠️ integration-amazon.aws-3 SKIPPED
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
✔️ integration-community.aws-1 SUCCESS in 43m 27s
✔️ integration-community.aws-2 SUCCESS in 35m 40s
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@alinabuzachis alinabuzachis requested a review from tremble May 25, 2022 15:04
@jillr jillr added the mergeit Merge the PR (SoftwareFactory) label May 25, 2022
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

✔️ ansible-galaxy-importer SUCCESS in 4m 24s
✔️ build-ansible-collection SUCCESS in 4m 38s
✔️ ansible-test-sanity-aws-ansible-python38 SUCCESS in 8m 57s
✔️ ansible-test-sanity-aws-ansible-2.9-python38 SUCCESS in 10m 00s
✔️ ansible-test-sanity-aws-ansible-2.11-python38 SUCCESS in 8m 32s
✔️ ansible-test-units-amazon-aws-python38 SUCCESS in 6m 37s
✔️ ansible-test-splitter SUCCESS in 2m 32s
⚠️ integration-amazon.aws-1 SKIPPED
⚠️ integration-amazon.aws-2 SKIPPED
⚠️ integration-amazon.aws-3 SKIPPED
⚠️ integration-amazon.aws-4 SKIPPED
⚠️ integration-amazon.aws-5 SKIPPED
⚠️ integration-amazon.aws-6 SKIPPED
⚠️ integration-amazon.aws-7 SKIPPED
⚠️ integration-amazon.aws-8 SKIPPED
⚠️ integration-amazon.aws-9 SKIPPED
⚠️ integration-amazon.aws-10 SKIPPED
⚠️ integration-amazon.aws-11 SKIPPED
⚠️ integration-amazon.aws-12 SKIPPED
⚠️ integration-amazon.aws-13 SKIPPED
✔️ integration-community.aws-1 SUCCESS in 46m 25s
✔️ integration-community.aws-2 SUCCESS in 35m 12s
⚠️ integration-community.aws-3 SKIPPED
⚠️ integration-community.aws-4 SKIPPED
⚠️ integration-community.aws-5 SKIPPED
⚠️ integration-community.aws-6 SKIPPED
⚠️ integration-community.aws-7 SKIPPED
⚠️ integration-community.aws-8 SKIPPED
⚠️ integration-community.aws-9 SKIPPED
⚠️ integration-community.aws-10 SKIPPED
⚠️ integration-community.aws-11 SKIPPED
⚠️ integration-community.aws-12 SKIPPED
⚠️ integration-community.aws-13 SKIPPED

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 31776d9 into ansible-collections:stable-3 May 26, 2022
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 9, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 9, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 9, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 9, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 16, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@2096b7f
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE


Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE


Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
Remove deprecated Modules

SUMMARY
Remove deprecated modules for 3.0.0 release
ISSUE TYPE


Feature Pull Request

COMPONENT NAME
community.aws.iam
community.aws.rds

Reviewed-by: Alina Buzachis <None>
Reviewed-by: Jill R <None>
Reviewed-by: None <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community_review feature This issue/PR relates to a feature request mergeit Merge the PR (SoftwareFactory) module_utils module_utils needs_triage plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants