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

Refactor ec2_nat_gateway*, ec2_vpc_igw*, ec2_snapshot*, ec2_spot_instance* #2099

Merged

Conversation

abikouo
Copy link
Contributor

@abikouo abikouo commented May 16, 2024

SUMMARY

This pull request contains a set of changes:

module_utils/ec2.py: add a set of AWS API wrapped into retry and AnsibleEC2ErrorHandler, some of them will be used later to refactor others ec2_* modules
Refactorec2_vol*, ec2_nat_gateway*, ec2_vpc_igw*, ec2_snapshot*, ec2_spot_instance* modules: add type hint, the main() function should be limited to call either ensure_[absent|present] functions or any others function to describe resources.

The changes in this PR have been extracted from #2076

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME
  • ec2_snapshot
  • ec2_snapshot_info
  • ec2_spot_instance
  • ec2_spot_instance_info
  • ec2_vol
  • ec2_vol_info
  • ec2_vpc_igw
  • ec2_vpc_igw_info
  • ec2_vpc_nat_gateway
  • ec2_vpc_nat_gateway_info
ADDITIONAL INFORMATION

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 32s
✔️ build-ansible-collection SUCCESS in 14m 49s
✔️ ansible-test-splitter SUCCESS in 5m 39s
✔️ integration-amazon.aws-1 SUCCESS in 25m 33s
✔️ integration-amazon.aws-2 SUCCESS in 30m 38s
✔️ integration-amazon.aws-3 SUCCESS in 39m 56s
✔️ integration-amazon.aws-4 SUCCESS in 29m 25s
integration-amazon.aws-5 RETRY_LIMIT in 1m 43s
✔️ integration-amazon.aws-6 SUCCESS in 51m 02s
✔️ integration-amazon.aws-7 SUCCESS in 22m 21s
✔️ integration-amazon.aws-8 SUCCESS in 45m 15s
✔️ integration-amazon.aws-9 SUCCESS in 45m 01s
✔️ integration-amazon.aws-10 SUCCESS in 35m 50s
✔️ integration-amazon.aws-11 SUCCESS in 38m 28s
✔️ integration-amazon.aws-12 SUCCESS in 14m 15s
✔️ integration-amazon.aws-13 SUCCESS in 25m 37s
✔️ integration-amazon.aws-14 SUCCESS in 24m 46s
✔️ integration-amazon.aws-15 SUCCESS in 36m 36s
✔️ integration-amazon.aws-16 SUCCESS in 38m 31s
✔️ integration-amazon.aws-17 SUCCESS in 35m 06s
✔️ integration-amazon.aws-18 SUCCESS in 34m 01s
✔️ integration-amazon.aws-19 SUCCESS in 38m 50s
✔️ integration-amazon.aws-20 SUCCESS in 39m 39s
✔️ integration-amazon.aws-21 SUCCESS in 26m 53s
✔️ integration-amazon.aws-22 SUCCESS in 30m 32s
✔️ integration-community.aws-1 SUCCESS in 29m 06s
✔️ integration-community.aws-2 SUCCESS in 22m 29s
✔️ integration-community.aws-3 SUCCESS in 6m 23s
✔️ integration-community.aws-4 SUCCESS in 7m 23s
✔️ integration-community.aws-5 SUCCESS in 7m 34s
✔️ integration-community.aws-6 SUCCESS in 5m 56s
✔️ integration-community.aws-7 SUCCESS in 11m 00s
✔️ integration-community.aws-8 SUCCESS in 6m 33s
✔️ integration-community.aws-9 SUCCESS in 5m 51s
✔️ integration-community.aws-10 SUCCESS in 25m 20s
✔️ integration-community.aws-11 SUCCESS in 7m 28s
Skipped 11 jobs

@abikouo
Copy link
Contributor Author

abikouo commented May 17, 2024

recheck

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 6m 18s
✔️ build-ansible-collection SUCCESS in 15m 45s
✔️ ansible-test-splitter SUCCESS in 6m 09s
✔️ integration-amazon.aws-1 SUCCESS in 23m 33s
✔️ integration-amazon.aws-2 SUCCESS in 31m 10s
✔️ integration-amazon.aws-3 SUCCESS in 42m 17s
✔️ integration-amazon.aws-4 SUCCESS in 27m 35s
✔️ integration-amazon.aws-5 SUCCESS in 50m 25s
✔️ integration-amazon.aws-6 SUCCESS in 54m 14s
✔️ integration-amazon.aws-7 SUCCESS in 22m 14s
✔️ integration-amazon.aws-8 SUCCESS in 46m 35s
✔️ integration-amazon.aws-9 SUCCESS in 47m 15s
✔️ integration-amazon.aws-10 SUCCESS in 37m 26s
integration-amazon.aws-11 RETRY_LIMIT in 1m 41s
integration-amazon.aws-12 RETRY_LIMIT in 1m 43s
✔️ integration-amazon.aws-13 SUCCESS in 29m 58s
✔️ integration-amazon.aws-14 SUCCESS in 29m 13s
✔️ integration-amazon.aws-15 SUCCESS in 40m 41s
✔️ integration-amazon.aws-16 SUCCESS in 40m 08s
✔️ integration-amazon.aws-17 SUCCESS in 36m 40s
integration-amazon.aws-18 RETRY_LIMIT in 1m 41s
✔️ integration-amazon.aws-19 SUCCESS in 43m 49s
✔️ integration-amazon.aws-20 SUCCESS in 36m 53s
✔️ integration-amazon.aws-21 SUCCESS in 28m 08s
✔️ integration-amazon.aws-22 SUCCESS in 30m 01s
✔️ integration-community.aws-1 SUCCESS in 29m 00s
✔️ integration-community.aws-2 SUCCESS in 20m 19s
✔️ integration-community.aws-3 SUCCESS in 10m 09s
✔️ integration-community.aws-4 SUCCESS in 9m 36s
✔️ integration-community.aws-5 SUCCESS in 8m 34s
✔️ integration-community.aws-6 SUCCESS in 7m 31s
✔️ integration-community.aws-7 SUCCESS in 10m 44s
✔️ integration-community.aws-8 SUCCESS in 10m 35s
✔️ integration-community.aws-9 SUCCESS in 12m 14s
✔️ integration-community.aws-10 SUCCESS in 30m 56s
✔️ integration-community.aws-11 SUCCESS in 12m 11s
Skipped 11 jobs

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 56s
✔️ build-ansible-collection SUCCESS in 16m 27s
✔️ ansible-test-splitter SUCCESS in 5m 39s
✔️ integration-amazon.aws-1 SUCCESS in 23m 47s
✔️ integration-amazon.aws-2 SUCCESS in 28m 55s
✔️ integration-amazon.aws-3 SUCCESS in 35m 03s
✔️ integration-amazon.aws-4 SUCCESS in 26m 18s
✔️ integration-amazon.aws-5 SUCCESS in 33m 30s
✔️ integration-amazon.aws-6 SUCCESS in 49m 35s
✔️ integration-amazon.aws-7 SUCCESS in 18m 39s
✔️ integration-amazon.aws-8 SUCCESS in 41m 14s
✔️ integration-amazon.aws-9 SUCCESS in 41m 21s
✔️ integration-amazon.aws-10 SUCCESS in 36m 11s
✔️ integration-amazon.aws-11 SUCCESS in 41m 02s
✔️ integration-amazon.aws-12 SUCCESS in 13m 42s
✔️ integration-amazon.aws-13 SUCCESS in 24m 21s
✔️ integration-amazon.aws-14 SUCCESS in 26m 38s
✔️ integration-amazon.aws-15 SUCCESS in 34m 00s
✔️ integration-amazon.aws-16 SUCCESS in 39m 32s
✔️ integration-amazon.aws-17 SUCCESS in 37m 08s
✔️ integration-amazon.aws-18 SUCCESS in 39m 02s
✔️ integration-amazon.aws-19 SUCCESS in 43m 01s
✔️ integration-amazon.aws-20 SUCCESS in 27m 35s
✔️ integration-amazon.aws-21 SUCCESS in 30m 22s
✔️ integration-amazon.aws-22 SUCCESS in 27m 42s
✔️ integration-community.aws-1 SUCCESS in 26m 56s
✔️ integration-community.aws-2 SUCCESS in 17m 00s
✔️ integration-community.aws-3 SUCCESS in 8m 02s
✔️ integration-community.aws-4 SUCCESS in 9m 14s
✔️ integration-community.aws-5 SUCCESS in 11m 27s
✔️ integration-community.aws-6 SUCCESS in 10m 50s
✔️ integration-community.aws-7 SUCCESS in 10m 27s
✔️ integration-community.aws-8 SUCCESS in 6m 18s
integration-community.aws-9 RETRY_LIMIT in 1m 43s
✔️ integration-community.aws-10 SUCCESS in 27m 05s
integration-community.aws-11 RETRY_LIMIT in 1m 43s
Skipped 11 jobs

@abikouo abikouo changed the title Refactor ec2_vol*, ec2_nat_gateway*, ec2_vpc_igw*, ec2_snapshot*, ec2_spot_instance* Refactor ec2_nat_gateway*, ec2_vpc_igw*, ec2_snapshot*, ec2_spot_instance* May 17, 2024
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 6m 21s
✔️ build-ansible-collection SUCCESS in 16m 46s
✔️ ansible-test-splitter SUCCESS in 7m 43s
✔️ integration-amazon.aws-1 SUCCESS in 23m 01s
✔️ integration-amazon.aws-2 SUCCESS in 31m 12s
✔️ integration-amazon.aws-3 SUCCESS in 30m 21s
✔️ integration-amazon.aws-4 SUCCESS in 27m 33s
✔️ integration-amazon.aws-5 SUCCESS in 38m 27s
✔️ integration-amazon.aws-6 SUCCESS in 41m 42s
✔️ integration-amazon.aws-7 SUCCESS in 20m 35s
✔️ integration-amazon.aws-8 SUCCESS in 39m 03s
✔️ integration-amazon.aws-9 SUCCESS in 35m 15s
✔️ integration-amazon.aws-10 SUCCESS in 34m 06s
✔️ integration-amazon.aws-11 SUCCESS in 36m 09s
✔️ integration-amazon.aws-12 SUCCESS in 11m 16s
✔️ integration-amazon.aws-13 SUCCESS in 21m 18s
✔️ integration-amazon.aws-14 SUCCESS in 24m 13s
✔️ integration-amazon.aws-15 SUCCESS in 37m 45s
✔️ integration-amazon.aws-16 SUCCESS in 38m 24s
✔️ integration-amazon.aws-17 SUCCESS in 37m 31s
✔️ integration-amazon.aws-18 SUCCESS in 38m 05s
✔️ integration-amazon.aws-19 SUCCESS in 42m 26s
✔️ integration-amazon.aws-20 SUCCESS in 30m 36s
✔️ integration-amazon.aws-21 SUCCESS in 26m 51s
✔️ integration-amazon.aws-22 SUCCESS in 29m 31s
✔️ integration-community.aws-1 SUCCESS in 27m 33s
✔️ integration-community.aws-2 SUCCESS in 16m 58s
✔️ integration-community.aws-3 SUCCESS in 9m 31s
✔️ integration-community.aws-4 SUCCESS in 11m 41s
✔️ integration-community.aws-5 SUCCESS in 7m 48s
✔️ integration-community.aws-6 SUCCESS in 10m 46s
✔️ integration-community.aws-7 SUCCESS in 11m 48s
✔️ integration-community.aws-8 SUCCESS in 10m 51s
✔️ integration-community.aws-9 SUCCESS in 6m 54s
✔️ integration-community.aws-10 SUCCESS in 28m 55s
✔️ integration-community.aws-11 SUCCESS in 9m 20s
Skipped 11 jobs

@abikouo abikouo mentioned this pull request May 21, 2024
Copy link
Contributor

@hakbailey hakbailey left a comment

Choose a reason for hiding this comment

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

Just a couple of questions but otherwise this looks good!

plugins/module_utils/ec2.py Show resolved Hide resolved
plugins/module_utils/ec2.py Outdated Show resolved Hide resolved
@abikouo abikouo requested a review from hakbailey May 27, 2024 14:28
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 33s
✔️ build-ansible-collection SUCCESS in 16m 24s
✔️ ansible-test-splitter SUCCESS in 7m 00s
✔️ integration-amazon.aws-1 SUCCESS in 22m 31s
integration-amazon.aws-2 FAILURE in 19m 33s
✔️ integration-amazon.aws-3 SUCCESS in 29m 52s
✔️ integration-amazon.aws-4 SUCCESS in 26m 28s
integration-amazon.aws-5 FAILURE in 20m 29s
✔️ integration-amazon.aws-6 SUCCESS in 41m 44s
✔️ integration-amazon.aws-7 SUCCESS in 20m 24s
✔️ integration-amazon.aws-8 SUCCESS in 36m 35s
✔️ integration-amazon.aws-9 SUCCESS in 42m 13s
integration-amazon.aws-10 FAILURE in 50m 13s
integration-amazon.aws-11 FAILURE in 28m 24s
✔️ integration-amazon.aws-12 SUCCESS in 12m 06s
✔️ integration-amazon.aws-13 SUCCESS in 23m 03s
✔️ integration-amazon.aws-14 SUCCESS in 30m 43s
✔️ integration-amazon.aws-15 SUCCESS in 40m 50s
✔️ integration-amazon.aws-16 SUCCESS in 45m 35s
integration-amazon.aws-17 FAILURE in 36m 13s
integration-amazon.aws-18 FAILURE in 32m 12s
✔️ integration-amazon.aws-19 SUCCESS in 41m 11s
integration-amazon.aws-20 FAILURE in 32m 01s
✔️ integration-amazon.aws-21 SUCCESS in 27m 05s
integration-amazon.aws-22 FAILURE in 29m 59s
✔️ integration-community.aws-1 SUCCESS in 47m 17s
integration-community.aws-2 FAILURE in 7m 15s
integration-community.aws-3 FAILURE in 10m 53s
integration-community.aws-4 FAILURE in 12m 30s
integration-community.aws-5 RETRY_LIMIT in 1m 39s
✔️ integration-community.aws-6 SUCCESS in 10m 54s
✔️ integration-community.aws-7 SUCCESS in 9m 48s
✔️ integration-community.aws-8 SUCCESS in 11m 46s
✔️ integration-community.aws-9 SUCCESS in 7m 26s
✔️ integration-community.aws-10 SUCCESS in 10m 21s
integration-community.aws-11 FAILURE in 10m 37s
✔️ integration-community.aws-12 SUCCESS in 8m 38s
Skipped 10 jobs

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 39s
✔️ build-ansible-collection SUCCESS in 15m 54s
✔️ ansible-test-splitter SUCCESS in 7m 11s
✔️ integration-amazon.aws-1 SUCCESS in 21m 51s
✔️ integration-amazon.aws-2 SUCCESS in 32m 48s
✔️ integration-amazon.aws-3 SUCCESS in 26m 39s
✔️ integration-amazon.aws-4 SUCCESS in 26m 35s
✔️ integration-amazon.aws-5 SUCCESS in 39m 25s
✔️ integration-amazon.aws-6 SUCCESS in 42m 39s
✔️ integration-amazon.aws-7 SUCCESS in 21m 04s
✔️ integration-amazon.aws-8 SUCCESS in 42m 20s
✔️ integration-amazon.aws-9 SUCCESS in 38m 36s
✔️ integration-amazon.aws-10 SUCCESS in 37m 23s
✔️ integration-amazon.aws-11 SUCCESS in 35m 51s
✔️ integration-amazon.aws-12 SUCCESS in 11m 37s
✔️ integration-amazon.aws-13 SUCCESS in 32m 58s
✔️ integration-amazon.aws-14 SUCCESS in 26m 19s
✔️ integration-amazon.aws-15 SUCCESS in 37m 38s
✔️ integration-amazon.aws-16 SUCCESS in 47m 34s
✔️ integration-amazon.aws-17 SUCCESS in 41m 12s
✔️ integration-amazon.aws-18 SUCCESS in 41m 50s
integration-amazon.aws-19 RETRY_LIMIT in 6m 54s
✔️ integration-amazon.aws-20 SUCCESS in 24m 57s
✔️ integration-amazon.aws-21 SUCCESS in 28m 35s
✔️ integration-amazon.aws-22 SUCCESS in 28m 07s
✔️ integration-community.aws-1 SUCCESS in 29m 59s
✔️ integration-community.aws-2 SUCCESS in 16m 10s
✔️ integration-community.aws-3 SUCCESS in 6m 45s
✔️ integration-community.aws-4 SUCCESS in 8m 21s
✔️ integration-community.aws-5 SUCCESS in 8m 04s
✔️ integration-community.aws-6 SUCCESS in 6m 57s
✔️ integration-community.aws-7 SUCCESS in 14m 09s
✔️ integration-community.aws-8 SUCCESS in 9m 44s
✔️ integration-community.aws-9 SUCCESS in 7m 27s
✔️ integration-community.aws-10 SUCCESS in 28m 13s
✔️ integration-community.aws-11 SUCCESS in 7m 45s
Skipped 11 jobs

@abikouo
Copy link
Contributor Author

abikouo commented May 28, 2024

recheck

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 22s
✔️ build-ansible-collection SUCCESS in 17m 35s
✔️ ansible-test-splitter SUCCESS in 6m 35s
✔️ integration-amazon.aws-1 SUCCESS in 22m 54s
✔️ integration-amazon.aws-2 SUCCESS in 32m 53s
✔️ integration-amazon.aws-3 SUCCESS in 29m 09s
✔️ integration-amazon.aws-4 SUCCESS in 29m 42s
✔️ integration-amazon.aws-5 SUCCESS in 39m 04s
✔️ integration-amazon.aws-6 SUCCESS in 38m 46s
✔️ integration-amazon.aws-7 SUCCESS in 20m 26s
✔️ integration-amazon.aws-8 SUCCESS in 35m 09s
✔️ integration-amazon.aws-9 SUCCESS in 37m 56s
✔️ integration-amazon.aws-10 SUCCESS in 40m 01s
✔️ integration-amazon.aws-11 SUCCESS in 38m 20s
✔️ integration-amazon.aws-12 SUCCESS in 11m 57s
✔️ integration-amazon.aws-13 SUCCESS in 25m 07s
✔️ integration-amazon.aws-14 SUCCESS in 26m 21s
✔️ integration-amazon.aws-15 SUCCESS in 33m 33s
✔️ integration-amazon.aws-16 SUCCESS in 39m 39s
✔️ integration-amazon.aws-17 SUCCESS in 37m 00s
✔️ integration-amazon.aws-18 SUCCESS in 32m 11s
✔️ integration-amazon.aws-19 SUCCESS in 42m 53s
✔️ integration-amazon.aws-20 SUCCESS in 27m 14s
✔️ integration-amazon.aws-21 SUCCESS in 23m 46s
✔️ integration-amazon.aws-22 SUCCESS in 27m 24s
✔️ integration-community.aws-1 SUCCESS in 56m 05s
✔️ integration-community.aws-2 SUCCESS in 25m 54s
✔️ integration-community.aws-3 SUCCESS in 16m 49s
✔️ integration-community.aws-4 SUCCESS in 6m 20s
✔️ integration-community.aws-5 SUCCESS in 7m 25s
✔️ integration-community.aws-6 SUCCESS in 7m 26s
✔️ integration-community.aws-7 SUCCESS in 5m 48s
✔️ integration-community.aws-8 SUCCESS in 9m 56s
✔️ integration-community.aws-9 SUCCESS in 6m 06s
✔️ integration-community.aws-10 SUCCESS in 6m 07s
✔️ integration-community.aws-11 SUCCESS in 28m 48s
✔️ integration-community.aws-12 SUCCESS in 8m 16s
Skipped 10 jobs

Copy link
Contributor

@hakbailey hakbailey left a comment

Choose a reason for hiding this comment

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

Just a few more small comments.

plugins/module_utils/ec2.py Outdated Show resolved Hide resolved
plugins/module_utils/ec2.py Outdated Show resolved Hide resolved
plugins/module_utils/ec2.py Outdated Show resolved Hide resolved
plugins/module_utils/ec2.py Outdated Show resolved Hide resolved
plugins/module_utils/ec2.py Show resolved Hide resolved
plugins/module_utils/ec2.py Outdated Show resolved Hide resolved
@abikouo abikouo requested a review from hakbailey June 11, 2024 15:48
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 07s
✔️ build-ansible-collection SUCCESS in 18m 38s
✔️ ansible-test-splitter SUCCESS in 6m 12s
integration-amazon.aws-1 FAILURE in 5m 21s
integration-amazon.aws-2 FAILURE in 5m 25s
integration-amazon.aws-3 FAILURE in 6m 51s
integration-amazon.aws-4 FAILURE in 3m 54s
integration-amazon.aws-5 FAILURE in 5m 10s
integration-amazon.aws-6 FAILURE in 5m 43s
integration-amazon.aws-7 FAILURE in 5m 15s
integration-amazon.aws-8 FAILURE in 3m 44s
integration-amazon.aws-9 FAILURE in 5m 11s
integration-amazon.aws-10 FAILURE in 4m 35s
integration-amazon.aws-11 FAILURE in 5m 20s
integration-amazon.aws-12 FAILURE in 7m 05s
integration-amazon.aws-13 FAILURE in 5m 05s
integration-amazon.aws-14 FAILURE in 5m 28s
integration-amazon.aws-15 FAILURE in 7m 32s
integration-amazon.aws-16 FAILURE in 3m 51s
integration-amazon.aws-17 FAILURE in 5m 29s
integration-amazon.aws-18 FAILURE in 4m 27s
integration-amazon.aws-19 FAILURE in 4m 18s
integration-amazon.aws-20 FAILURE in 10m 21s
integration-amazon.aws-21 FAILURE in 5m 03s
integration-amazon.aws-22 FAILURE in 4m 46s
integration-community.aws-1 FAILURE in 6m 27s
integration-community.aws-2 FAILURE in 5m 26s
integration-community.aws-3 FAILURE in 5m 10s
integration-community.aws-4 FAILURE in 9m 27s
integration-community.aws-5 FAILURE in 5m 24s
integration-community.aws-6 FAILURE in 4m 23s
integration-community.aws-7 FAILURE in 3m 50s
integration-community.aws-8 FAILURE in 6m 13s
integration-community.aws-9 FAILURE in 8m 34s
integration-community.aws-10 FAILURE in 5m 34s
integration-community.aws-11 FAILURE in 5m 35s
Skipped 11 jobs

@abikouo
Copy link
Contributor Author

abikouo commented Jun 12, 2024

recheck

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 3m 18s
✔️ build-ansible-collection SUCCESS in 12m 52s
✔️ ansible-test-splitter SUCCESS in 5m 36s
integration-amazon.aws-1 FAILURE in 4m 49s
integration-amazon.aws-2 FAILURE in 3m 51s
integration-amazon.aws-3 FAILURE in 5m 12s
integration-amazon.aws-4 FAILURE in 8m 45s
integration-amazon.aws-5 FAILURE in 5m 14s
integration-amazon.aws-6 FAILURE in 5m 22s
integration-amazon.aws-7 FAILURE in 5m 05s
integration-amazon.aws-8 FAILURE in 5m 01s
integration-amazon.aws-9 FAILURE in 5m 13s
integration-amazon.aws-10 FAILURE in 6m 47s
integration-amazon.aws-11 FAILURE in 3m 41s
integration-amazon.aws-12 FAILURE in 4m 12s
integration-amazon.aws-13 FAILURE in 3m 55s
integration-amazon.aws-14 FAILURE in 4m 16s
integration-amazon.aws-15 FAILURE in 3m 49s
integration-amazon.aws-16 FAILURE in 3m 45s
integration-amazon.aws-17 FAILURE in 3m 59s
integration-amazon.aws-18 FAILURE in 5m 39s
integration-amazon.aws-19 FAILURE in 5m 20s
integration-amazon.aws-20 FAILURE in 5m 01s
integration-amazon.aws-21 FAILURE in 5m 07s
integration-amazon.aws-22 FAILURE in 5m 11s
integration-community.aws-1 FAILURE in 5m 08s
integration-community.aws-2 FAILURE in 7m 28s
integration-community.aws-3 FAILURE in 4m 56s
integration-community.aws-4 FAILURE in 5m 16s
integration-community.aws-5 FAILURE in 4m 02s
integration-community.aws-6 FAILURE in 5m 20s
integration-community.aws-7 FAILURE in 4m 27s
integration-community.aws-8 FAILURE in 5m 10s
integration-community.aws-9 FAILURE in 5m 10s
integration-community.aws-10 FAILURE in 4m 43s
integration-community.aws-11 FAILURE in 5m 35s
Skipped 11 jobs

@abikouo
Copy link
Contributor Author

abikouo commented Jun 12, 2024

recheck

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 4m 11s
✔️ build-ansible-collection SUCCESS in 13m 26s
✔️ ansible-test-splitter SUCCESS in 5m 10s
✔️ integration-amazon.aws-1 SUCCESS in 21m 29s
✔️ integration-amazon.aws-2 SUCCESS in 34m 21s
✔️ integration-amazon.aws-3 SUCCESS in 28m 19s
✔️ integration-amazon.aws-4 SUCCESS in 25m 56s
✔️ integration-amazon.aws-5 SUCCESS in 42m 44s
✔️ integration-amazon.aws-6 SUCCESS in 43m 09s
✔️ integration-amazon.aws-7 SUCCESS in 16m 19s
✔️ integration-amazon.aws-8 SUCCESS in 37m 03s
✔️ integration-amazon.aws-9 SUCCESS in 37m 24s
✔️ integration-amazon.aws-10 SUCCESS in 33m 06s
✔️ integration-amazon.aws-11 SUCCESS in 35m 04s
✔️ integration-amazon.aws-12 SUCCESS in 14m 11s
✔️ integration-amazon.aws-13 SUCCESS in 21m 13s
✔️ integration-amazon.aws-14 SUCCESS in 27m 36s
✔️ integration-amazon.aws-15 SUCCESS in 35m 40s
✔️ integration-amazon.aws-16 SUCCESS in 41m 51s
✔️ integration-amazon.aws-17 SUCCESS in 33m 34s
✔️ integration-amazon.aws-18 SUCCESS in 32m 48s
✔️ integration-amazon.aws-19 SUCCESS in 27m 53s
integration-amazon.aws-20 FAILURE in 24m 18s
✔️ integration-amazon.aws-21 SUCCESS in 26m 29s
✔️ integration-amazon.aws-22 SUCCESS in 28m 10s
✔️ integration-community.aws-1 SUCCESS in 26m 08s
✔️ integration-community.aws-2 SUCCESS in 17m 49s
✔️ integration-community.aws-3 SUCCESS in 7m 18s
✔️ integration-community.aws-4 SUCCESS in 8m 00s
✔️ integration-community.aws-5 SUCCESS in 7m 56s
✔️ integration-community.aws-6 SUCCESS in 6m 13s
✔️ integration-community.aws-7 SUCCESS in 12m 24s
✔️ integration-community.aws-8 SUCCESS in 5m 18s
✔️ integration-community.aws-9 SUCCESS in 6m 10s
✔️ integration-community.aws-10 SUCCESS in 26m 25s
✔️ integration-community.aws-11 SUCCESS in 9m 10s
Skipped 11 jobs

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 4m 23s
✔️ build-ansible-collection SUCCESS in 12m 38s
✔️ ansible-test-splitter SUCCESS in 5m 10s
✔️ integration-amazon.aws-1 SUCCESS in 22m 12s
✔️ integration-amazon.aws-2 SUCCESS in 35m 32s
✔️ integration-amazon.aws-3 SUCCESS in 27m 56s
✔️ integration-amazon.aws-4 SUCCESS in 28m 37s
✔️ integration-amazon.aws-5 SUCCESS in 51m 38s
✔️ integration-amazon.aws-6 SUCCESS in 42m 53s
✔️ integration-amazon.aws-7 SUCCESS in 18m 55s
✔️ integration-amazon.aws-8 SUCCESS in 34m 12s
✔️ integration-amazon.aws-9 SUCCESS in 41m 06s
✔️ integration-amazon.aws-10 SUCCESS in 37m 58s
✔️ integration-amazon.aws-11 SUCCESS in 31m 15s
✔️ integration-amazon.aws-12 SUCCESS in 13m 10s
✔️ integration-amazon.aws-13 SUCCESS in 22m 47s
✔️ integration-amazon.aws-14 SUCCESS in 27m 27s
✔️ integration-amazon.aws-15 SUCCESS in 37m 12s
✔️ integration-amazon.aws-16 SUCCESS in 43m 33s
✔️ integration-amazon.aws-17 SUCCESS in 31m 30s
✔️ integration-amazon.aws-18 SUCCESS in 31m 48s
✔️ integration-amazon.aws-19 SUCCESS in 37m 47s
✔️ integration-amazon.aws-20 SUCCESS in 28m 26s
✔️ integration-amazon.aws-21 SUCCESS in 25m 59s
✔️ integration-amazon.aws-22 SUCCESS in 28m 39s
✔️ integration-community.aws-1 SUCCESS in 25m 30s
✔️ integration-community.aws-2 SUCCESS in 16m 39s
✔️ integration-community.aws-3 SUCCESS in 7m 11s
✔️ integration-community.aws-4 SUCCESS in 9m 51s
✔️ integration-community.aws-5 SUCCESS in 6m 57s
✔️ integration-community.aws-6 SUCCESS in 8m 17s
✔️ integration-community.aws-7 SUCCESS in 9m 28s
✔️ integration-community.aws-8 SUCCESS in 6m 13s
✔️ integration-community.aws-9 SUCCESS in 5m 01s
✔️ integration-community.aws-10 SUCCESS in 29m 02s
✔️ integration-community.aws-11 SUCCESS in 8m 15s
Skipped 11 jobs

@abikouo abikouo added the mergeit Merge the PR (SoftwareFactory) label Jun 18, 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/0ab7a10945804508afa7b81960ff3632

✔️ ansible-galaxy-importer SUCCESS in 3m 54s
✔️ build-ansible-collection SUCCESS in 13m 31s
✔️ ansible-test-splitter SUCCESS in 5m 21s
✔️ integration-amazon.aws-1 SUCCESS in 20m 58s
✔️ integration-amazon.aws-2 SUCCESS in 32m 45s
✔️ integration-amazon.aws-3 SUCCESS in 21m 35s
✔️ integration-amazon.aws-4 SUCCESS in 25m 22s
integration-amazon.aws-5 TIMED_OUT in 1h 00m 39s
✔️ integration-amazon.aws-6 SUCCESS in 41m 39s
✔️ integration-amazon.aws-7 SUCCESS in 16m 46s
✔️ integration-amazon.aws-8 SUCCESS in 35m 09s
✔️ integration-amazon.aws-9 SUCCESS in 36m 51s
✔️ integration-amazon.aws-10 SUCCESS in 38m 01s
✔️ integration-amazon.aws-11 SUCCESS in 36m 32s
✔️ integration-amazon.aws-12 SUCCESS in 10m 21s
✔️ integration-amazon.aws-13 SUCCESS in 22m 08s
✔️ integration-amazon.aws-14 SUCCESS in 23m 41s
✔️ integration-amazon.aws-15 SUCCESS in 37m 04s
✔️ integration-amazon.aws-16 SUCCESS in 39m 10s
✔️ integration-amazon.aws-17 SUCCESS in 31m 46s
✔️ integration-amazon.aws-18 SUCCESS in 34m 15s
✔️ integration-amazon.aws-19 SUCCESS in 39m 17s
✔️ integration-amazon.aws-20 SUCCESS in 23m 47s
✔️ integration-amazon.aws-21 SUCCESS in 24m 16s
✔️ integration-amazon.aws-22 SUCCESS in 26m 01s
✔️ integration-community.aws-1 SUCCESS in 27m 11s
✔️ integration-community.aws-2 SUCCESS in 17m 30s
✔️ integration-community.aws-3 SUCCESS in 7m 04s
✔️ integration-community.aws-4 SUCCESS in 6m 18s
✔️ integration-community.aws-5 SUCCESS in 7m 50s
✔️ integration-community.aws-6 SUCCESS in 5m 26s
✔️ integration-community.aws-7 SUCCESS in 10m 55s
✔️ integration-community.aws-8 SUCCESS in 8m 18s
✔️ integration-community.aws-9 SUCCESS in 6m 12s
✔️ integration-community.aws-10 SUCCESS in 26m 49s
✔️ integration-community.aws-11 SUCCESS in 6m 19s
Skipped 11 jobs

@abikouo
Copy link
Contributor Author

abikouo commented Jun 18, 2024

regate

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/19f8890f096b4fa1819c94bcca8d7100

✔️ ansible-galaxy-importer SUCCESS in 4m 10s
✔️ build-ansible-collection SUCCESS in 12m 44s
✔️ ansible-test-splitter SUCCESS in 5m 14s
✔️ integration-amazon.aws-1 SUCCESS in 23m 27s
✔️ integration-amazon.aws-2 SUCCESS in 35m 28s
✔️ integration-amazon.aws-3 SUCCESS in 33m 40s
✔️ integration-amazon.aws-4 SUCCESS in 29m 16s
integration-amazon.aws-5 TIMED_OUT in 1h 00m 35s
✔️ integration-amazon.aws-6 SUCCESS in 45m 56s
✔️ integration-amazon.aws-7 SUCCESS in 23m 47s
✔️ integration-amazon.aws-8 SUCCESS in 31m 38s
✔️ integration-amazon.aws-9 SUCCESS in 37m 40s
✔️ integration-amazon.aws-10 SUCCESS in 32m 12s
✔️ integration-amazon.aws-11 SUCCESS in 33m 56s
✔️ integration-amazon.aws-12 SUCCESS in 10m 58s
✔️ integration-amazon.aws-13 SUCCESS in 25m 11s
✔️ integration-amazon.aws-14 SUCCESS in 24m 43s
✔️ integration-amazon.aws-15 SUCCESS in 34m 05s
✔️ integration-amazon.aws-16 SUCCESS in 40m 50s
✔️ integration-amazon.aws-17 SUCCESS in 32m 46s
✔️ integration-amazon.aws-18 SUCCESS in 35m 21s
✔️ integration-amazon.aws-19 SUCCESS in 35m 19s
✔️ integration-amazon.aws-20 SUCCESS in 23m 10s
✔️ integration-amazon.aws-21 SUCCESS in 23m 57s
✔️ integration-amazon.aws-22 SUCCESS in 26m 11s
✔️ integration-community.aws-1 SUCCESS in 26m 32s
✔️ integration-community.aws-2 SUCCESS in 18m 36s
✔️ integration-community.aws-3 SUCCESS in 6m 55s
✔️ integration-community.aws-4 SUCCESS in 11m 35s
✔️ integration-community.aws-5 SUCCESS in 6m 57s
✔️ integration-community.aws-6 SUCCESS in 5m 35s
✔️ integration-community.aws-7 SUCCESS in 9m 08s
✔️ integration-community.aws-8 SUCCESS in 5m 17s
✔️ integration-community.aws-9 SUCCESS in 5m 55s
integration-community.aws-10 RETRY_LIMIT in 2m 00s
✔️ integration-community.aws-11 SUCCESS in 7m 44s
Skipped 11 jobs

@abikouo abikouo removed the mergeit Merge the PR (SoftwareFactory) label Jun 18, 2024
@abikouo
Copy link
Contributor Author

abikouo commented Jun 18, 2024

recheck

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 4m 20s
✔️ build-ansible-collection SUCCESS in 12m 49s
✔️ ansible-test-splitter SUCCESS in 5m 04s
✔️ integration-amazon.aws-1 SUCCESS in 19m 19s
✔️ integration-amazon.aws-2 SUCCESS in 33m 19s
✔️ integration-amazon.aws-3 SUCCESS in 30m 12s
✔️ integration-amazon.aws-4 SUCCESS in 26m 39s
✔️ integration-amazon.aws-5 SUCCESS in 43m 02s
✔️ integration-amazon.aws-6 SUCCESS in 46m 15s
✔️ integration-amazon.aws-7 SUCCESS in 20m 02s
✔️ integration-amazon.aws-8 SUCCESS in 33m 57s
✔️ integration-amazon.aws-9 SUCCESS in 32m 46s
✔️ integration-amazon.aws-10 SUCCESS in 38m 14s
✔️ integration-amazon.aws-11 SUCCESS in 35m 02s
✔️ integration-amazon.aws-12 SUCCESS in 12m 56s
✔️ integration-amazon.aws-13 SUCCESS in 28m 13s
✔️ integration-amazon.aws-14 SUCCESS in 24m 45s
✔️ integration-amazon.aws-15 SUCCESS in 43m 24s
✔️ integration-amazon.aws-16 SUCCESS in 43m 44s
✔️ integration-amazon.aws-17 SUCCESS in 34m 07s
✔️ integration-amazon.aws-18 SUCCESS in 34m 24s
✔️ integration-amazon.aws-19 SUCCESS in 34m 50s
✔️ integration-amazon.aws-20 SUCCESS in 27m 26s
✔️ integration-amazon.aws-21 SUCCESS in 25m 08s
✔️ integration-amazon.aws-22 SUCCESS in 26m 51s
✔️ integration-community.aws-1 SUCCESS in 28m 02s
✔️ integration-community.aws-2 SUCCESS in 15m 39s
✔️ integration-community.aws-3 SUCCESS in 6m 02s
✔️ integration-community.aws-4 SUCCESS in 6m 23s
✔️ integration-community.aws-5 SUCCESS in 7m 35s
✔️ integration-community.aws-6 SUCCESS in 6m 34s
✔️ integration-community.aws-7 SUCCESS in 15m 48s
✔️ integration-community.aws-8 SUCCESS in 6m 41s
✔️ integration-community.aws-9 SUCCESS in 5m 41s
✔️ integration-community.aws-10 SUCCESS in 26m 23s
✔️ integration-community.aws-11 SUCCESS in 8m 31s
Skipped 11 jobs

@abikouo abikouo added the mergeit Merge the PR (SoftwareFactory) label Jun 18, 2024
@abikouo
Copy link
Contributor Author

abikouo commented Jun 18, 2024

regate

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/c46fd0899b6340c0aeaf553d10b319b8

✔️ ansible-galaxy-importer SUCCESS in 4m 24s
✔️ build-ansible-collection SUCCESS in 13m 17s
✔️ ansible-test-splitter SUCCESS in 5m 23s
✔️ integration-amazon.aws-1 SUCCESS in 19m 50s
✔️ integration-amazon.aws-2 SUCCESS in 31m 13s
integration-amazon.aws-3 RETRY_LIMIT in 7m 39s
✔️ integration-amazon.aws-4 SUCCESS in 23m 46s
✔️ integration-amazon.aws-5 SUCCESS in 38m 54s
✔️ integration-amazon.aws-6 SUCCESS in 41m 15s
✔️ integration-amazon.aws-7 SUCCESS in 18m 21s
✔️ integration-amazon.aws-8 SUCCESS in 36m 13s
✔️ integration-amazon.aws-9 SUCCESS in 37m 33s
✔️ integration-amazon.aws-10 SUCCESS in 36m 24s
✔️ integration-amazon.aws-11 SUCCESS in 39m 18s
✔️ integration-amazon.aws-12 SUCCESS in 11m 20s
✔️ integration-amazon.aws-13 SUCCESS in 21m 17s
✔️ integration-amazon.aws-14 SUCCESS in 25m 54s
✔️ integration-amazon.aws-15 SUCCESS in 38m 01s
✔️ integration-amazon.aws-16 SUCCESS in 41m 11s
✔️ integration-amazon.aws-17 SUCCESS in 33m 08s
✔️ integration-amazon.aws-18 SUCCESS in 31m 33s
✔️ integration-amazon.aws-19 SUCCESS in 32m 06s
✔️ integration-amazon.aws-20 SUCCESS in 22m 40s
✔️ integration-amazon.aws-21 SUCCESS in 25m 57s
✔️ integration-amazon.aws-22 SUCCESS in 26m 04s
✔️ integration-community.aws-1 SUCCESS in 26m 51s
✔️ integration-community.aws-2 SUCCESS in 15m 59s
✔️ integration-community.aws-3 SUCCESS in 6m 11s
✔️ integration-community.aws-4 SUCCESS in 8m 12s
✔️ integration-community.aws-5 SUCCESS in 7m 29s
✔️ integration-community.aws-6 SUCCESS in 6m 38s
✔️ integration-community.aws-7 SUCCESS in 9m 55s
✔️ integration-community.aws-8 SUCCESS in 7m 30s
✔️ integration-community.aws-9 SUCCESS in 6m 04s
integration-community.aws-10 RETRY_LIMIT in 5m 14s
✔️ integration-community.aws-11 SUCCESS in 8m 29s
Skipped 11 jobs

@abikouo
Copy link
Contributor Author

abikouo commented Jun 18, 2024

regate

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 3m 27s
✔️ build-ansible-collection SUCCESS in 12m 21s
✔️ ansible-test-splitter SUCCESS in 5m 10s
✔️ integration-amazon.aws-1 SUCCESS in 22m 19s
✔️ integration-amazon.aws-2 SUCCESS in 30m 07s
✔️ integration-amazon.aws-3 SUCCESS in 24m 23s
✔️ integration-amazon.aws-4 SUCCESS in 28m 57s
✔️ integration-amazon.aws-5 SUCCESS in 38m 28s
✔️ integration-amazon.aws-6 SUCCESS in 43m 43s
✔️ integration-amazon.aws-7 SUCCESS in 17m 24s
✔️ integration-amazon.aws-8 SUCCESS in 39m 09s
✔️ integration-amazon.aws-9 SUCCESS in 37m 22s
✔️ integration-amazon.aws-10 SUCCESS in 36m 12s
✔️ integration-amazon.aws-11 SUCCESS in 37m 27s
✔️ integration-amazon.aws-12 SUCCESS in 12m 20s
✔️ integration-amazon.aws-13 SUCCESS in 22m 14s
✔️ integration-amazon.aws-14 SUCCESS in 22m 28s
✔️ integration-amazon.aws-15 SUCCESS in 39m 12s
✔️ integration-amazon.aws-16 SUCCESS in 38m 33s
✔️ integration-amazon.aws-17 SUCCESS in 31m 23s
✔️ integration-amazon.aws-18 SUCCESS in 29m 47s
✔️ integration-amazon.aws-19 SUCCESS in 29m 23s
✔️ integration-amazon.aws-20 SUCCESS in 26m 26s
✔️ integration-amazon.aws-21 SUCCESS in 26m 57s
✔️ integration-amazon.aws-22 SUCCESS in 27m 31s
✔️ integration-community.aws-1 SUCCESS in 23m 53s
✔️ integration-community.aws-2 SUCCESS in 20m 09s
✔️ integration-community.aws-3 SUCCESS in 6m 49s
✔️ integration-community.aws-4 SUCCESS in 7m 00s
✔️ integration-community.aws-5 SUCCESS in 9m 21s
✔️ integration-community.aws-6 SUCCESS in 5m 17s
✔️ integration-community.aws-7 SUCCESS in 9m 38s
✔️ integration-community.aws-8 SUCCESS in 6m 04s
✔️ integration-community.aws-9 SUCCESS in 6m 36s
✔️ integration-community.aws-10 SUCCESS in 28m 14s
✔️ integration-community.aws-11 SUCCESS in 6m 47s
Skipped 11 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 2643289 into ansible-collections:main Jun 18, 2024
38 of 39 checks passed
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Jun 26, 2024
…ance* (ansible-collections#2099)

SUMMARY

This pull request contains a set of changes:
module_utils/ec2.py: add a set of AWS API wrapped into retry and AnsibleEC2ErrorHandler, some of them will be used later to refactor others ec2_* modules
Refactorec2_vol*, ec2_nat_gateway*, ec2_vpc_igw*, ec2_snapshot*, ec2_spot_instance* modules: add type hint, the main() function should be limited to call either ensure_[absent|present] functions or any others function to describe resources.

The changes in this PR have been extracted from ansible-collections#2076

ISSUE TYPE


Feature Pull Request

COMPONENT NAME


ec2_snapshot
ec2_snapshot_info
ec2_spot_instance
ec2_spot_instance_info
ec2_vol
ec2_vol_info
ec2_vpc_igw
ec2_vpc_igw_info
ec2_vpc_nat_gateway
ec2_vpc_nat_gateway_info

ADDITIONAL INFORMATION

Reviewed-by: Helen Bailey <[email protected]>
Reviewed-by: Bikouo Aubin
Reviewed-by: GomathiselviS
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