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

"Unsupported parameters for (community.network.netscaler_cs_action) module: targetvserver #552

Open
krausi24 opened this issue Jun 6, 2023 · 1 comment

Comments

@krausi24
Copy link

krausi24 commented Jun 6, 2023

SUMMARY

Executing a simple Task with the parameter "targetvserver" will result in the error:
fatal: [dkr_adc6 -> localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (community.network.netscaler_cs_action) module: targetvserver. Supported parameters include: comment, name, nitro_pass, nitro_protocol, nitro_timeout, nitro_user, nsip, save_config, state, targetlbvserver, targetvserverexpr, validate_certs."}

ISSUE TYPE
  • Bug Report
COMPONENT NAME

community.network.netscaler_cs_action

ANSIBLE VERSION
ansible [core 2.14.6]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/dkr/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/dkr/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.10.6 (main, Mar 10 2023, 10:55:28) [GCC 11.3.0] (/usr/bin/python3)
  jinja version = 3.0.3
  libyaml = True
COLLECTION VERSION
# /home/dkr/.ansible/collections/ansible_collections
Collection        Version
----------------- -------
community.network 5.0.0  

# /usr/lib/python3/dist-packages/ansible_collections
Collection        Version
----------------- -------
community.network 5.0.0  
CONFIGURATION
CONFIG_FILE() = /etc/ansible/ansible.cfg
OS / ENVIRONMENT

Windows 10 WSL2

STEPS TO REPRODUCE
---
- name: Create content switching action
  delegate_to: localhost
  community.network.netscaler_cs_action:
    nsip: "{{ ansible_host }}"
    nitro_user: "{{ nitro_user }}"
    nitro_pass: "{{ nitro_pass }}"
    validate_certs: "{{ validate_certs }}"
    state: "{{ state }}"

    name: "{{ CA_name }}"
    targetvserver: "{{ CA_targetvserver }}"
EXPECTED RESULTS
ACTUAL RESULTS
TASK [netscaler_CA : Create content switching action] *************************************************************************************************************************************************
task path: /home/dkr/ansible-netscaler/roles/netscaler_CA/tasks/main.yml:2
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: dkr
<localhost> EXEC /bin/sh -c 'echo ~dkr && sleep 0'
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /home/dkr/.ansible/tmp `"&& mkdir "` echo /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159 `" && echo ansible-tmp-1686064633.6512814-11413-251207221205159="` echo /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159 `" ) && sleep 0'
Using module file /home/dkr/.ansible/collections/ansible_collections/community/network/plugins/modules/netscaler_cs_action.py
<localhost> PUT /home/dkr/.ansible/tmp/ansible-local-11409_qxdy2bo/tmpk8wi6nu1 TO /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/AnsiballZ_netscaler_cs_action.py
<localhost> EXEC /bin/sh -c 'chmod u+x /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/ /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/AnsiballZ_netscaler_cs_action.py && sleep 0'
<localhost> EXEC /bin/sh -c '/usr/bin/python3 /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/AnsiballZ_netscaler_cs_action.py && sleep 0'
<localhost> EXEC /bin/sh -c 'rm -f -r /home/dkr/.ansible/tmp/ansible-tmp-1686064633.6512814-11413-251207221205159/ > /dev/null 2>&1 && sleep 0'
fatal: [dkr_adc6 -> localhost]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "comment": null,
            "name": "CA_NGVS_gw",
            "nitro_pass": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "nitro_protocol": "http",
            "nitro_timeout": 310.0,
            "nitro_user": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
            "nsip": "10.205.102.6",
            "save_config": true,
            "state": "present",
            "targetlbvserver": null,
            "targetvserver": "NGVS_gw",
            "targetvserverexpr": null,
            "validate_certs": false
        }
    },
    "msg": "Unsupported parameters for (community.network.netscaler_cs_action) module: targetvserver. Supported parameters include: comment, name, nitro_pass, nitro_protocol, nitro_timeout, nitro_user, nsip, save_config, state, targetlbvserver, targetvserverexpr, validate_certs."
}

PLAY RECAP ********************************************************************************************************************************************************************************************
dkr_adc6                   : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
@Andersson007
Copy link
Contributor

Andersson007 commented Jun 15, 2023

@krausi24 hello, thanks for reporting the issue

cc @chiradeep @giorgos-nikolopoulos (specified as maintainers)

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

No branches or pull requests

2 participants