Closed jaakub closed 12 months ago
Hi @jacp9 - Can you share the netconf trace of the device for this scenario .
For reference - https://www.juniper.net/documentation/en_US/junos/topics/example/netconf-traceoptions-configuring.html
Hi @rahkumar651991,
Sure - how can I securely provide that to you? It is quite a lot of files and obviously it contains the configuration.
netconf-ops.log 100% 1813KB 2.1MB/s 00:00
netconf-ops.log.0.gz 100% 57KB 1.8MB/s 00:00
netconf-ops.log.1.gz 100% 115KB 1.8MB/s 00:00
netconf-ops.log.10.gz 100% 138KB 1.8MB/s 00:00
netconf-ops.log.11.gz 100% 71KB 1.5MB/s 00:00
netconf-ops.log.12.gz 100% 140KB 1.8MB/s 00:00
netconf-ops.log.13.gz 100% 153KB 2.0MB/s 00:00
netconf-ops.log.14.gz 100% 182KB 1.9MB/s 00:00
netconf-ops.log.15.gz 100% 135KB 1.7MB/s 00:00
netconf-ops.log.16.gz 100% 76KB 1.6MB/s 00:00
netconf-ops.log.17.gz 100% 74KB 1.6MB/s 00:00
netconf-ops.log.18.gz 100% 109KB 1.7MB/s 00:00
netconf-ops.log.2.gz 100% 66KB 1.4MB/s 00:00
netconf-ops.log.3.gz 100% 58KB 1.8MB/s 00:00
netconf-ops.log.4.gz 100% 120KB 1.9MB/s 00:00
netconf-ops.log.5.gz 100% 105KB 1.7MB/s 00:00
netconf-ops.log.6.gz 100% 107KB 1.6MB/s 00:00
netconf-ops.log.7.gz 100% 104KB 1.7MB/s 00:00
netconf-ops.log.8.gz 100% 111KB 1.8MB/s 00:00
netconf-ops.log.9.gz 100% 112KB 1.8MB/s 00:00
@rahkumar651991 @vnitinv @ydnath - any ideas on the above? happy to work with you on that, it would be nice to be able to gather RSI/logs via Ansible and not manually.
Hi @jacp9 - drop a mail to jnpr-community-netdev[at]juniper.net
Any update on this? It seems to be related to xml parsing and number of lines. https://github.com/ncclient/ncclient/issues/185 But I dont know where to set huge_tree=True
Hi ,
huge_tree is already supported as part of fix https://github.com/Juniper/ansible-junos-stdlib/pull/572. Could you please check following options and share the results .
---
- name: Test juniper.device.rpc module
hosts: all
connection: local
gather_facts: no
collections:
- juniper.device
tasks:
#################
- name: Execute RPC
rpc:
rpcs:
- get-support-information
- file-archive
kwargs:
- {}
- destination: "support_info"
source: /var/log/*
compress: True
formats: text
timeout: 1200
huge_tree: True
register: junos_rpc
Hi @jaakub huge_tree is already supported as part of fix https://github.com/Juniper/ansible-junos-stdlib/pull/572. Please feel free to re-open the issue , if issue persists.
Thanks
Issue Type
Module Name
juniper_junos_rpc
juniper.device collection and Python libraries version
OS / Environment
Summary
When trying to run
get-support-information
andfile-archive
on MX nodes with larger configurations, more complex hardware (more interfaces etc), the task fails. When running on less complex nodes (less configuration lines and less interfaces), the RPCs complete OK. I increased the timeout to 20 minutes, but that doesn't help - it seems like a fundamental issue within code perhaps. I also tested again vMX running little config, and that completes successfully too, so it is clearly an issue with larger nodes.Steps to reproduce
Run the below task against a device with multiple FPCs and large configuration.
Expected results
Actual results