You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
# First run
% ansible-playbook 01-vxlan_fabric_switches.yaml
PLAY [dcnm] **********************************************************************************************************
TASK [Add Border Gateways to "VXLAN-Site1"] **************************************************************************
[WARNING]: Adding switches to a VXLAN fabric can take a while. Please be patient...
changed: [dcpod_dcnm]
PLAY RECAP ***********************************************************************************************************
dcpod_dcnm : ok=1 changed=1 unreachable=0 failed=0 skipped=0 rescued=0 ignored=0
# Second run
(ansible-2.10) timmil@TIMMIL-M-842A ansible-dcnm-examples % ansible-playbook 01-vxlan_fabric_switches.yaml
PLAY [dcnm] **********************************************************************************************************
TASK [Add Border Gateways to "VXLAN-Site1"] **************************************************************************
[WARNING]: Adding switches to a VXLAN fabric can take a while. Please be patient...
fatal: [dcpod_dcnm]: FAILED! => {"changed": false, "msg": {"DATA": "Invalid JSON response: The IP is already in inventory: [/10.60.66.131]\n\nDiscovery Failed. \n\nPlease resolve selections and try again.", "MESSAGE": "Internal Server Error", "METHOD": "POST", "REQUEST_PATH": "https://172.18.180.190:443/rest/control/fabrics/VXLAN-Site1/inventory/discover?gfBlockingCall=true", "RETURN_CODE": 500}}
PLAY RECAP ***********************************************************************************************************
dcpod_dcnm : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Expected Behavior
First run should have completed successfully, taking a great deal of time.
Second run should have completed with a task status of "ok".
Second run should have completed much more QUICKLY.
Actual Behavior
Second run failed as reported in the "debug" info above.
Second run took a decent amount of time to fail despite have a short list of attributes to check/compare. Although, in fairness, maybe because I'm doing 2 switches?
Second run actually fails because it made a REST call that was not correct - rather than detecting no changes were needed.
Steps to Reproduce
Simply run ansible-playbook 01-vxlan_fabric_switches.yaml (YAML copied above) multiple times.
References
The text was updated successfully, but these errors were encountered:
Community Note
Ansible Version and collection version
Ansible: 2.10.4
Ansible Collection: cisco.dcnm = 1.2.0
Python modules
DCNM version
DCNM LAN Fabric: 11.5.1
Affected module(s)
Ansible Playbook
Debug Output
Expected Behavior
Actual Behavior
Steps to Reproduce
Simply run ansible-playbook 01-vxlan_fabric_switches.yaml (YAML copied above) multiple times.
References
The text was updated successfully, but these errors were encountered: