ansible-ise
ansible-ise copied to clipboard
getting deployment info for entire deployment does not work
Prerequisites
- [ ] Have you tested the operation in the API directly?
- [ x] Do you have the latest ISE Collection version?
- [x ] Review the compatibility matrix before opening an issue.
Name of the module cisco.ise.deployment_info cisco.ise.node_deployment_info
Describe the bug cisco.ise.deployment_info returns null ise response cisco.ise.node_deployment_info returns error object has no attribute 'get_nodes' cisco.ise.node_deployment_info does work if you specify the 'hostname' of a particular node but leaving that out to get the entire deployment results in the error
Expected behavior dictionary containing info on all nodes in the deployment
Screenshots
- name: validate deployment status cisco.ise.deployment_info: ise_hostname: "{{ ppan }}" ise_username: "{{ ansible_user }}" ise_password: "{{ ise_gui_password }}" ise_verify: false register: status
ok: [pri] => { "changed": false, "ise_response": null, "result": "" }
- name: validate deployment status cisco.ise.node_deployment_info: ise_hostname: "{{ ppan }}" ise_username: "{{ ansible_user }}" ise_password: "{{ ise_gui_password }}" ise_verify: false register: status
The full traceback is: Traceback (most recent call last): File "/home/bgoulet/.ansible/collections/ansible_collections/cisco/ise/plugins/plugin_utils/ise.py", line 222, in exec func = getattr(family, function) ^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NodeDeployment' object has no attribute 'get_nodes' fatal: [pri]: FAILED! => { "changed": false, "msg": "An error occured when retrieving operation. The error was: 'NodeDeployment' object has no attribute 'get_nodes'" }
Environment (please complete the following information):
- ISE version and patch: 3.3 patch 2
- Ansible version: 2.15.12
- ISE collection version: ciscoisesdk 2.2.3, cisco.ise 2.9.3
- OS version: Ubuntu 24.04 LTS, Python 3.12.3
Additional context the 'node' version of the module does work if you specify a specific node
- name: validate primary status cisco.ise.node_deployment_info: ise_hostname: "{{ ppan }}" ise_username: "{{ ansible_user }}" ise_password: "{{ ise_gui_password }}" ise_verify: false hostname: "{{ span }}" register: status
ok: [pri] => { "changed": false, "ise_response": { "fqdn": "sec.peraton.com", "hostname": "sec", "ipAddress": "192.168.100.52", "nodeStatus": "Connected", "roles": [ "SecondaryAdmin", "PrimaryMonitoring" ], "services": [] }, "result": "" }