community.general/lib/ansible
msven a2b3120e85 ec2_asg: fix #28087 and #35993 (#36679)
Fixes #35993 - Changes to update_size in commit eb4cc31 made it so
the group dict passed into update_size was not modified. As a result,
the 'replace' call does not see an updated min_size like it previously
did and doesn't pause to wait for any new instances to spin up. Instead,
it moves straight into terminating old instances. Fix is to add batch_size
to min_size when calling wait_for_new_inst.

Fixes #28087 - Make replace_all_instances and replace_instances behave
exactly the same by setting replace_instances = current list of instances
when replace_all_instances used. Root cause of issue was that without lc_check
terminate_batch will terminate all instances passed to it and after updating
the asg size we were querying the asg again for the list of instances - so terminate batch
saw the list including new ones just spun up.

When creating new asg with replace_all_instances: yes and lc_check: false
the instances that are initially created are then subsequently replaced.
This change makes it so replace only occurs if the asg already existed.

Add integration tests for #28087 and #35993.
2018-03-05 11:47:31 -05:00
..
cli Fixes #12353 #20977 adds new option to galaxy cli to preserve scm meta (#34642) 2018-02-21 08:34:44 -05:00
compat Enable wildcard import pylint (#35786) 2018-02-06 15:17:49 -08:00
config adds fix for terminal plugins 2018-03-05 08:54:40 -05:00
errors Make AnsibleActionDone a private exception 2018-01-22 23:36:34 -08:00
executor Move _start_connection() to module_utils/connection and fix Popen() call (#36249) 2018-03-05 09:12:01 -05:00
galaxy Fixes #12353 #20977 adds new option to galaxy cli to preserve scm meta (#34642) 2018-02-21 08:34:44 -05:00
inventory protect against plugins using verify incorrectly 2018-02-23 15:11:01 -05:00
module_utils ios_static_route idempotence fix (#35912) 2018-03-05 09:28:37 -05:00
modules ec2_asg: fix #28087 and #35993 (#36679) 2018-03-05 11:47:31 -05:00
parsing Only template each hostvars var on-demand (fixes #33259) 2018-02-15 10:09:04 -05:00
playbook Fixes #12353 #20977 adds new option to galaxy cli to preserve scm meta (#34642) 2018-02-21 08:34:44 -05:00
plugins ios_static_route idempotence fix (#35912) 2018-03-05 09:28:37 -05:00
template Revert "remove query/q (#36315)" 2018-02-21 10:37:51 -08:00
utils Include Digital Ocean Token Alias (#36810) 2018-03-01 09:56:53 +05:30
vars vars.clean: remove unused method inject_facts (#34838) 2018-02-15 07:43:44 -08:00
__init__.py
constants.py Move module_set_locale and module_lang back to global 2018-01-22 18:38:15 -08:00
release.py Fix version in lib/ansible/release.py 2018-02-09 04:47:31 -08:00