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

[PR #1002/c403552f backport][stable-3] rds_instance - fix check_mode and idempotence bugs and support adding/removing iam roles #1055

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Apr 12, 2022

This is a backport of PR #1002 as merged into main (c403552).

SUMMARY

Depends-On ansible-collections/amazon.aws#714

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

rds_instance

ADDITIONAL INFORMATION

Wasn't sure the best way to go about deleting IAM roles - ended up using a purge_iam_roles param that defaults to False, which seems consistent with other modules I've looked at.

…/removing iam roles (#1002)

rds_instance - fix check_mode and idempotence bugs and support adding/removing iam roles

SUMMARY

Support the addition and deletion of iam roles to db instances
Fixes #464
Fixes #1013
Integration tests to test both this and the amazon.aws module_util rds changes

Depends-On ansible-collections/amazon.aws#714
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
rds_instance
ADDITIONAL INFORMATION
Wasn't sure the best way to go about deleting IAM roles - ended up using a purge_iam_roles param that defaults to False, which seems consistent with other modules I've looked at.

Reviewed-by: Mark Woolley <mw@marknet15.com>
Reviewed-by: Joseph Torcasso <None>
Reviewed-by: Gonéri Le Bouder <goneri@lebouder.net>
Reviewed-by: Alina Buzachis <None>
Reviewed-by: Markus Bergholz <git@osuv.de>
(cherry picked from commit c403552)
@ansibullbot
Copy link

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request integration tests/integration module module needs_triage new_contributor Help guide this first time contributor plugins plugin (any type) tests tests labels Apr 12, 2022
@markuman
Copy link
Member

ImportError: cannot import name 'compare_iam_roles' from 'ansible_collections.amazon.aws.plugins.module_utils.rds' (/tmp/ansible_rds_instance_payload_hcm4od8l/ansible_rds_instance_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/rds.py)

@jatorcasso does this depends on unreleased amazon.aws changes?

@jatorcasso
Copy link
Contributor

ImportError: cannot import name 'compare_iam_roles' from 'ansible_collections.amazon.aws.plugins.module_utils.rds' (/tmp/ansible_rds_instance_payload_hcm4od8l/ansible_rds_instance_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/rds.py)

@jatorcasso does this depends on unreleased amazon.aws changes?

yes, it depends on #1034 and ansible-collections/amazon.aws#714, which were not backported

@markuman
Copy link
Member

ImportError: cannot import name 'compare_iam_roles' from 'ansible_collections.amazon.aws.plugins.module_utils.rds' (/tmp/ansible_rds_instance_payload_hcm4od8l/ansible_rds_instance_payload.zip/ansible_collections/amazon/aws/plugins/module_utils/rds.py)

@jatorcasso does this depends on unreleased amazon.aws changes?

yes, it depends on #1034 and ansible-collections/amazon.aws#714, which were not backported

I guess we can only backport this PR, if it will also be backported in amazon.aws and released with 3.3.0.

@jatorcasso
Copy link
Contributor

jatorcasso commented Apr 12, 2022

I'm not super familiar with how this will work. Can I manually backport the 2 PRs it depends on, then backport this?

@tremble
Copy link
Contributor

tremble commented Apr 12, 2022

I'm not super familiar with how this will work. Can I manually backport the 2 PRs it depends on, then backport this?

Assuming they're suitable for backporting, yes. You can also add Depends-On: <URL_of_PR> to the top of the first comment of this PR, so that the testing and approvals can happen in parallel.

@jatorcasso
Copy link
Contributor

@markuman already backported #1034 (ty!) so all that's left is backporting ansible-collections/amazon.aws#714 which is ansible-collections/amazon.aws#771

@jatorcasso
Copy link
Contributor

recheck

@jatorcasso
Copy link
Contributor

recheck

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Apr 14, 2022
@markuman markuman removed the mergeit Merge the PR (SoftwareFactory) label Apr 14, 2022
Copy link
Member

@markuman markuman left a comment

Choose a reason for hiding this comment

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

I just like to block this backport until #1064 (comment) is clearified.
Otherwise we'll introduce a new feature in 3.2.1

@markuman markuman dismissed their stale review April 16, 2022 05:37

Goto stable-3 now

@markuman markuman added the mergeit Merge the PR (SoftwareFactory) label Apr 16, 2022
@markuman
Copy link
Member

regate

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit ede0dcc into stable-3 Apr 16, 2022
@softwarefactory-project-zuul softwarefactory-project-zuul bot deleted the patchback/backports/stable-3/c403552f8d8d2da6be0a1797d6ac85ab1cd7b22c/pr-1002 branch April 16, 2022 06:31
abikouo pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2023
Update bools documentation in ec2_instance

SUMMARY
See also ansible-collections#1041
ISSUE TYPE

Docs Pull Request

COMPONENT NAME
ec2_instance
ADDITIONAL INFORMATION
Split from ansible-collections#978 to work around CI issues

Reviewed-by: Alina Buzachis <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 integration tests/integration mergeit Merge the PR (SoftwareFactory) module module new_contributor Help guide this first time contributor plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants