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 installation complete progress logs are not displayed when NSSU fails on EX-VC. #1328

Open
chidanandpujar opened this issue Oct 9, 2024 · 0 comments

Comments

@chidanandpujar
Copy link
Collaborator

chidanandpujar commented Oct 9, 2024

python nssu_test.py 
<Element rpc-reply at 0x7ff4f988a3c0>
<Element rpc-reply at 0x7ff4f983b0c0>
<Element rpc-reply at 0x7ff4f987d080>
<Element rpc-reply at 0x7ff4f8188380>
<Element rpc-reply at 0x7ff4f818b0c0>
host: 10.204.40.214, report: request-package-checks-pending-install rpc is not supported on given device
host: 10.204.40.214, report: NSSU: installing software ... please be patient ...
Traceback (most recent call last):
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/device.py", line 833, in execute
    rpc_rsp_e = self._rpc_reply(
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/decorators.py", line 117, in wrapper
    rsp = function(self, *args, **kwargs)
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/device.py", line 1473, in _rpc_reply
    return self._conn.rpc(rpc_cmd_e, filter_xml)._NCElement__doc
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/ncclient-0.6.15-py3.10.egg/ncclient/manager.py", line 257, in execute
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/ncclient-0.6.15-py3.10.egg/ncclient/operations/third_party/juniper/rpc.py", line 52, in request
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/ncclient-0.6.15-py3.10.egg/ncclient/operations/rpc.py", line 381, in _request
ncclient.operations.errors.TimeoutExpiredError: ncclient timed out while waiting for an rpc reply.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/root/pyez_nssu_test1/nssu_test.py", line 21, in <module>
    ok, msg = sw.install(package=pkg,
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/utils/sw.py", line 1004, in install
    return self.pkgaddNSSU(remote_package, dev_timeout=timeout, **kwargs)
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/utils/sw.py", line 266, in pkgaddNSSU
    rsp = self.rpc.request_package_nonstop_upgrade(
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/rpcmeta.py", line 363, in _exec_rpc
    return self._junos.execute(rpc, **dec_args)
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/decorators.py", line 76, in wrapper
    return function(*args, **kwargs)
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/decorators.py", line 23, in wrapper
    result = function(*args, **kwargs)
  File "/root/pyez_nssu_test1/venv/lib/python3.10/site-packages/junos_eznc-2.7.1+9.ga64698b2.dirty-py3.10.egg/jnpr/junos/device.py", line 847, in execute
    raise EzErrors.RpcTimeoutError(self, rpc_cmd_e.tag, self.timeout)
jnpr.junos.exception.RpcTimeoutError: RpcTimeoutError(host: 10.204.40.214, cmd: request-package-nonstop-upgrade, timeout: 7500)


PyEZ connection times out after Master VC reboots as part of NSSU installation.
Sep 11 06:34:22 [NETCONF] - [20857] Outgoing: NOTICE: 'pending' set will be activated at next reboot...
Sep 11 06:34:31 [NETCONF] - [20857] Outgoing: </output>
Sep 11 06:34:31 [NETCONF] - [20857] Outgoing: <package-result>0</package-result>
Sep 11 06:34:31 [NETCONF] - [20857] Outgoing: <output>
Sep 11 06:34:31 [NETCONF] - [20857] Outgoing: failover links
Sep 11 06:34:31 [NETCONF] - [20857] Outgoing: </output>
client_loop: send disconnect: Broken pipe

ncclient.operations.errors.TimeoutExpiredError: ncclient timed out while waiting for an rpc reply.

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

2 participants