NSSU upgrade fails on EX4300
Hello,
We are trying to use junos-eznc 2.6.6 to upgrade a fleet of EX4300s but we are encountering the following traceback:
Traceback (most recent call last):
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/nornir/core/task.py", line 99, in start
r = self.task(self, **self.params)
File "/opt/devnet/legacy_upgrades/upgrade_legacy.py", line 285, in junos_upgrade
ok, msg = sw.install(
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/utils/sw.py", line 986, in install
return self.pkgaddNSSU(remote_package, dev_timeout=timeout, **kwargs)
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/utils/sw.py", line 261, in pkgaddNSSU
rsp = self.rpc.request_package_nonstop_upgrade(
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/rpcmeta.py", line 364, in _exec_rpc
return self._junos.execute(rpc, **dec_args)
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/decorators.py", line 76, in wrapper
return function(*args, **kwargs)
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/decorators.py", line 23, in wrapper
result = function(*args, **kwargs)
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/device.py", line 834, in execute
rpc_rsp_e = self._rpc_reply(
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/decorators.py", line 117, in wrapper
rsp = function(self, *args, **kwargs)
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/jnpr/junos/device.py", line 1457, in _rpc_reply
return self._conn.rpc(rpc_cmd_e, filter_xml)._NCElement__doc
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/ncclient/manager.py", line 246, in execute
return cls(self._session,
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/ncclient/operations/third_party/juniper/rpc.py", line 52, in request
return self._request(rpc)
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/ncclient/operations/rpc.py", line 365, in _request
self._reply.parse()
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/ncclient/operations/rpc.py", line 161, in parse
root = self._root = to_ele(self._raw, huge_tree=self.huge_tree) # The
The target version we are attempting the upgrade for is 21.4R3-S2.4 any clues as why this is happening?
This error usually occurs when there is an invalid character as per the XML specification. Can you please provide the reproduction script that you are trying to run.
Hi @jgeromero , Closing this issue for now, please feel free to re-open if the issue still persists.
Thanks Chidanand