Open viswanathsai opened 2 years ago
Just to aid in troubleshooting, I was facing a similar issue with the juniper.device.config collection and tested a fix using huge_tree that resolved the issue
Add:
'huge_tree' : dict(type='bool', required=False, default=False),
to juniper_junos_common.py
and then "huge_tree: True" to the connection options in the playbook
SUMMARY
Throwing huge text error when running playbook to commit configuration to Juniper device using 'junipernetworks.junos.junos_config' module.
ISSUE TYPE
{ "msg": "b'xmlSAX2Characters: huge text node, line 110126, column 1 (, line 110126)'",
"exception": " File \"/tmp/ansible_junipernetworks.junos.junos_config_payload_ghufnlmn/ansible_junipernetworks.junos.junos_config_payload.zip/ansible_collections/junipernetworks/junos/plugins/module_utils/network/junos/junos.py\", line 224, in get_configuration\n reply = conn.get_configuration(format=format, filter=filter)\n File \"/tmp/ansible_junipernetworks.junos.junos_config_payload_ghufnlmn/ansible_junipernetworks.junos.junos_config_payload.zip/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/netconf.py\", line 81, in rpc\n to_bytes(rpc_error, errors=\"surrogate_then_replace\")\n File \"/tmp/ansible_junipernetworks.junos.junos_config_payload_ghufnlmn/ansible_junipernetworks.junos.junos_config_payload.zip/ansible_collections/ansible/netcommon/plugins/module_utils/network/common/netconf.py\", line 126, in parse_rpc_error\n raise ConnectionError(rpc_error)\n",
"invocation": {
"module_args": {
"lines": [
"set security address-book global address ......",
],
"confirm_commit": true,
"update": "merge",
"confirm": 0,
"comment": "configured by junos_config",
"check_commit": false,
"backup": false,
"zeroize": false,
"src": null,
"src_format": null,
"replace": null,
"backup_options": null,
"rollback": null,
"provider": null
}
},
"_ansible_no_log": false,
"changed": false
}
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS