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

Improve state and config changes in ec2_instance #370

Merged

Conversation

jillr
Copy link
Collaborator

@jillr jillr commented May 19, 2021

Depends-On: ansible/ansible-zuul-jobs#915
Depends-On: #381

SUMMARY

This patch ensures that when changing state and/or supported parameters for an instance, changes are applied regardless of the starting or desired state of the instance.

Fixes: #380

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

ec2_instance

@jillr jillr changed the title Improve state and config changes in ec2_instance [WIP] Improve state and config changes in ec2_instance May 19, 2021
@jillr
Copy link
Collaborator Author

jillr commented May 19, 2021

WIP while we work out the zuul changes in the linked PR

@jillr
Copy link
Collaborator Author

jillr commented May 20, 2021

recheck

1 similar comment
@jillr
Copy link
Collaborator Author

jillr commented May 21, 2021

recheck

@ansibullbot
Copy link

@ansibullbot ansibullbot added WIP Work in progress bug This issue/PR relates to a bug integration tests/integration module module needs_triage plugins plugin (any type) tests tests labels May 21, 2021
@jillr
Copy link
Collaborator Author

jillr commented May 21, 2021

recheck

@jillr jillr changed the title [WIP] Improve state and config changes in ec2_instance Improve state and config changes in ec2_instance May 25, 2021
@jillr
Copy link
Collaborator Author

jillr commented May 25, 2021

recheck

@ansibullbot ansibullbot added community_review and removed WIP Work in progress labels May 25, 2021
@jillr jillr force-pushed the ec2_instance_state_handling branch from 84f221c to 9fece09 Compare May 25, 2021 22:40
@jillr
Copy link
Collaborator Author

jillr commented May 27, 2021

recheck

2 similar comments
@jillr
Copy link
Collaborator Author

jillr commented May 27, 2021

recheck

@goneri
Copy link
Member

goneri commented May 27, 2021

recheck

@jillr jillr force-pushed the ec2_instance_state_handling branch from 1ea0e13 to b55fd6c Compare June 1, 2021 21:32
jillr added 2 commits June 1, 2021 14:33
Fixes: community.aws/issues/16
This patch ensures that when changing state and/or supported parameters for
an instance, changes are applied regardless of the starting or desired state
of the instance.
@jillr jillr force-pushed the ec2_instance_state_handling branch from b55fd6c to 71cf248 Compare June 1, 2021 21:33
@goneri
Copy link
Member

goneri commented Jun 2, 2021

recheck

1 similar comment
@jillr
Copy link
Collaborator Author

jillr commented Jun 2, 2021

recheck

@jillr
Copy link
Collaborator Author

jillr commented Jun 2, 2021

The tests passed on my machine. ;) Different integration test failure each time the last two runs, and they look to be bog standard "sometimes ec2_instance times are a touch flaky". Will keep rechecking. Sanity tests are passing though!

@jillr
Copy link
Collaborator Author

jillr commented Jun 2, 2021

recheck

@jillr
Copy link
Collaborator Author

jillr commented Jun 2, 2021

ready_for_review

Copy link
Contributor

@briantist briantist left a comment

Choose a reason for hiding this comment

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

Hey @jillr thanks for this change! I was able to install the change locally but unfortunately my role has changed and I'm somewhat removed from the areas where this was being used, and I wasn't able to actually run it myself. I did look over the code though, and the tests you have look like they test the right thing! :)

I can't see the test results (are the tests in AWS collections run elsewhere?) but I assume they worked correctly. Thanks again!

@jillr
Copy link
Collaborator Author

jillr commented Jun 2, 2021

Thanks @briantist! Shippable was discontinuted so we're using Zuul now. You have to click the "details" on ansible/check, then follow the link to the integration tests, then hit the console tab.
https://dashboard.zuul.ansible.com/t/ansible/build/c26062e028ee49bdb092ff3840ce6090/console

@briantist
Copy link
Contributor

Ah! Thank you, I see them now.

@jillr jillr added the gate label Jun 4, 2021
@ansible-zuul ansible-zuul bot merged commit 1e18f10 into ansible-collections:main Jun 4, 2021
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ble-collections#370)

* Added 'worker_type' and 'glue_version' attributes to the module
* fix: fixed compare_glue_job_params to compare the new attributes
* Added changelog - fragments
* Minor docs tweaks
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Sep 18, 2023
…ble-collections#370)

* Added 'worker_type' and 'glue_version' attributes to the module
* fix: fixed compare_glue_job_params to compare the new attributes
* Added changelog - fragments
* Minor docs tweaks
abikouo pushed a commit to abikouo/amazon.aws that referenced this pull request Oct 24, 2023
…ble-collections#370)

* Added 'worker_type' and 'glue_version' attributes to the module
* fix: fixed compare_glue_job_params to compare the new attributes
* Added changelog - fragments
* Minor docs tweaks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug community_review integration tests/integration module module plugins plugin (any type) tests tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ec2_instance ignores some/all options depending on state option value and current actual state
5 participants