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

New module - autoscaling_instance(_info) #2296

Conversation

tremble
Copy link
Contributor

@tremble tremble commented Sep 17, 2024

Depends-On: ansible/ansible-zuul-jobs#1885

SUMMARY

Looking to simplify autoscaling_group, add autoscaling_instance as a new module so we can deprecate support for it in autoscaling_group

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

autoscaling_instance

ADDITIONAL INFORMATION

@tremble tremble marked this pull request as draft September 17, 2024 11:16
Copy link

github-actions bot commented Sep 17, 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 failed.
https://ansible.softwarefactory-project.io/zuul/buildset/07ed617067204d0b95655c7776d1f7f6

✔️ ansible-galaxy-importer SUCCESS in 4m 33s
✔️ build-ansible-collection SUCCESS in 10m 48s
✔️ ansible-test-splitter SUCCESS in 4m 19s
integration-amazon.aws-1 FAILURE in 36m 05s
✔️ integration-amazon.aws-2 SUCCESS in 36m 29s
✔️ integration-amazon.aws-3 SUCCESS in 13m 49s
✔️ integration-amazon.aws-4 SUCCESS in 30m 23s
✔️ integration-amazon.aws-5 SUCCESS in 33m 01s
✔️ integration-amazon.aws-6 SUCCESS in 28m 11s
✔️ integration-amazon.aws-7 SUCCESS in 31m 48s
✔️ integration-amazon.aws-8 SUCCESS in 26m 46s
✔️ integration-amazon.aws-9 SUCCESS in 28m 57s
✔️ integration-amazon.aws-10 SUCCESS in 29m 00s
✔️ integration-amazon.aws-11 SUCCESS in 14m 24s
✔️ integration-amazon.aws-12 SUCCESS in 11m 59s
✔️ integration-amazon.aws-13 SUCCESS in 12m 00s
✔️ integration-amazon.aws-14 SUCCESS in 18m 55s
✔️ integration-amazon.aws-15 SUCCESS in 7m 32s
✔️ integration-amazon.aws-16 SUCCESS in 31m 00s
✔️ integration-amazon.aws-17 SUCCESS in 30m 43s
✔️ integration-amazon.aws-18 SUCCESS in 24m 20s
✔️ integration-amazon.aws-19 SUCCESS in 17m 53s
✔️ integration-amazon.aws-20 SUCCESS in 33m 08s
✔️ integration-amazon.aws-21 SUCCESS in 25m 20s
✔️ integration-amazon.aws-22 SUCCESS in 20m 35s
Skipped 22 jobs

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 4m 49s
✔️ build-ansible-collection SUCCESS in 10m 35s
✔️ ansible-test-splitter SUCCESS in 4m 22s
✔️ integration-amazon.aws-1 SUCCESS in 33m 50s
✔️ integration-amazon.aws-2 SUCCESS in 31m 31s
✔️ integration-amazon.aws-3 SUCCESS in 13m 19s
✔️ integration-amazon.aws-4 SUCCESS in 30m 31s
✔️ integration-amazon.aws-5 SUCCESS in 34m 44s
✔️ integration-amazon.aws-6 SUCCESS in 21m 34s
✔️ integration-amazon.aws-7 SUCCESS in 36m 25s
✔️ integration-amazon.aws-8 SUCCESS in 27m 07s
✔️ integration-amazon.aws-9 SUCCESS in 31m 04s
✔️ integration-amazon.aws-10 SUCCESS in 32m 53s
✔️ integration-amazon.aws-11 SUCCESS in 13m 24s
✔️ integration-amazon.aws-12 SUCCESS in 11m 25s
✔️ integration-amazon.aws-13 SUCCESS in 12m 35s
✔️ integration-amazon.aws-14 SUCCESS in 18m 35s
✔️ integration-amazon.aws-15 SUCCESS in 7m 55s
✔️ integration-amazon.aws-16 SUCCESS in 47m 01s
✔️ integration-amazon.aws-17 SUCCESS in 33m 49s
✔️ integration-amazon.aws-18 SUCCESS in 34m 33s
✔️ integration-amazon.aws-19 SUCCESS in 16m 27s
✔️ integration-amazon.aws-20 SUCCESS in 26m 58s
✔️ integration-amazon.aws-21 SUCCESS in 24m 09s
✔️ integration-amazon.aws-22 SUCCESS in 20m 51s
Skipped 22 jobs

Copy link
Contributor

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

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

@tremble tremble changed the title [WIP] new module - autoscaling_instance New module - autoscaling_instance(_info) Oct 7, 2024
@tremble tremble marked this pull request as ready for review October 7, 2024 15:12
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 3m 33s
✔️ build-ansible-collection SUCCESS in 10m 48s
✔️ ansible-test-splitter SUCCESS in 4m 24s
integration-amazon.aws-1 FAILURE in 32m 39s
✔️ integration-amazon.aws-2 SUCCESS in 37m 29s
✔️ integration-amazon.aws-3 SUCCESS in 20m 08s
✔️ integration-amazon.aws-4 SUCCESS in 32m 49s
✔️ integration-amazon.aws-5 SUCCESS in 34m 08s
✔️ integration-amazon.aws-6 SUCCESS in 32m 14s
✔️ integration-amazon.aws-7 SUCCESS in 40m 29s
✔️ integration-amazon.aws-8 SUCCESS in 40m 32s
✔️ integration-amazon.aws-9 SUCCESS in 26m 40s
✔️ integration-amazon.aws-10 SUCCESS in 34m 47s
✔️ integration-amazon.aws-11 SUCCESS in 39m 29s
✔️ integration-amazon.aws-12 SUCCESS in 27m 06s
✔️ integration-amazon.aws-13 SUCCESS in 15m 18s
✔️ integration-amazon.aws-14 SUCCESS in 17m 16s
✔️ integration-amazon.aws-15 SUCCESS in 32m 33s
✔️ integration-amazon.aws-16 SUCCESS in 28m 56s
✔️ integration-amazon.aws-17 SUCCESS in 45m 29s
✔️ integration-amazon.aws-18 SUCCESS in 34m 18s
✔️ integration-amazon.aws-19 SUCCESS in 24m 09s
✔️ integration-amazon.aws-20 SUCCESS in 34m 36s
✔️ integration-amazon.aws-21 SUCCESS in 31m 58s
✔️ integration-amazon.aws-22 SUCCESS in 23m 43s
integration-community.aws-1 FAILURE in 19m 23s
✔️ integration-community.aws-2 SUCCESS in 27m 31s
✔️ integration-community.aws-3 SUCCESS in 14m 20s
✔️ integration-community.aws-4 SUCCESS in 6m 59s
✔️ integration-community.aws-5 SUCCESS in 10m 05s
Skipped 17 jobs

Copy link
Contributor

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

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

softwarefactory-project-zuul bot pushed a commit that referenced this pull request Oct 10, 2024
SUMMARY
Having everything in waiters.py today means that every time we add a new waiter we trigger a lot of integration tests.  Adding this Factory gives us a basis to work upon for splitting the code up.  It's based upon the Factory in community.aws, but doesn't come with the assumption that we'll have the module/client available to us when we instantiate the factory.
While similar to the current code in waiters.py, this factory supports:

waiter definitions stored on a per-API basis
waiter definitions outside of amazon.aws

Because touching the existing waiters.py would trigger a mass of integration tests, this puts the factory into waiter.py instead of waiters.py.  Additionally, putting it in waiter.py also gives us a long term route to split the current waiters off and out of waiters.py without generating import loops.  (Putting it in waiters.py would mean that a per-API file would need to import waiters.py, and thus waiters.py couldn't import the new file to provide backwards compatibility with today's implementation)
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
plugin/module_utils/waiter.py
ADDITIONAL INFORMATION
See #2296 for an example of using this (module_utils._autoscaling.waiters)

Reviewed-by: Alina Buzachis
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 07s
✔️ build-ansible-collection SUCCESS in 11m 44s
✔️ ansible-test-splitter SUCCESS in 4m 17s
integration-amazon.aws-1 FAILURE in 24m 13s
✔️ integration-amazon.aws-2 SUCCESS in 40m 21s
✔️ integration-amazon.aws-3 SUCCESS in 18m 21s
✔️ integration-amazon.aws-4 SUCCESS in 35m 23s
✔️ integration-amazon.aws-5 SUCCESS in 31m 17s
✔️ integration-amazon.aws-6 SUCCESS in 31m 49s
✔️ integration-amazon.aws-7 SUCCESS in 30m 43s
✔️ integration-amazon.aws-8 SUCCESS in 52m 35s
✔️ integration-amazon.aws-9 SUCCESS in 30m 25s
✔️ integration-amazon.aws-10 SUCCESS in 36m 38s
✔️ integration-amazon.aws-11 SUCCESS in 39m 23s
✔️ integration-amazon.aws-12 SUCCESS in 32m 29s
✔️ integration-amazon.aws-13 SUCCESS in 17m 32s
✔️ integration-amazon.aws-14 SUCCESS in 28m 33s
✔️ integration-amazon.aws-15 SUCCESS in 35m 43s
✔️ integration-amazon.aws-16 SUCCESS in 31m 50s
✔️ integration-amazon.aws-17 SUCCESS in 59m 59s
✔️ integration-amazon.aws-18 SUCCESS in 36m 19s
✔️ integration-amazon.aws-19 SUCCESS in 29m 09s
✔️ integration-amazon.aws-20 SUCCESS in 31m 18s
✔️ integration-amazon.aws-21 SUCCESS in 31m 17s
✔️ integration-amazon.aws-22 SUCCESS in 23m 28s
✔️ integration-community.aws-1 SUCCESS in 28m 24s
✔️ integration-community.aws-2 SUCCESS in 27m 28s
✔️ integration-community.aws-3 SUCCESS in 17m 19s
✔️ integration-community.aws-4 SUCCESS in 9m 56s
✔️ integration-community.aws-5 SUCCESS in 7m 32s
Skipped 17 jobs

tremble added a commit to tremble/ansible-zuul-jobs that referenced this pull request Oct 11, 2024
Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 4m 54s
✔️ build-ansible-collection SUCCESS in 12m 34s
✔️ ansible-test-splitter SUCCESS in 5m 21s
integration-amazon.aws-1 FAILURE in 13m 00s
✔️ integration-community.aws-1 SUCCESS in 13m 19s
Skipped 42 jobs

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 3m 23s
✔️ build-ansible-collection SUCCESS in 11m 32s
✔️ ansible-test-splitter SUCCESS in 4m 28s
integration-amazon.aws-1 FAILURE in 13m 56s
✔️ integration-community.aws-1 SUCCESS in 13m 32s
Skipped 42 jobs

Copy link
Contributor

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

⚠️ ansible-galaxy-importer SKIPPED Skipped due to failed job build-ansible-collection
build-ansible-collection NODE_FAILURE Node request 200-0007623481 failed in 0s
ansible-test-splitter NODE_FAILURE Node request 200-0007623482 failed in 0s
⚠️ integration-amazon.aws-1 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-3 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-4 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-5 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-6 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-7 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-8 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-9 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-10 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-11 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-12 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-13 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-14 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-15 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-16 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-17 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-18 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-19 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-20 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-21 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-amazon.aws-22 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-1 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-2 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-3 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-4 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-5 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-6 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-7 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-8 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-9 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-10 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-11 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-12 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-13 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-14 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-15 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-16 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-17 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-18 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-19 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-20 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-21 SKIPPED Skipped due to failed job build-ansible-collection
⚠️ integration-community.aws-22 SKIPPED Skipped due to failed job build-ansible-collection

Copy link
Contributor

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

✔️ ansible-galaxy-importer SUCCESS in 5m 38s
✔️ build-ansible-collection SUCCESS in 10m 11s
✔️ ansible-test-splitter SUCCESS in 4m 16s
✔️ integration-amazon.aws-1 SUCCESS in 14m 50s
✔️ integration-community.aws-1 SUCCESS in 13m 41s
Skipped 42 jobs

@alinabuzachis
Copy link
Collaborator

Testing passes locally, but they have been temporarily disabled due to missing permissions that will be resolved once version 9.0 is released.

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

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

✔️ ansible-galaxy-importer SUCCESS in 4m 57s
✔️ build-ansible-collection SUCCESS in 10m 30s
✔️ ansible-test-splitter SUCCESS in 4m 03s
✔️ integration-amazon.aws-1 SUCCESS in 15m 21s
✔️ integration-community.aws-1 SUCCESS in 15m 02s
Skipped 42 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 1700d40 into ansible-collections:main Oct 25, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge the PR (SoftwareFactory) skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants