Skip to content

Formally start the ec2 deprecation process - #424

Merged
ansible-zuul[bot] merged 1 commit into
ansible-collections:mainfrom
tremble:deprecate/ec2
Aug 5, 2021
Merged

ansible-zuul[bot] merged 1 commit into
ansible-collections:mainfrom
tremble:deprecate/ec2

Conversation

@tremble

@tremble tremble commented Jul 30, 2021 •

Copy link
Copy Markdown
Contributor
SUMMARY

The ec2 module is based upon the deprecated boto (not boto3/botocore) SDK and most functionality has been replaced by the ec2_instance module.

Formally start the deprecation process and give it 2 major releases.

For practical purposes the ec2 module has a number of limitations (things like not supporting all regions) and we're still getting bugs filed against it for quirky behaviour that's fixed in ec2_instance. By formally starting the deprecation process we can move most folks over to ec2_instance where possible and avoid trying to support 2 modules at the same time.

The major missing feature with the ec2_instance module is spot instances. Support for spot instances is underway in #407

Should spot instance support not be available by 3.0.0 we can always extend the deprecation period.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

ec2

ADDITIONAL INFORMATION

@ansibullbot

Copy link
Copy Markdown

@ansibullbot ansibullbot added community_review feature This issue/PR relates to a feature request module module needs_triage plugins plugin (any type) labels Jul 30, 2021
@tremble
tremble requested a review from jillr July 30, 2021 09:03
@ansibullbot ansibullbot added the tests tests label Jul 30, 2021
@jillr

jillr commented Jul 30, 2021

Copy link
Copy Markdown
Contributor

This PR makes me so happy 😁

@jillr jillr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Everywhere we say "in favor of ec2_instance" we should say "ec2_instance and ec2_spot_instance", since that's been the sticking point

@jillr

jillr commented Jul 30, 2021

Copy link
Copy Markdown
Contributor

recheck

@tremble

tremble commented Jul 31, 2021

Copy link
Copy Markdown
Contributor Author

Everywhere we say "in favor of ec2_instance" we should say "ec2_instance and ec2_spot_instance", since that's been the sticking point

The reason I didn't mention ec2_spot_instance in the changes themselves was that IMO it's worth flagging the module as "deprecated" even if ec2_spot_instance isn't ready in time for 2.0.0. We've had folks using it for "normal" ec2 instances and hitting bugs / limitations resulting in issues, IMO getting them to move to ec2_instance brings more value than delaying for spot instance support.

Hence the Should spot instance support not be available by 3.0.0 we can always extend the deprecation period. entry in the PR description.

@tremble

tremble commented Aug 2, 2021

Copy link
Copy Markdown
Contributor Author

recheck

1 similar comment
@tremble

tremble commented Aug 5, 2021

Copy link
Copy Markdown
Contributor Author

recheck

@tremble

tremble commented Aug 5, 2021

Copy link
Copy Markdown
Contributor Author

From IRC

<@jillr> I think we can merge 424, if spot instance doesn't go in 2.0 it will be in 2.1 fairly shortly thereafter

@tremble tremble added the gate label Aug 5, 2021

@ansible-zuul ansible-zuul Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@tremble

tremble commented Aug 5, 2021

Copy link
Copy Markdown
Contributor Author

recheck

@ansible-zuul
ansible-zuul Bot merged commit af03411 into ansible-collections:main Aug 5, 2021
@tremble
tremble deleted the deprecate/ec2 branch November 26, 2021 12:42
alinabuzachis pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 16, 2022
…ble-collections#424)

* Fix state=get on route53 module

This bug was introduced when refactoring from boto to boto3 library. This happens because the method "get_hosted_zone" only returns the DelegationSet when the DNS zone is external. Therefore this breaks when trying to get internal records.

The solution is to search for getting DNS records of type ''NS'' with the same name as the hosted zone.

* Update changelogs/fragments/406-route53-state-get.yml

Co-authored-by: Mark Chappell <mchappel@redhat.com>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@331ada1
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
…ble-collections#424)

* Fix state=get on route53 module

This bug was introduced when refactoring from boto to boto3 library. This happens because the method "get_hosted_zone" only returns the DelegationSet when the DNS zone is external. Therefore this breaks when trying to get internal records.

The solution is to search for getting DNS records of type ''NS'' with the same name as the hosted zone.

* Update changelogs/fragments/406-route53-state-get.yml

Co-authored-by: Mark Chappell <mchappel@redhat.com>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@331ada1
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
…ble-collections#424)

* Fix state=get on route53 module

This bug was introduced when refactoring from boto to boto3 library. This happens because the method "get_hosted_zone" only returns the DelegationSet when the DNS zone is external. Therefore this breaks when trying to get internal records.

The solution is to search for getting DNS records of type ''NS'' with the same name as the hosted zone.

* Update changelogs/fragments/406-route53-state-get.yml

Co-authored-by: Mark Chappell <mchappel@redhat.com>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@331ada1
goneri pushed a commit to alinabuzachis/amazon.aws that referenced this pull request Sep 21, 2022
…ble-collections#424)

* Fix state=get on route53 module

This bug was introduced when refactoring from boto to boto3 library. This happens because the method "get_hosted_zone" only returns the DelegationSet when the DNS zone is external. Therefore this breaks when trying to get internal records.

The solution is to search for getting DNS records of type ''NS'' with the same name as the hosted zone.

* Update changelogs/fragments/406-route53-state-get.yml

Co-authored-by: Mark Chappell <mchappel@redhat.com>

This commit was initially merged in https://github.com/ansible-collections/community.aws
See: ansible-collections/community.aws@331ada1
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ble-collections#424)

* Fix state=get on route53 module

This bug was introduced when refactoring from boto to boto3 library. This happens because the method "get_hosted_zone" only returns the DelegationSet when the DNS zone is external. Therefore this breaks when trying to get internal records.

The solution is to search for getting DNS records of type ''NS'' with the same name as the hosted zone.

* Update changelogs/fragments/406-route53-state-get.yml

Co-authored-by: Mark Chappell <mchappel@redhat.com>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ble-collections#424)

* Fix state=get on route53 module

This bug was introduced when refactoring from boto to boto3 library. This happens because the method "get_hosted_zone" only returns the DelegationSet when the DNS zone is external. Therefore this breaks when trying to get internal records.

The solution is to search for getting DNS records of type ''NS'' with the same name as the hosted zone.

* Update changelogs/fragments/406-route53-state-get.yml

Co-authored-by: Mark Chappell <mchappel@redhat.com>
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
…ble-collections#424)

* Fix state=get on route53 module

This bug was introduced when refactoring from boto to boto3 library. This happens because the method "get_hosted_zone" only returns the DelegationSet when the DNS zone is external. Therefore this breaks when trying to get internal records.

The solution is to search for getting DNS records of type ''NS'' with the same name as the hosted zone.

* Update changelogs/fragments/406-route53-state-get.yml

Co-authored-by: Mark Chappell <mchappel@redhat.com>
centosinfra-prod-github-app Bot pushed a commit that referenced this pull request Nov 18, 2026
Bumps the uv-deps group with 2 updates: tox-uv-bare and tox-ansible.
Updates tox-uv-bare from 1.36.0 to 1.37.7

Release notes
Sourced from tox-uv-bare's releases.

1.37.7

Bug fixes


