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_transit_gateway_vpc_attachment - Prepare module for migration to amazon.aws #2157

Conversation

GomathiselviS
Copy link
Collaborator

@GomathiselviS GomathiselviS commented Sep 24, 2024

SUMMARY

Refer: https://issues.redhat.com/browse/ACA-1868

This PR refactors and adds necessary documentation to ec2_transit_gateway_vpc_attachment and ec2_transit_gateway_vpc_attachment_info

ISSUE TYPE
  • Bugfix Pull Request
  • Docs Pull Request
  • Feature Pull Request
  • New Module Pull Request
COMPONENT NAME
ADDITIONAL INFORMATION

Copy link

github-actions bot commented Sep 24, 2024

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/aa5bf9b0c87540ccbc927d596cf48540

ansible-galaxy-importer FAILURE in 5m 00s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 39s
✔️ ansible-test-splitter SUCCESS in 4m 20s
✔️ integration-community.aws-1 SUCCESS in 26m 30s
Skipped 21 jobs

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.

What about adding type hints to the functions?
Also, I noticed that module_utils.transitgateway imports some functionalities from community.aws.plugins.module_utils.ec2, whereas when we migrate this module, we may want to use the utilities from amazon.aws.plugins.module_utils.ec2.
I would suggest checking how these can be replaced/upgraded and if possible.

from ansible_collections.community.aws.plugins.module_utils.ec2 import BaseEc2Manager
from ansible_collections.community.aws.plugins.module_utils.ec2 import Boto3Mixin
from ansible_collections.community.aws.plugins.module_utils.ec2 import Ec2WaiterFactory

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/98c04d9c0dc245c986c7eddf48642551

ansible-galaxy-importer FAILURE in 6m 06s (non-voting)
✔️ build-ansible-collection SUCCESS in 11m 20s
✔️ ansible-test-splitter SUCCESS in 4m 25s
integration-community.aws-1 FAILURE in 14m 34s
Skipped 21 jobs

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/e90bc6608785428c859c5187afe7a17d

✔️ ansible-galaxy-importer SUCCESS in 8m 37s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 52s
✔️ ansible-test-splitter SUCCESS in 5m 21s
integration-community.aws-1 FAILURE in 16m 58s
Skipped 21 jobs

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/83298abd12184455a27436bb1991b49c

✔️ ansible-galaxy-importer SUCCESS in 3m 21s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 40s
✔️ ansible-test-splitter SUCCESS in 4m 20s
integration-community.aws-1 FAILURE in 14m 53s
Skipped 21 jobs

@alinabuzachis alinabuzachis force-pushed the prep_tgw_vpc_att branch 2 times, most recently from f7f287a to f822de7 Compare October 3, 2024 13:15
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/fdf2498cc1f04a4493ac2db5815820fa

ansible-galaxy-importer FAILURE in 5m 18s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 56s
✔️ ansible-test-splitter SUCCESS in 4m 39s
integration-community.aws-1 FAILURE in 6m 36s
Skipped 21 jobs

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/ed98ee24b37a40648d03b84cc1d132a1

ansible-galaxy-importer FAILURE in 4m 50s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 59s
✔️ ansible-test-splitter SUCCESS in 4m 28s
integration-community.aws-1 FAILURE in 14m 17s
Skipped 21 jobs

@alinabuzachis
Copy link
Contributor

recheck

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/4dfc0fa6a36b4fc98d59d24434ce6225

ansible-galaxy-importer FAILURE in 4m 28s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 58s
✔️ ansible-test-splitter SUCCESS in 4m 35s
integration-community.aws-1 FAILURE in 16m 46s
Skipped 21 jobs

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/f90779264631475890dad41d1947f756

✔️ ansible-galaxy-importer SUCCESS in 3m 29s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 48s
✔️ ansible-test-splitter SUCCESS in 4m 21s
integration-community.aws-1 FAILURE in 15m 14s
Skipped 21 jobs

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/acaa26b721cf4ad390e595f8eacfd9eb

✔️ ansible-galaxy-importer SUCCESS in 3m 19s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 59s
✔️ ansible-test-splitter SUCCESS in 4m 35s
integration-community.aws-1 FAILURE in 16m 25s
Skipped 21 jobs

@alinabuzachis
Copy link
Contributor

recheck

Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/c3a41552a08545daa778e12a3e757975

ansible-galaxy-importer FAILURE in 5m 04s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 10s
✔️ ansible-test-splitter SUCCESS in 4m 24s
integration-community.aws-1 FAILURE in 16m 03s
Skipped 21 jobs

Copy link
Contributor

@abikouo abikouo left a comment

Choose a reason for hiding this comment

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

The way the module ec2_transit_gateway_vpc_attachment has been written is a bit complex, it could be simplified to follow the same pattern like others modules.

plugins/module_utils/transitgateway.py Outdated Show resolved Hide resolved
plugins/module_utils/transitgateway.py Outdated Show resolved Hide resolved
plugins/module_utils/transitgateway.py Outdated Show resolved Hide resolved
plugins/module_utils/transitgateway.py Show resolved Hide resolved
plugins/modules/ec2_transit_gateway_vpc_attachment_info.py Outdated Show resolved Hide resolved
plugins/modules/ec2_transit_gateway_vpc_attachment_info.py Outdated Show resolved Hide resolved
@alinabuzachis alinabuzachis requested a review from abikouo October 16, 2024 16:23
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/3de40f2a008c4651b9deaf56545216f6

ansible-galaxy-importer FAILURE in 4m 40s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 30s
✔️ ansible-test-splitter SUCCESS in 4m 21s
integration-community.aws-1 FAILURE in 15m 34s
Skipped 21 jobs

GomathiselviS and others added 9 commits October 17, 2024 17:21
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
Signed-off-by: Alina Buzachis <[email protected]>
Copy link
Contributor

Build failed.
https://ansible.softwarefactory-project.io/zuul/buildset/b9ccfdd44b5b4a8ca6f57d08b905e7dc

⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection (non-voting)
build-ansible-collection FAILURE in 5m 24s
✔️ ansible-test-splitter SUCCESS in 4m 16s
⚠️ integration-community.aws-1 SKIPPED Skipped due to failed job build-ansible-collection
Skipped 21 jobs

@alinabuzachis
Copy link
Contributor

recheck

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/1f320ae2b9f14d54a5017ead0451020a

✔️ ansible-galaxy-importer SUCCESS in 3m 47s (non-voting)
✔️ build-ansible-collection SUCCESS in 10m 07s
✔️ ansible-test-splitter SUCCESS in 4m 00s
✔️ integration-community.aws-1 SUCCESS in 24m 26s
Skipped 21 jobs

@alinabuzachis alinabuzachis added the mergeit Merge the PR (SoftwareFactory) label Oct 18, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/884b1ac39b5c4493b2300fdd3e0b8c6c

ansible-galaxy-importer FAILURE in 4m 47s (non-voting)
✔️ build-ansible-collection SUCCESS in 9m 58s
✔️ ansible-test-splitter SUCCESS in 3m 50s
✔️ integration-community.aws-1 SUCCESS in 26m 09s
Skipped 21 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 7dabfcc into ansible-collections:main Oct 18, 2024
66 of 67 checks passed
alinabuzachis pushed a commit to abikouo/community.aws that referenced this pull request Oct 24, 2024
…amazon.aws (ansible-collections#2157)

SUMMARY


Refer: https://issues.redhat.com/browse/ACA-1868
This PR refactors and adds necessary documentation to ec2_transit_gateway_vpc_attachment and ec2_transit_gateway_vpc_attachment_info
ISSUE TYPE


Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Bikouo Aubin
alinabuzachis pushed a commit to GomathiselviS/community.aws that referenced this pull request Oct 25, 2024
…amazon.aws (ansible-collections#2157)

SUMMARY


Refer: https://issues.redhat.com/browse/ACA-1868
This PR refactors and adds necessary documentation to ec2_transit_gateway_vpc_attachment and ec2_transit_gateway_vpc_attachment_info
ISSUE TYPE


Bugfix Pull Request
Docs Pull Request
Feature Pull Request
New Module Pull Request

COMPONENT NAME

ADDITIONAL INFORMATION

Reviewed-by: Alina Buzachis
Reviewed-by: Bikouo Aubin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants