Open sebastianw opened 1 year ago
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 15 days
@sebastianw What is ansible-cvp version you tested this on? And what CVP version was this? On my end, this is what I am seeing with invalid token on on-perm cvp version: 2023.1.1
and ansible-cvp version 3.10.1
(avd) ➜ Facts ansible-playbook facts_devices.yml -i ../Inventory_files/inventory_ATD.yml
PLAY [cv_facts_v3 benchmarking] ******************************************************************************************************************************************************************************************************************************************
TASK [gather cvp facts] **************************************************************************************************************************************************************************************************************************************************
fatal: [CloudVision]: FAILED! => changed=false
msg: 'GET: https://staticstudio-1-cfec4cc2-eos.topo.testdrive.arista.com:443/web/cvpInfo/getCvpInfo.do : Request Error: Unauthorized'
PLAY RECAP ***************************************************************************************************************************************************************************************************************************************************************
CloudVision : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
Issue Summary
When token authentication fails while retrieving CVP facts, the error message is unhelpful. There seems to be no error handling for this case. Also the actual CVP error message is logged by invoking
MODULE_LOGGER.error
which is not displayed by Ansible.Ansible Task:
Error Message:
Which component(s) of AVD impacted
cv_facts_v3
How do you run AVD ?
Ansible CLI (with virtual-env or native python)
Input variables
No response
Steps to reproduce
No response
Relevant log output
No response
Code of Conduct