With uv_resolution and dependency_groups both set, deps lines are now kept as written when combined with the groups, so a -r/-c file, an option or a comment no longer crashes tox with an invalid requirement error.
Environments with an older dependency cache are recreated once on upgrade (#424) by @​qodelicious and @​gaborbernat.


package = uv and package = uv-editable now install the project from package_root (setupdir) instead of the tox root (#425) by @​qodelicious and @​gaborbernat.


🐍 PyPI: tox-uv
PyPI: tox-uv-bare
📜 Full Changelog
1.37.6

Bug fixes

A package dependency that names a uv workspace member is now matched against tool.uv.sources by its normalized name, so Demo_Foo and demo-foo count as the same member instead of being sent to the index (#417) by @​qodelicious and @​gaborbernat.
Point {env_site_packages_dir} at lib/python3.13t/site-packages for free-threaded environments, instead of a lib/python3.13/site-packages directory that does not exist (#416) by @​qodelicious and @​gaborbernat.
Preserve debug and free-threaded flags when selecting Python for a tox environment. Changing either flag recreates the environment, so py313d and py313td do not reuse an interpreter with different build options (#420) by @​gaborbernat.
Recreate the environment when system_site_packages changes. uv venv --system-site-packages only applies while the environment is being created, so flipping the setting left the old pyvenv.cfg in place and the change had no effect (#418) by @​abhishekcpp007 and @​gaborbernat.

New Contributors

@​qodelicious made their first contribution in tox-dev/tox-uv#417
@​abhishekcpp007 made their first contribution in tox-dev/tox-uv#418

🐍 PyPI: tox-uv
PyPI: tox-uv-bare
📜 Full Changelog
1.37.5
🐍 PyPI: tox-uv
PyPI: tox-uv-bare
📜 Full Changelog
1.37.4

Bug fixes


... (truncated)


Changelog
Sourced from tox-uv-bare's changelog.

1.37.7 (2026-11-07)

Fixed


With uv_resolution and dependency_groups both set, deps lines are now kept as written when combined with the
groups, so a -r/-c file, an option or a comment no longer crashes tox with an invalid requirement error.
Environments with an older dependency cache are recreated once on upgrade
(#424) by @​qodelicious and
@​gaborbernat.


package = uv and package = uv-editable now install the project from package_root (setupdir) instead of the tox
root (#425) by @​qodelicious and
@​gaborbernat.



1.37.6 (2026-11-06)

Fixed

A package dependency that names a uv workspace member is now matched against tool.uv.sources by its normalized name,
so Demo_Foo and demo-foo count as the same member instead of being sent to the index
(#417) by @​qodelicious and
@​gaborbernat.
Point {env_site_packages_dir} at lib/python3.13t/site-packages for free-threaded environments, instead of a
lib/python3.13/site-packages directory that does not exist (#416) by
@​qodelicious and @​gaborbernat.
Preserve debug and free-threaded flags when selecting Python for a tox environment. Changing either flag recreates the
environment, so py313d and py313td do not reuse an interpreter with different build options
(#420) by @​gaborbernat.
Recreate the environment when system_site_packages changes. uv venv --system-site-packages only applies while the
environment is being created, so flipping the setting left the old pyvenv.cfg in place and the change had no effect
(#418) by @​abhishekcpp007 and
@​gaborbernat.


1.37.5 (2026-11-04)

1.37.4 (2026-11-03)



... (truncated)


Commits

efb3999 release 1.37.7
0af7c3b 🐛 fix(runner): preserve deps syntax with dependency groups (#424)
0d3a231 🐛 fix(package): install uv packages from package_root (#425)
d513c2f 🔧 build(lint): adopt simplint 0.7.1 (#427)
37a229e 🧹 ci: pin shared workflows to 6.7.2 (#426)
c5624d6 🧹 ci: pin shared workflows to 6.7.1 (#423)
8244581 👷 ci: run every hook under the cooldown (#422)
3c3714f release 1.37.6
f8e900d ⚡ ci: install only the changelog hook when preparing (#421)
9530aeb 🐛 fix(venv): honor debug Python variants (#420)
Additional commits viewable in compare view



Updates tox-ansible from 26.9.0 to 26.11.0

Release notes
Sourced from tox-ansible's releases.

v26.11.0
What's Changed

fix(security): update dependencies [SECURITY] by @​renovate[bot] in ansible/tox-ansible#610
fix(security): clear Dependabot uv.lock advisories and CodeQL smoke checkout by @​sudhirverma in ansible/tox-ansible#611

Full Changelog: ansible/tox-ansible@v26.10.0...v26.11.0
v26.10.0
What's Changed

feat(impact_file): add scope-file interface for content-plugin-finder ImpactReport by @​shvenkat-rh in ansible/tox-ansible#607

Full Changelog: ansible/tox-ansible@v26.9.0...v26.10.0



Commits

df46f6e fix(security): clear Dependabot uv.lock advisories and CodeQL smoke checkout ...
58fd690 fix(security): update dependencies [SECURITY] (#610)
1805ac6 feat(impact_file): add scope-file interface for content-plugin-finder ImpactR...
See full diff in compare view



Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

@dependabot rebase will rebase this PR
@dependabot recreate will recreate this PR, overwriting any edits that have been made to it
@dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
@dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
@dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
@dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
@dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
@dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Reviewed-by: Alina Buzachis
Reviewed-by: Rahmanim Benny <brahmani@redhat.com>
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 module module plugins plugin (any type) tests tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants