question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Did not find expected response from reboot RPC

See original GitHub issue

TASK [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:closed
  • Created 5 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
kquilliamcommented, Aug 3, 2018

@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.

0reactions
rahkumar651991commented, Sep 29, 2021

closing this due to inactivity

Read more comments on GitHub >

github_iconTop Results From Across the Web

RPC error troubleshooting guidance - Windows Client
Learn how to troubleshoot Remote Procedure Call (RPC) errors that occur during computer-to-computer communication. Such communication can ...
Read more >
Everything you need to know to resolve the Git Push RPC error
Facing a Git RPC fatal error? This article will help you solve the Git RPC error and teach you how to quickly manage...
Read more >
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed ...
Delta compression using up to 12 threads RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8) the remote...
Read more >
Common Error Messages - Troubleshoot | Consul
ACL Not Found ... This indicates that you have ACL enabled in your cluster, but you aren't passing a valid token. Make sure...
Read more >
GRPC Core: Status codes and their use in gRPC
Code Number Description OK 0 Not an error; returned on success. FAILED_PRECONDITION 9 OUT_OF_RANGE 11
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found