ansible-collections / community.yang

Ansible Community Collection to support Yang in network devices.
GNU General Public License v3.0
10 stars 14 forks source link

Traceback when using fetch with nxos #20

Closed cidrblock closed 4 years ago

cidrblock commented 4 years ago

Although I don't think nxos even supports fetching the models from on box, can we capture the error?

The full traceback is:
Traceback (most recent call last):
  File "/home/bthornto/github/yang/venv/lib64/python3.8/site-packages/ansible/executor/task_executor.py", line 147, in run
    res = self._execute()
  File "/home/bthornto/github/yang/venv/lib64/python3.8/site-packages/ansible/executor/task_executor.py", line 665, in _execute
    result = self._handler.run(task_vars=variables)
  File "/home/bthornto/github/yang/collections/ansible_collections/community/yang/plugins/action/fetch.py", line 89, in run
    supported_yang_modules = ss.get_schema_description()
  File "/home/bthornto/github/yang/collections/ansible_collections/community/yang/plugins/module_utils/fetch.py", line 54, in get_schema_description
    resp = self._conn.get(filter=get_filter)
  File "/home/bthornto/github/yang/venv/lib64/python3.8/site-packages/ansible/module_utils/connection.py", line 185, in __rpc__
    raise ConnectionError(to_text(msg, errors='surrogate_then_replace'), code=code)
ansible.module_utils.connection.ConnectionError: Namespace="urn:ietf:params:xml:ns:yang:ietf-netconf-monitoring"
fatal: [nxos101]: FAILED! => {
    "msg": "Unexpected failure during module execution.",
    "stdout": ""