-
Notifications
You must be signed in to change notification settings - Fork 336
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
route53_health_check - Name tag lost on 2nd deploy #1188
Comments
Files identified in the description:
If these files are inaccurate, please update the |
ansibullbot
added
bug
This issue/PR relates to a bug
module
module
needs_triage
plugins
plugin (any type)
python3
labels
Oct 20, 2022
softwarefactory-project-zuul bot
pushed a commit
that referenced
this issue
Nov 29, 2022
…1253) route53_health_check: Fix "Name" tag key removal idempotentcy issue SUMMARY Depends-On: #1280 Fixes #1188 When using health_check_name as unique identifier (setting use_unique_names: True and providing a health_check_name) and health_check tags are set, Current logic for adding name to a health_check causes an issue when rerunning the create/update task. While ideally it should be idempotent, it removes the 'Name' tag (used for health_check_name) causing removal of health check name. ISSUE TYPE Bugfix Pull Request COMPONENT NAME route53_health_check ADDITIONAL INFORMATION To test, run the following sample playbook task twice Expected output: Health check name should not disapper (i.e. 'Name' tag should not get removed on rerun) --- - hosts: localhost gather_facts: False tasks: - name: Create a health-check amazon.aws.route53_health_check: health_check_name: my-test-hc use_unique_names: true fqdn: my-test-xyz.com type: HTTPS resource_path: / request_interval: 30 failure_threshold: 3 tags: Service: my-service Owner: my-test-xyz Lifecycle: dev Reviewed-by: Mark Chappell <None> Reviewed-by: GomathiselviS <None> Reviewed-by: Mandar Kulkarni <[email protected]> Reviewed-by: Mike Graves <[email protected]> Reviewed-by: Gonéri Le Bouder <[email protected]> Reviewed-by: Alina Buzachis <None>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
When updating a Route53 health check the
Name
tag is removed when usinghealth_check_name: my-health-check
Tag is initially added by
amazon.aws/plugins/modules/route53_health_check.py
Line 624 in f9751fa
Issue Type
Bug Report
Component Name
route53_health_check
Ansible Version
Collection Versions
Manually added https://github.com/ansible-collections/amazon.aws/blob/5.0.2/plugins/modules/route53_health_check.py to my local Ansible
AWS SDK versions
Configuration
$ ansible-config dump --only-changed
OS / Environment
macOS 11.6
Steps to Reproduce
Run the following playbook twice
Expected Results
Name
tag added during first run and never removedActual Results
First run: Health check created,
Name
tag addedSecond run: Health check marked as changed (expected noop [ok]),
Name
tag removed (not expected)Code of Conduct
The text was updated successfully, but these errors were encountered: