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

Add utils for ec_vpc_peer* modules #2303

Conversation

alinabuzachis
Copy link
Collaborator

SUMMARY

Add utils for ec_vpc_peer* modules

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

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 00s
✔️ build-ansible-collection SUCCESS in 10m 41s
✔️ ansible-test-splitter SUCCESS in 4m 14s
✔️ integration-amazon.aws-1 SUCCESS in 17m 18s
✔️ integration-amazon.aws-2 SUCCESS in 27m 23s
✔️ integration-amazon.aws-3 SUCCESS in 26m 14s
✔️ integration-amazon.aws-4 SUCCESS in 29m 38s
✔️ integration-amazon.aws-5 SUCCESS in 20m 42s
✔️ integration-amazon.aws-6 SUCCESS in 21m 46s
✔️ integration-amazon.aws-7 SUCCESS in 19m 09s
✔️ integration-amazon.aws-8 SUCCESS in 9m 56s
✔️ integration-amazon.aws-9 SUCCESS in 10m 18s
✔️ integration-amazon.aws-10 SUCCESS in 12m 03s
✔️ integration-amazon.aws-11 SUCCESS in 17m 35s
✔️ integration-amazon.aws-12 SUCCESS in 17m 58s
✔️ integration-amazon.aws-13 SUCCESS in 16m 21s
✔️ integration-amazon.aws-14 SUCCESS in 10m 58s
✔️ integration-amazon.aws-15 SUCCESS in 9m 04s
✔️ integration-amazon.aws-16 SUCCESS in 15m 56s
✔️ integration-amazon.aws-17 SUCCESS in 15m 08s
✔️ integration-amazon.aws-18 SUCCESS in 21m 37s
✔️ integration-amazon.aws-19 SUCCESS in 24m 32s
✔️ integration-amazon.aws-20 SUCCESS in 10m 30s
✔️ integration-amazon.aws-21 SUCCESS in 7m 24s
✔️ integration-community.aws-1 SUCCESS in 15m 38s
✔️ integration-community.aws-2 SUCCESS in 6m 51s
✔️ integration-community.aws-3 SUCCESS in 5m 26s
✔️ integration-community.aws-4 SUCCESS in 6m 07s
✔️ integration-community.aws-5 SUCCESS in 7m 43s
✔️ integration-community.aws-6 SUCCESS in 9m 41s
✔️ integration-community.aws-7 SUCCESS in 5m 32s
Skipped 16 jobs

@alinabuzachis alinabuzachis force-pushed the ec2_vpc_peer_module_utils branch from 65b349e to 3565890 Compare September 25, 2024 12:05
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 07s
✔️ build-ansible-collection SUCCESS in 10m 52s
✔️ ansible-test-splitter SUCCESS in 4m 21s
✔️ integration-amazon.aws-1 SUCCESS in 17m 21s
✔️ integration-amazon.aws-2 SUCCESS in 25m 49s
✔️ integration-amazon.aws-3 SUCCESS in 26m 23s
✔️ integration-amazon.aws-4 SUCCESS in 24m 44s
✔️ integration-amazon.aws-5 SUCCESS in 17m 26s
✔️ integration-amazon.aws-6 SUCCESS in 21m 12s
✔️ integration-amazon.aws-7 SUCCESS in 19m 18s
✔️ integration-amazon.aws-8 SUCCESS in 10m 25s
✔️ integration-amazon.aws-9 SUCCESS in 12m 11s
✔️ integration-amazon.aws-10 SUCCESS in 12m 23s
✔️ integration-amazon.aws-11 SUCCESS in 11m 17s
✔️ integration-amazon.aws-12 SUCCESS in 18m 18s
✔️ integration-amazon.aws-13 SUCCESS in 12m 37s
✔️ integration-amazon.aws-14 SUCCESS in 12m 27s
✔️ integration-amazon.aws-15 SUCCESS in 9m 31s
✔️ integration-amazon.aws-16 SUCCESS in 13m 06s
✔️ integration-amazon.aws-17 SUCCESS in 16m 55s
✔️ integration-amazon.aws-18 SUCCESS in 22m 24s
✔️ integration-amazon.aws-19 SUCCESS in 21m 05s
✔️ integration-amazon.aws-20 SUCCESS in 10m 18s
✔️ integration-amazon.aws-21 SUCCESS in 7m 26s
✔️ integration-community.aws-1 SUCCESS in 14m 39s
✔️ integration-community.aws-2 SUCCESS in 6m 46s
✔️ integration-community.aws-3 SUCCESS in 7m 15s
✔️ integration-community.aws-4 SUCCESS in 7m 38s
✔️ integration-community.aws-5 SUCCESS in 6m 40s
✔️ integration-community.aws-6 SUCCESS in 10m 45s
✔️ integration-community.aws-7 SUCCESS in 6m 00s
Skipped 16 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.

LGTM!!
Just some minor remarks


@classmethod
def _is_missing(cls):
return is_boto3_error_code("InvalidVpcPeeringConnectionID.NotFound", "InvalidVpcPeeringConnectionId.Malformed")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return is_boto3_error_code("InvalidVpcPeeringConnectionID.NotFound", "InvalidVpcPeeringConnectionId.Malformed")
return is_boto3_error_code(["InvalidVpcPeeringConnectionID.NotFound", "InvalidVpcPeeringConnectionId.Malformed"])

Comment on lines 333 to 336
result = client.describe_vpc_peering_connections(
**params,
)
return result
Copy link
Contributor

@abikouo abikouo Sep 27, 2024

Choose a reason for hiding this comment

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

Suggested change
result = client.describe_vpc_peering_connections(
**params,
)
return result
paginator = client.get_paginator("describe_vpc_peering_connections")
return paginator.paginate(**params).build_full_result()["VpcPeeringConnections"]

The paginator exists for this API

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 4m 49s
✔️ build-ansible-collection SUCCESS in 10m 54s
✔️ ansible-test-splitter SUCCESS in 4m 23s
✔️ integration-amazon.aws-1 SUCCESS in 16m 08s
✔️ integration-amazon.aws-2 SUCCESS in 29m 05s
✔️ integration-amazon.aws-3 SUCCESS in 26m 02s
✔️ integration-amazon.aws-4 SUCCESS in 22m 52s
✔️ integration-amazon.aws-5 SUCCESS in 18m 29s
✔️ integration-amazon.aws-6 SUCCESS in 18m 38s
✔️ integration-amazon.aws-7 SUCCESS in 27m 05s
✔️ integration-amazon.aws-8 SUCCESS in 21m 12s
✔️ integration-amazon.aws-9 SUCCESS in 9m 52s
✔️ integration-amazon.aws-10 SUCCESS in 8m 21s
✔️ integration-amazon.aws-11 SUCCESS in 17m 14s
✔️ integration-amazon.aws-12 SUCCESS in 14m 35s
✔️ integration-amazon.aws-13 SUCCESS in 15m 48s
✔️ integration-amazon.aws-14 SUCCESS in 16m 06s
✔️ integration-amazon.aws-15 SUCCESS in 13m 46s
✔️ integration-amazon.aws-16 SUCCESS in 8m 46s
✔️ integration-amazon.aws-17 SUCCESS in 10m 55s
✔️ integration-amazon.aws-18 SUCCESS in 15m 38s
✔️ integration-amazon.aws-19 SUCCESS in 22m 26s
✔️ integration-amazon.aws-20 SUCCESS in 20m 40s
✔️ integration-amazon.aws-21 SUCCESS in 11m 28s
✔️ integration-amazon.aws-22 SUCCESS in 9m 13s
✔️ integration-community.aws-1 SUCCESS in 17m 02s
✔️ integration-community.aws-2 SUCCESS in 6m 42s
✔️ integration-community.aws-3 SUCCESS in 6m 40s
✔️ integration-community.aws-4 SUCCESS in 4m 59s
✔️ integration-community.aws-5 SUCCESS in 7m 03s
✔️ integration-community.aws-6 SUCCESS in 9m 29s
✔️ integration-community.aws-7 SUCCESS in 5m 38s
Skipped 15 jobs

Signed-off-by: Alina Buzachis <[email protected]>
@alinabuzachis alinabuzachis force-pushed the ec2_vpc_peer_module_utils branch from 4d7afb0 to d0f8e6b Compare October 3, 2024 14:41
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 3m 30s
✔️ build-ansible-collection SUCCESS in 11m 09s
✔️ ansible-test-splitter SUCCESS in 4m 34s
✔️ integration-amazon.aws-1 SUCCESS in 16m 00s
✔️ integration-amazon.aws-2 SUCCESS in 29m 28s
✔️ integration-amazon.aws-3 SUCCESS in 26m 29s
✔️ integration-amazon.aws-4 SUCCESS in 25m 39s
✔️ integration-amazon.aws-5 SUCCESS in 22m 47s
✔️ integration-amazon.aws-6 SUCCESS in 19m 10s
✔️ integration-amazon.aws-7 SUCCESS in 19m 50s
✔️ integration-amazon.aws-8 SUCCESS in 16m 49s
✔️ integration-amazon.aws-9 SUCCESS in 12m 43s
✔️ integration-amazon.aws-10 SUCCESS in 9m 26s
✔️ integration-amazon.aws-11 SUCCESS in 11m 58s
✔️ integration-amazon.aws-12 SUCCESS in 10m 34s
✔️ integration-amazon.aws-13 SUCCESS in 15m 52s
✔️ integration-amazon.aws-14 SUCCESS in 9m 56s
✔️ integration-amazon.aws-15 SUCCESS in 10m 43s
✔️ integration-amazon.aws-16 SUCCESS in 10m 09s
✔️ integration-amazon.aws-17 SUCCESS in 9m 20s
✔️ integration-amazon.aws-18 SUCCESS in 16m 24s
✔️ integration-amazon.aws-19 SUCCESS in 22m 58s
✔️ integration-amazon.aws-20 SUCCESS in 24m 18s
✔️ integration-amazon.aws-21 SUCCESS in 10m 58s
✔️ integration-amazon.aws-22 SUCCESS in 7m 33s
✔️ integration-community.aws-1 SUCCESS in 15m 57s
✔️ integration-community.aws-2 SUCCESS in 8m 38s
✔️ integration-community.aws-3 SUCCESS in 6m 43s
✔️ integration-community.aws-4 SUCCESS in 5m 24s
✔️ integration-community.aws-5 SUCCESS in 5m 26s
✔️ integration-community.aws-6 SUCCESS in 10m 11s
✔️ integration-community.aws-7 SUCCESS in 9m 54s
✔️ integration-community.aws-8 SUCCESS in 7m 38s
Skipped 14 jobs

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

Build failed (gate pipeline). For information on how to proceed, see
http://docs.openstack.org/infra/manual/developers.html#automated-testing

https://ansible.softwarefactory-project.io/zuul/buildset/65b4dd1629cb492dbbb7ba33225cfacf

✔️ ansible-galaxy-importer SUCCESS in 3m 15s
✔️ build-ansible-collection SUCCESS in 10m 56s
✔️ ansible-test-splitter SUCCESS in 4m 26s
✔️ integration-amazon.aws-1 SUCCESS in 15m 48s
✔️ integration-amazon.aws-2 SUCCESS in 23m 25s
✔️ integration-amazon.aws-3 SUCCESS in 34m 12s
✔️ integration-amazon.aws-4 SUCCESS in 23m 40s
✔️ integration-amazon.aws-5 SUCCESS in 14m 39s
✔️ integration-amazon.aws-6 SUCCESS in 15m 43s
✔️ integration-amazon.aws-7 SUCCESS in 20m 58s
✔️ integration-amazon.aws-8 SUCCESS in 15m 37s
✔️ integration-amazon.aws-9 SUCCESS in 13m 28s
✔️ integration-amazon.aws-10 SUCCESS in 10m 45s
✔️ integration-amazon.aws-11 SUCCESS in 12m 19s
✔️ integration-amazon.aws-12 SUCCESS in 10m 23s
✔️ integration-amazon.aws-13 SUCCESS in 14m 52s
✔️ integration-amazon.aws-14 SUCCESS in 16m 22s
✔️ integration-amazon.aws-15 SUCCESS in 13m 01s
✔️ integration-amazon.aws-16 SUCCESS in 7m 24s
✔️ integration-amazon.aws-17 SUCCESS in 10m 53s
✔️ integration-amazon.aws-18 SUCCESS in 15m 51s
✔️ integration-amazon.aws-19 SUCCESS in 24m 18s
✔️ integration-amazon.aws-20 SUCCESS in 23m 31s
✔️ integration-amazon.aws-21 SUCCESS in 12m 08s
✔️ integration-amazon.aws-22 SUCCESS in 7m 15s
✔️ integration-community.aws-1 SUCCESS in 14m 53s
✔️ integration-community.aws-2 SUCCESS in 8m 22s
✔️ integration-community.aws-3 SUCCESS in 6m 59s
✔️ integration-community.aws-4 SUCCESS in 8m 41s
✔️ integration-community.aws-5 SUCCESS in 7m 59s
✔️ integration-community.aws-6 SUCCESS in 6m 38s
✔️ integration-community.aws-7 SUCCESS in 12m 05s
integration-community.aws-8 RETRY_LIMIT in 1m 53s
Skipped 14 jobs

@alinabuzachis
Copy link
Collaborator Author

regate

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 00s
✔️ build-ansible-collection SUCCESS in 11m 00s
✔️ ansible-test-splitter SUCCESS in 4m 24s
✔️ integration-amazon.aws-1 SUCCESS in 17m 04s
✔️ integration-amazon.aws-2 SUCCESS in 24m 27s
✔️ integration-amazon.aws-3 SUCCESS in 25m 54s
✔️ integration-amazon.aws-4 SUCCESS in 23m 31s
✔️ integration-amazon.aws-5 SUCCESS in 19m 39s
✔️ integration-amazon.aws-6 SUCCESS in 17m 08s
✔️ integration-amazon.aws-7 SUCCESS in 22m 38s
✔️ integration-amazon.aws-8 SUCCESS in 22m 25s
✔️ integration-amazon.aws-9 SUCCESS in 10m 53s
✔️ integration-amazon.aws-10 SUCCESS in 10m 44s
✔️ integration-amazon.aws-11 SUCCESS in 13m 27s
✔️ integration-amazon.aws-12 SUCCESS in 10m 31s
✔️ integration-amazon.aws-13 SUCCESS in 16m 31s
✔️ integration-amazon.aws-14 SUCCESS in 9m 21s
✔️ integration-amazon.aws-15 SUCCESS in 13m 14s
✔️ integration-amazon.aws-16 SUCCESS in 8m 13s
✔️ integration-amazon.aws-17 SUCCESS in 9m 15s
✔️ integration-amazon.aws-18 SUCCESS in 15m 11s
✔️ integration-amazon.aws-19 SUCCESS in 21m 42s
✔️ integration-amazon.aws-20 SUCCESS in 22m 13s
✔️ integration-amazon.aws-21 SUCCESS in 10m 34s
✔️ integration-amazon.aws-22 SUCCESS in 7m 26s
✔️ integration-community.aws-1 SUCCESS in 17m 21s
✔️ integration-community.aws-2 SUCCESS in 6m 41s
✔️ integration-community.aws-3 SUCCESS in 7m 57s
✔️ integration-community.aws-4 SUCCESS in 5m 59s
✔️ integration-community.aws-5 SUCCESS in 4m 58s
✔️ integration-community.aws-6 SUCCESS in 7m 01s
✔️ integration-community.aws-7 SUCCESS in 11m 36s
✔️ integration-community.aws-8 SUCCESS in 5m 11s
Skipped 14 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 1acdca4 into ansible-collections:main Oct 4, 2024
37 checks passed
softwarefactory-project-zuul bot pushed a commit to ansible-collections/community.aws that referenced this pull request Oct 10, 2024
SUMMARY

Depends-On: ansible-collections/amazon.aws#2303
Refactor ec2_vpc_peer* modules
Once the module is migrated to amazon.aws I will deprecate result returned by the info module and rename the ec2_vpc_peer module (see #2154).

ISSUE TYPE


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

COMPONENT NAME

ec2_vpc_peer
ec2_vpc_peering_info
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis
alinabuzachis added a commit to alinabuzachis/amazon.aws that referenced this pull request Oct 16, 2024
SUMMARY

Depends-On: ansible-collections#2303
Refactor ec2_vpc_peer* modules
Once the module is migrated to amazon.aws I will deprecate result returned by the info module and rename the ec2_vpc_peer module (see ansible-collections#2154).

ISSUE TYPE

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

COMPONENT NAME

ec2_vpc_peer
ec2_vpc_peering_info
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@fcd780e
alinabuzachis added a commit to alinabuzachis/amazon.aws that referenced this pull request Oct 24, 2024
SUMMARY

Depends-On: ansible-collections#2303
Refactor ec2_vpc_peer* modules
Once the module is migrated to amazon.aws I will deprecate result returned by the info module and rename the ec2_vpc_peer module (see ansible-collections#2154).

ISSUE TYPE

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

COMPONENT NAME

ec2_vpc_peer
ec2_vpc_peering_info
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@fcd780e
alinabuzachis added a commit to alinabuzachis/amazon.aws that referenced this pull request Oct 24, 2024
SUMMARY

Depends-On: ansible-collections#2303
Refactor ec2_vpc_peer* modules
Once the module is migrated to amazon.aws I will deprecate result returned by the info module and rename the ec2_vpc_peer module (see ansible-collections#2154).

ISSUE TYPE

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

COMPONENT NAME

ec2_vpc_peer
ec2_vpc_peering_info
ADDITIONAL INFORMATION

Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
Reviewed-by: Alina Buzachis

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@fcd780e
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.

2 participants