ansible-junos-stdlib: Junos_Install_Os Failed to upgrade the JUNOS Host Software

Running junos_install_os will successfully install the Junos Base OS Software Suite but its does not upgrade the Juniper Host Software in Juniper’s QFX Series switches.

Juniper’s Advanced JTAC Agent specified that this might create issues in the performance of the switch and it could be responsible for some of the problem we were having.

Example:

Hostname: tesw1 Model: qfx5100-48t-6q Junos: 14.1X53-D30.3 JUNOS Base OS Software Suite [14.1X53-D30.3] JUNOS Base OS boot [14.1X53-D30.3] JUNOS Crypto Software Suite [14.1X53-D30.3] JUNOS Online Documentation [14.1X53-D30.3] JUNOS Kernel Software Suite [14.1X53-D30.3] JUNOS Packet Forwarding Engine Support (qfx-ex-x86-32) [14.1X53-D30.3] JUNOS Routing Software Suite [14.1X53-D30.3] JUNOS SDN Software Suite [14.1X53-D30.3] JUNOS Enterprise Software Suite [14.1X53-D30.3] JUNOS Web Management Platform Package [14.1X53-D30.3] JUNOS py-base-i386 [14.1X53-D30.3] JUNOS Host Software [13.2X51-D25.2]

Normally, if I’d perform the upgrade by hand I will use the command

request system software add reboot no-validate force-host /var/tmp/jinstall.......

But I need this to be perform by the Ansible playbook that will provision new racks

Is there anyway to make the junos_install_os upgrade the host software as well?

Thanks in advance and best regards,

Nzkller

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 19 (9 by maintainers)

Commits related to this issue

Most upvoted comments

@stacywsmith

No problem I figured it out so I ran it and it successfully upgraded the Junos Host Software

These are the logs for the install

2017-04-26 15:28:38,919:10.238.0.181:Starting the software upgrade process: /data/repository/Juniper/jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz
2017-04-26 15:28:38,919:10.238.0.181:computing local checksum on: /data/repository/Juniper/jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz
2017-04-26 15:28:40,377:10.238.0.181:cleaning filesystem ...
2017-04-26 15:28:40,378:ncclient.operations.rpc:Requesting 'ExecuteRpc'
2017-04-26 15:29:02,968:paramiko.transport:Connected (version 2.0, client OpenSSH_6.4)
2017-04-26 15:29:03,960:paramiko.transport:Authentication (password) successful!
2017-04-26 15:30:56,074:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 46120960 / 461111477 (10%)
2017-04-26 15:32:50,668:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 92225536 / 461111477 (20%)
2017-04-26 15:34:44,433:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 138346496 / 461111477 (30%)
2017-04-26 15:36:37,053:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 184451072 / 461111477 (40%)
2017-04-26 15:38:31,156:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 230572032 / 461111477 (50%)
2017-04-26 15:40:26,243:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 276676608 / 461111477 (60%)
2017-04-26 15:42:19,847:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 322781184 / 461111477 (70%)
2017-04-26 15:44:14,030:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 368902144 / 461111477 (80%)
2017-04-26 15:46:06,393:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 415006720 / 461111477 (90%)
2017-04-26 15:47:59,808:10.238.0.181:jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz: 461111477 / 461111477 (100%)
2017-04-26 15:48:02,499:10.238.0.181:computing remote checksum on: /var/tmp/jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz
2017-04-26 15:48:02,500:ncclient.operations.rpc:Requesting 'ExecuteRpc'
2017-04-26 15:48:07,039:10.238.0.181:checksum check passed.
2017-04-26 15:48:07,040:10.238.0.181:installing software on VC member: 1 ... please be patient ...
2017-04-26 15:48:07,040:ncclient.operations.rpc:Requesting 'ExecuteRpc'
2017-04-26 15:56:47,049:10.238.0.181:software pkgadd package-result: 0
Output:

[Apr 26 15:48:07]: Checking pending install on fpc1

Pushing /var/tmp/jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz to fpc1:/var/tmp/jinstall-qfx-5-14.1X53-D40.8-domestic-signed.tgz
Verified jinstall-vjunos-14.1X53-D40.8-domestic.tgz signed by PackageProductionSwitchingEc_2015
Verified jinstall-vjunos-14.1X53-D40.8-domestic.tgz signed by JuniperSwitchingProduction_2015
Adding vjunos...
Saving contents of boot area prior to installation

WARNING:     This package will load JUNOS 14.1X53-D40.8 software.
WARNING:     It will save JUNOS configuration files, and SSH keys
WARNING:     (if configured), but erase all other files and information
WARNING:     stored on this machine.  It will attempt to preserve dumps
WARNING:     and log files, but this can not be guaranteed.  This is the
WARNING:     pre-installation stage and all the software is loaded when
WARNING:     you reboot the system.

POST-INSTALL...
Saving the config files ...
NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install
Pushing installation package to host...
Upgrade Host OS to 14.1X53-D40.8...
./jinstall-qfx-5-14.1X53-D40.8-domestic.img.gz: OK
/boot/boot
Extracting image...
Host upgrade staging completed. Need reboot to complete upgrade installation.
WARNING: Changing next boot to SSD0
WARNING: Changing boot device enable from  0x3F to 0x3F
Install jinstall-vjunos completed

WARNING:     A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the
WARNING:     'request system reboot' command when software installation is
WARNING:     complete. To abort the installation, do not reboot your system,
WARNING:     instead use the 'request system software delete jinstall'
WARNING:     command as soon as this operation completes.

Saving state for rollback ...
2017-04-26 15:56:47,049:10.238.0.181:installing software on VC member: 0 ... please be patient ...
2017-04-26 15:56:47,050:ncclient.operations.rpc:Requesting 'ExecuteRpc'
2017-04-26 16:01:04,296:10.238.0.181:software pkgadd package-result: 0
Output:
Verified jinstall-vjunos-14.1X53-D40.8-domestic.tgz signed by PackageProductionSwitchingEc_2015
Verified jinstall-vjunos-14.1X53-D40.8-domestic.tgz signed by JuniperSwitchingProduction_2015
Adding vjunos...
Saving contents of boot area prior to installation

WARNING:     This package will load JUNOS 14.1X53-D40.8 software.
WARNING:     It will save JUNOS configuration files, and SSH keys
WARNING:     (if configured), but erase all other files and information
WARNING:     stored on this machine.  It will attempt to preserve dumps
WARNING:     and log files, but this can not be guaranteed.  This is the
WARNING:     pre-installation stage and all the software is loaded when
WARNING:     you reboot the system.

POST-INSTALL...
Saving the config files ...
NOTICE: uncommitted changes have been saved in /var/db/config/juniper.conf.pre-install
Pushing installation package to host...
Upgrade Host OS to 14.1X53-D40.8...
./jinstall-qfx-5-14.1X53-D40.8-domestic.img.gz: OK
/boot/boot
Extracting image...
Host upgrade staging completed. Need reboot to complete upgrade installation.
WARNING: Changing next boot to SSD0
WARNING: Changing boot device enable from  0x3F to 0x3F
Install jinstall-vjunos completed

WARNING:     A REBOOT IS REQUIRED TO LOAD THIS SOFTWARE CORRECTLY. Use the
WARNING:     'request system reboot' command when software installation is
WARNING:     complete. To abort the installation, do not reboot your system,
WARNING:     instead use the 'request system software delete jinstall'
WARNING:     command as soon as this operation completes.

Saving state for rollback ...

2017-04-26 16:01:04,297:10.238.0.181:<REBOOT>
2017-04-26 16:01:04,297:ncclient.operations.rpc:Requesting 'ExecuteRpc'
2017-04-26 16:01:05,218:10.238.0.181:upgrade pending reboot cycle, please be patient.
2017-04-26 16:01:05,218:ncclient.operations.rpc:Requesting 'CloseSession'
2017-04-26 16:01:05,801:10.238.0.181:pausing: 10
2017-04-26 16:01:15,811:10.238.0.181:process completed OK.

And the result is this one

local@tesw1> show version
fpc0:
--------------------------------------------------------------------------
Hostname: tesw1
Model: qfx5100-48t-6q
Junos: 14.1X53-D40.8
JUNOS Base OS boot [14.1X53-D40.8]
JUNOS Base OS Software Suite [14.1X53-D40.8]
JUNOS Online Documentation [14.1X53-D40.8]
JUNOS Crypto Software Suite [14.1X53-D40.8]
JUNOS Kernel Software Suite [14.1X53-D40.8]
JUNOS Packet Forwarding Engine Support (qfx-ex-x86-32) [14.1X53-D40.8]
JUNOS Routing Software Suite [14.1X53-D40.8]
JUNOS SDN Software Suite [14.1X53-D40.8]
JUNOS Enterprise Software Suite [14.1X53-D40.8]
JUNOS Web Management Platform Package [14.1X53-D40.8]
JUNOS py-base-i386 [14.1X53-D40.8]
**JUNOS Host Software [14.1X53-D40.8]**

fpc1:
--------------------------------------------------------------------------
Hostname: tesw1
Model: qfx5100-48t-6q
Junos: 14.1X53-D40.8
JUNOS Base OS boot [14.1X53-D40.8]
JUNOS Base OS Software Suite [14.1X53-D40.8]
JUNOS Online Documentation [14.1X53-D40.8]
JUNOS Crypto Software Suite [14.1X53-D40.8]
JUNOS Kernel Software Suite [14.1X53-D40.8]
JUNOS Packet Forwarding Engine Support (qfx-ex-x86-32) [14.1X53-D40.8]
JUNOS Routing Software Suite [14.1X53-D40.8]
JUNOS SDN Software Suite [14.1X53-D40.8]
JUNOS Enterprise Software Suite [14.1X53-D40.8]
JUNOS Web Management Platform Package [14.1X53-D40.8]
JUNOS py-base-i386 [14.1X53-D40.8]
**JUNOS Host Software [14.1X53-D40.8]**

I really appreciate the help. Works great!

Are you going to implement it into the master branch?

Thank you very much and best regards,

Nzkller

@nzkller Sorry. I messed up the syntax for installing from a specific branch. Please try:

sudo ansible-galaxy remove Juniper.junos
sudo ansible-galaxy install  git+https://github.com/stacywsmith/ansible-junos-stdlib.git,force_host_arg,Juniper.junos