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

[Bug]: lbmonitor (netscaler.adc 2.1.0) #324

Closed
pkodzis opened this issue Dec 19, 2023 · 3 comments
Closed

[Bug]: lbmonitor (netscaler.adc 2.1.0) #324

pkodzis opened this issue Dec 19, 2023 · 3 comments
Assignees
Labels

Comments

@pkodzis
Copy link

pkodzis commented Dec 19, 2023

Summary

ansible keeps modifing lbmonitor while there have been zero changes in playbook

Issue Type

Bug Report

Component Name

lbmonitor

Python Version

$ python --version # or python3 --version

3.9

Ansible Version

$ ansible --version

2.15.6

Ansible Configuration

$ ansible-config dump --only-changed

netscaler.adc Collection Version

$ ansible-galaxy collection list netscaler.adc

2.1.0

Target NetScaler Version

> show ns version

Equivalent NetScaler CLI Command

Steps to Reproduce

            - interval: 60
              state: present
              type: HTTP
              deviation: 0

Expected Results

created at the first playbook run. then all the next playbook runs zero change.

Actual Results

 {
-    "deviation": "0",
-    "interval": 1,
+    "deviation": 0.0,
+    "interval": 60,
[...]

Additioinal Notes

No response

@sumanth-lingappa
Copy link
Collaborator

sumanth-lingappa commented Dec 20, 2023

@pkodzis, can you please help me with

  1. the complete ansible task you are using
  2. output of the ansible playbook with -vvv option

@pkodzis
Copy link
Author

pkodzis commented Dec 20, 2023

@sumanth-lingappa , this is example task that gives this behavior:

    - name: setup lbmonitor
      delegate_to: localhost
      netscaler.adc.lbmonitor:
        nsip: "{{ provider.nsip }}"
        nitro_auth_token: "{{ provider.nitro_auth_token | default(omit) }}"
        nitro_protocol: "{{ provider.nitro_protocol | default(omit) }}"
        validate_certs: "{{ provider.validate_certs | default(omit) }}"
        monitorname: test-monitor-1
        interval: 60
        state: present
        type: HTTP
        deviation: 0

deploy_test-1.log
deploy_test-2.log
deploy_test-3.log

attachgin logs. log #1 creates the monitor. logs #2 and #3 are from re-deploy of the same task, so ansible should make no changes.

sumanth-lingappa added a commit that referenced this issue Jan 5, 2024
Issue: #324: for a NetScaler side bug, added a workaround in the coll…
@pkodzis
Copy link
Author

pkodzis commented Jan 5, 2024

this works as expected now. thank you so much! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants