Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSSU upgrade fails on EX4300 #1233

Open
jgeromero opened this issue Feb 12, 2023 · 1 comment
Open

NSSU upgrade fails on EX4300 #1233

jgeromero opened this issue Feb 12, 2023 · 1 comment

Comments

@jgeromero
Copy link

jgeromero commented Feb 12, 2023

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 element
File "/home/user/.cache/pypoetry/virtualenvs/upgrade-legacy-gUjTTpEG-py3.9/lib/python3.9/site-packages/ncclient/xml
.py", line 129, in to_ele
return x if etree.iselement(x) else etree.fromstring(x.encode('UTF-8'), parser=_get_parser(huge_tree))
File "src/lxml/etree.pyx", line 3254, in lxml.etree.fromstring
File "src/lxml/parser.pxi", line 1913, in lxml.etree._parseMemoryDocument
File "src/lxml/parser.pxi", line 1800, in lxml.etree._parseDoc
File "src/lxml/parser.pxi", line 1141, in lxml.etree._BaseParser._parseDoc
File "src/lxml/parser.pxi", line 615, in lxml.etree._ParserContext._handleParseResultDoc
File "src/lxml/parser.pxi", line 725, in lxml.etree._handleParseResult
File "src/lxml/parser.pxi", line 654, in lxml.etree._raiseParseError
File "", line 123
lxml.etree.XMLSyntaxError: PCDATA invalid Char value 12, line 123, column 296

The target version we are attempting the upgrade for is 21.4R3-S2.4 any clues as why this is happening?

@apurvaraghu
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants