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
juniper_junos_software module failure: No handlers could be found for logger "ncclient.transport.session" #409
Comments
i'm facing the same problem when using juniper_junos_jsnapy. std_err: |
@jindu-okoli Kindly use Playbook:
Output:
|
Information provided. So, I'm closing the ticket. If you have any issues with the latest Juniper Ansible collection, please don't hesitate to open a ticket. |
Issue Type
Module Name
Juniper.Junos role and Python libraries version
OS / Environment
Junos version: 14X53-D47, 17.2R1, 17.3R3
Model: EX4300
Summary
I get this error when upgrading a Junos device. The device reboots and the software is installed on the device but the script fails with this error :
No handlers could be found for logger "ncclient.transport.session"
Also, nothing is written to the log file. I have tried specifying the full path, creating the file with right permissions but it is still empty.
Steps to reproduce
Expected results
Actual results
fatal: [poc-ex4300-13]: FAILED! => {
"changed": false,
"rc": 1
}
MSG:
MODULE FAILURE
See stdout/stderr for the exact error
MODULE_STDERR:
No handlers could be found for logger "ncclient.transport.session"
Traceback (most recent call last):
File "/home/lab/.ansible/tmp/ansible-tmp-1546944251.76-50816382439807/AnsiballZ_juniper_junos_software.py", line 113, in
_ansiballz_main()
File "/home/lab/.ansible/tmp/ansible-tmp-1546944251.76-50816382439807/AnsiballZ_juniper_junos_software.py", line 105, in _ansiballz_main
invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)
File "/home/lab/.ansible/tmp/ansible-tmp-1546944251.76-50816382439807/AnsiballZ_juniper_junos_software.py", line 48, in invoke_module
imp.load_module('main', mod, module, MOD_DESC)
File "/tmp/ansible_juniper_junos_software_payload_zOMHhH/main.py", line 747, in
File "/tmp/ansible_juniper_junos_software_payload_zOMHhH/main.py", line 743, in main
File "/tmp/ansible_juniper_junos_software_payload_zOMHhH/ansible_juniper_junos_software_payload.zip/ansible/module_utils/juniper_junos_common.py", line 792, in exit_json
File "/tmp/ansible_juniper_junos_software_payload_zOMHhH/ansible_juniper_junos_software_payload.zip/ansible/module_utils/juniper_junos_common.py", line 1327, in close
File "/home/lab/.local/lib/python2.7/site-packages/jnpr/junos/device.py", line 1328, in close
self._conn.close_session()
File "/home/lab/.local/lib/python2.7/site-packages/ncclient/manager.py", line 216, in execute
raise_mode=self._raise_mode).request(*args, **kwds)
File "/home/lab/.local/lib/python2.7/site-packages/ncclient/operations/session.py", line 28, in request
return self._request(new_ele("close-session"))
File "/home/lab/.local/lib/python2.7/site-packages/ncclient/operations/rpc.py", line 347, in _request
raise TimeoutExpiredError('ncclient timed out while waiting for an rpc reply.')
ncclient.operations.errors.TimeoutExpiredError: ncclient timed out while waiting for an rpc reply.
The text was updated successfully, but these errors were encountered: