-
Notifications
You must be signed in to change notification settings - Fork 153
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_system fails when (vmhost) rebooting MX204 router #517
Comments
Hi @tb90ka your current junos-eznc version is 2.1.7. upgrade it and tell if it works fine for you. |
Hello @rahkumar651991 I've upgraded junos-eznc as described:
But unfortunately I'm still getting the same error when running the playbook:
I've also tried to remove the role and install it again (via ansible-galaxy) but then I had to patch the roles ( .ansible/roles/Juniper.junos/library/juniper_junos_system.py) code again:
|
Thanks @rahkumar651991 for fixing this!
Reboot now seems to work, even though I still get a (somewhat strange) error message:
The playbook fails, but the device is still rebooting. The respective task for this:
Thanks in advance, |
@tb90ka - Can you share the netconf trace on the device for this issue. For enabling netconf trace on device, refer this. |
@rahkumar651991 information has been provided as requested. |
@tb90ka https://github.com/Juniper/py-junos-eznc/pull/1066/files the change is in PyEZ(junos-eznc) for this. this should fix it. We will release new version for both with the fixes soon. |
This issues has been fixed meanwhile. Thanks for your support! |
Issue Type
Module Name
juniper_junos_system
Ansible roles version
Juniper.Junos, Version 2.4.0
OS / Environment
JUNOS 19.3R1.8
Summary
When trying to reboot a Juniper MX204 router using ansible, it first failed with an error:
After I patched the .ansible/roles/Juniper.junos/library/juniper_junos_system.py role to:
... the playbook failed with below error message:
Steps to reproduce
inventory file: lab
group_vars/all
reboot.yaml
Run playbook:
Expected results
Device reboots and playbook ends.
Actual results
Playbook fails:
The text was updated successfully, but these errors were encountered: