-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
azure_rm_loadbalancer doesn't append rules, it overwrites #58069
Comments
Files identified in the description: If these files are inaccurate, please update the |
@rnsc, just so you are aware we have a dedicated Working Group for azure. |
@rnsc Hi. I'm not sure it's a bug or by designed. In my understanding, the playbook file is a description for the status. So the overwrite behavior makes sense for such list field. |
@myronfanqiu Hello, thanks for your reply. Do we want to change this to a feature request then? Asking for an update/overwrite mechanic in the module? If I take the "azure_rm_securitygroup" module as an example: https://docs.ansible.com/ansible/latest/modules/azure_rm_securitygroup_module.html#azure-rm-securitygroup-module |
@rnsc Hi. Thanks for this suggestion. Of course, we can change this to a feature request. Honestly, the update behavior for such list filed across all azure modules are not totally consistent. From my perspective, there are two reasons for such situation. First, the behavior of each azure service are not same. Some rest API will do the incremental update and some will do the replace update for such list field. Thus, there isn't a good guild line for implementing such field in ansible. The other reason is the author of different modules are different. 😃 |
I entirely understand the frustration with Azure REST APIs.. this is why I use ansible ;) I also believe there at least needs to be a flag to set to append/overwrite. Many of us are adding LB rules as products and services come online. We need to be able to add these rules without going out and pulling all existing rules, frontend ip configs, and probes and adding them to the task. |
@mybayern1974 Please take a look this issue when you're free! Thank you very much! |
@mybayern1974 @haiyuazhang Please help! |
@haiyuazhang @gavinfish Please look at this feature request when you're available. Thank you very much! |
Working in! |
@rnsc Thank you very much for your interest in Ansible. This module is no longer maintained in this repository and has been migrated. Since this change is specific to AZURE module and not for entire repo. Please re-submit this issue in the https://github.com/ansible-collections/azure and closed this. Thank you very much! |
@Fred-sun thanks, created: ansible-collections/azure#112 |
SUMMARY
I want to update the "load balancing rules" of a basic Azure Load Balancer.
In Ansible 2.8, that module was updated for idempotency and it can be used to updated an existing LB object.
However, it doesn't append the new rules to existing rules in a LB, it just overwrites all the rules.
I was expecting the module to just "append" rules to the current set.
ISSUE TYPE
COMPONENT NAME
azure_rm_loadbalancer
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Running on localhost.
STEPS TO REPRODUCE
Create a basic load balancer on Azure with a Frontend config and BackendPool.
Add a Load balancing rule manually with a health probe on port 80.
Execute Ansible task to add a new rule.
EXPECTED RESULTS
I'm expecting just my rule to be added, unless I specifically say I want to purge everything.
ACTUAL RESULTS
The rules and probes that are not part of the current Ansible task are deleted.
The text was updated successfully, but these errors were encountered: