Did not find expected response from reboot RPC
See original GitHub issueTASK [Install Junos OS package] *********************************************************************************** fatal: [HOSTNAME]: FAILED! => {“changed”: true, “check_mode”: false, “msg”: “Package /apps/software/junos/jinstall-ex-4300-14.1X53-D47.3-domestic-signed.tgz successfully installed. Did not find expected response from reboot RPC.”} to retry, use: --limit @/home/username/ansible-playbooks/junos-install-os-vault.retry
PLAY RECAP ******************************************************************************************************** HOSTNAME: ok=2 changed=0 unreachable=0 failed=1
log file [Jun 16 08:57:40]: Checking pending install on fpc4
Pushing /var/tmp/jinstall-ex-4300-14.1X53-D47.3-domestic-signed.tgz to fpc4:/var/tmp/jinstall-ex-4300-14.1X53-D47.3-domestic-signed.tgz Verify the signature of the new package Verified jinstall-ex-4300-14.1X53-D47.3-domestic.tgz signed by PackageProductionRSA_2018 WARNING: A reboot is required to install the software WARNING: Use the ‘request system reboot’ command immediately 2018-06-16 08:58:38,931 - ncclient.operations.rpc - INFO - Requesting ‘ExecuteRpc’ 2018-06-16 08:58:40,499 - ncclient.operations.rpc - INFO - Requesting ‘CloseSession’
switch restarts however playbook exits
Juniper EX4300 output
*** FINAL System shutdown message from remote@HOSTNAME***
System going down IMMEDIATELY
Message from syslogd@HOSTNAME at Jun 16 08:59:45.773 2018 … HOSTNAME pfex: CMLC: Going disconnected; Routing engine chassis socket closed abruptly
Issue Type
- Bug Report
Module Name
Juniper.Junos role and Python libraries version ansible --version ansible 2.5.4 config file = /home/username/.ansible.cfg configured module search path = [u’/home/username/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’] ansible python module location = /home/username/.local/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible python version = 2.7.14 (default, Dec 16 2017, 13:14:28) [GCC 4.4.7 20120313 (Red Hat 4.4.7-18)]
Also provide the version of Juniper.junos role–> ansible-galaxy list
- Juniper.junos, (unknown version)
OS / Environment
Red Hat Enterprise Linux Server release 6.9 (Santiago)
Summary
Error message Did not find expected response from reboot RPC
Steps to reproduce
- name: Install Junos OS package
juniper_junos_software:
version: "{{ OS_version }}"
local_package: "{{ pkg_dir }}/{{ OS_package }}"
reboot: true
validate: true
logfile: "{{ log_dir }}/software.log"
register: sw
- name: pause_for_reboot
pause:
seconds: 180
when: not sw.check_mode
- name: wait_reboot
wait_for:
host: "{{ inventory_hostname }}"
port: "{{ netconf_port }}"
timeout: "{{ wait_time }}"
when: not sw.check_mode
Expected results
Actual results
fatal: [HOSTNAME]: FAILED! => {
"changed": true,
"check_mode": false,
"invocation": {
"module_args": {
"attempts": null,
"baud": null,
"checksum": null,
"checksum_algorithm": "md5",
"checksum_timeout": 300,
"cleanfs_timeout": 300,
"console": null,
"force_host": false,
"host": "HOSTNAME",
"issu": false,
"logdir": null,
"logfile": "/var/log/ansible/software.log",
"mode": null,
"nssu": false,
"passwd": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER",
"port": 830,
"provider": null,
"ssh_private_key_file": null,
"timeout": 30,
"user": "user",
"validate": true,
"vmhost": false
}
},
"msg": "Package /apps/software/junos/jinstall-ex-4300-14.1X53-D47.3-domestic-signed.tgz successfully installed. Did not find expected response from reboot RPC."
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (2 by maintainers)
@sergeysj this is on an SRX550 and MX5. Seems to be related to the reboot because when I say “reboot: no” and insert another task below to do the reboot it works fine.
closing this due to inactivity