Actualización de software en una estructura de chasis virtual mediante una actualización de software sin interrupciones
La actualización ininterrumpida de software (NSSU) le permite actualizar el software que se ejecuta en todos los conmutadores miembro de una estructura de chasis virtual (VCF) con una interrupción mínima del tráfico de red durante la actualización.
Para obtener una descripción general de las ventajas de NSSU y cómo funciona la NSSU, consulte Descripción de la actualización sin interrupciones del software en una estructura de chasis virtual.
Preparación del conmutador para la instalación del nuevo software
Antes de comenzar la instalación de software con NSSU:
Asegúrese de que el VCF está configurado correctamente para admitir NSSU:
Compruebe que conectó los miembros VCF en una topología spine-and-leaf con cada dispositivo leaf conectado a todos los dispositivos spine configurados. Una topología spine-and-leaf impide que el virtual Chassis se divida durante una NSSU.
Nota:NSSU se admite en un VCF QFX5100 con hasta 20 miembros.
NSSU no se admite en un VCF QFX5110.
Asegúrese de que el VCF está preprovisionado y de que asignó explícitamente el rol de motor de enrutamiento o el rol de tarjeta de línea a los conmutadores miembro que actúan en cada una de esas funciones.
Asegúrese de que la configuración preprovisionada solo tenga dos miembros en el rol motor de enrutamiento. El proceso de NSSU comprueba la configuración del miembro, muestra un mensaje de advertencia si detecta que configuró más de dos conmutadores en la función motor de enrutamiento y detiene la actualización.
En un Virtual Chassis de dos miembros, configure
no-split-detection
para que el VCF no se divida cuando una NSSU actualiza a un miembro.Opcionalmente, puede configurar grupos de actualización de NSSU con varios miembros de rol de tarjeta de línea en cada grupo de actualización. NSSU actualiza a los miembros de cada grupo de actualización simultáneamente, lo que puede acortar el proceso de NSSU y actualizar los grupos de actualización en el orden en que los configuró.
Consulte Configurar grupos de actualización de tarjetas de línea para una actualización de software sin interrupciones para obtener más información.
Compruebe que los miembros ejecutan la misma versión del software:
user@switch>
show version
Si los miembros de virtual Chassis Fabric no ejecutan la misma versión del software, utilice el comando de CLI
request system software add
para actualizar el software en los miembros incoherentes. Si algunos conmutadores miembro no ejecutan la misma imagen de software, especifique diferentes nombres de paquete mediante la opción set:request system software add set [package-namepackage-name ...] reboot
.Por ejemplo:
user@switch> request system software add force-host set [jinstall-qfx5100.tgz jinstall-qfx3500.tgz jinstall-ex-4300.tgz] reboot
Compruebe que habilitó el enrutamiento activo sin interrupciones (NSR) y la conmutación agraciada del motor de enrutamiento (GRES). Solo necesita comprobar el estado de NSR: si NSR está habilitado, GRES también está habilitado:
user@switch> show task replication Stateful Replication: Enabled RE mode: Master Protocol Synchronization Status OSPF Complete BGP Complete PIM Complete
Si el enrutamiento activo sin interrupción no está habilitado (
Stateful Replication
esDisabled
), consulte Ejemplo: Configurar enrutamiento activo sin interrupción en conmutadores para obtener información sobre cómo habilitarlo.Compruebe que ha habilitado el puente sin interrupción (NSB), lo que garantiza que todos los protocolos de capa 2 compatibles con NSB funcionen sin problemas durante la conmutación del motor de enrutamiento que ocurre durante NSSU.
(Opcional) Haga una copia de seguridad del software del sistema (Junos OS, la configuración activa y los archivos de registro) en cada miembro a un dispositivo de almacenamiento externo con el
request system snapshot
comando.
Actualización del software mediante NSSU
En este procedimiento se describe cómo actualizar el software que se ejecuta en todos los miembros de VCF mediante NSSU. Cuando se completa la actualización, todos los miembros ejecutan la nueva versión del software. Dado que se produce una conmutación correcta del motor de enrutamiento durante la actualización, la copia de seguridad original de VCF es la nueva principal al final del proceso de NSSU.
Durante la NSSU, el principal copia la nueva imagen de software a todos los miembros en el VCF y los reinicia a su vez. Si se produce un error al copiar el software nuevo a un miembro o reiniciar un miembro, NSSU termina el proceso de actualización y registra el error. En este caso, debe realizar manualmente medidas de recuperación para los miembros que quedan en un estado incompatible, para restaurar a todos los miembros a ejecutar la misma versión del software. A partir de Junos OS versión 14.1X53-D40, NSSU invoca automáticamente medidas de recuperación después de cualquiera de estos errores, como sigue:
si NSSU termina debido a un error de copia, la nueva imagen se elimina de los miembros a los que ya se copió.
Si algún miembro no puede reiniciar, NSSU inicia automáticamente un reinicio de VCF limpio al derribar y reiniciar todo el VCF. Todos los miembros vienen a ejecutar el nuevo software al mismo tiempo. Esta acción recupera limpiamente la operación estable de VCF más rápidamente que tener una VCF inestable que ejecuta diferentes versiones del software que intentan converger.
Las imágenes de software Junos OS con automatización mejorada solo se admiten en un VCF no mixto con conmutadores QFX5100. Además, no se admite la realización de una NSSU desde una imagen de software Junos OS estándar hasta una imagen de software Junos OS con automatización mejorada, o desde una imagen de software de Junos OS con automatización mejorada a una imagen de software estándar de Junos OS.
Para actualizar a todos los miembros del VCF mediante NSSU:
Descargue el paquete de software. Si está actualizando el software que se ejecuta en un VCF en modo mixto, descargue los paquetes de software para cada tipo de conmutador.
Copie el paquete de software o los paquetes al conmutador principal vcf. Recomendamos que copie el archivo en el
/var/tmp
directorio en el principal.Inicie sesión en el VCF mediante la conexión de consola de la interfaz principal o de Ethernet de administración virtual (VME). Sin la conexión de la consola, no podrá ver ningún resultado de CLI durante un reinicio de NSSU. La conexión de la consola le permite ver la salida de la CLI durante un reinicio de NSSU y supervisar el progreso del reinicio del conmutador principal.
Inicie la operación de NSSU:
Para realizar NSSU en un VCF compuesto por todo un tipo de conmutador, escriba:
user@switch> request system software nonstop-upgrade force-host /var/tmp/package-name.tgz
dónde
package-name.tgz
está, por ejemplo,jinstall-qfx5100.tgz
.Para realizar NSSU en un modo mixto QFX5100 VCF (conmutadores QFX5100 con alguna combinación de conmutadores QFX3500, QFX3600 o EX4300), escriba:
user@switch> request system software nonstop-upgrade force-host set [package-name.tgz package-name.tgz package-name.tgz]
dónde
[package-name.tgz package-name.tgz package-name.tgz]
está, por ejemplo,[jinstall-qfx5100.tgz jinstall-qfx3500.tgz jinsall-ex-4300.tgz]
.
A medida que avanza la actualización, el VCF muestra mensajes de estado similares a los siguientes resultados de ejemplo para una operación NSSU en un VCF QFX5100 con cuatro conmutadores miembro QFX5100:
user@switch> request system software nonstop-upgrade force-host /var/tmp/jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-domestic.tgz no-validate Chassis ISSU Check Done [Sep 24 11:53:16]:ISSU: Validating Image [Sep 24 11:53:16]:ISSU: Preparing Backup RE Installing image on other FPC's along with the backup [Sep 24 11:53:37]: Retrieving software images. This process can take several minutes. Please be patient.. Retrieving version and model information from /var/tmp/jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-domestic.tgz Starting with package /var/tmp/jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-domestic.tgz Download done for package /var/tmp/jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-domestic.tgz Pushing bundle to fpc1 Pushing bundle to fpc4 Pushing bundle to fpc5 fpc1 WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. Saving contents of boot area prior to installation WARNING: This package will load JUNOS 14.1-20160918_x141X53_vjqfd.0 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 Copying jpuppet pkg to /var/sw/pkg Copying chef pkg to /var/sw/pkg Pushing installation package to host... Upgrade Host OS to 14.1-20160918_x141X53_vjqfd.0... ./jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-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 ... fpc4 WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. Saving contents of boot area prior to installation WARNING: This package will load JUNOS 14.1-20160918_x141X53_vjqfd.0 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 Copying jpuppet pkg to /var/sw/pkg Copying chef pkg to /var/sw/pkg Pushing installation package to host... Upgrade Host OS to 14.1-20160918_x141X53_vjqfd.0... ./jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-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 ... fpc5 WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. Saving contents of boot area prior to installation WARNING: This package will load JUNOS 14.1-20160918_x141X53_vjqfd.0 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 Copying jpuppet pkg to /var/sw/pkg Copying chef pkg to /var/sw/pkg Pushing installation package to host... Upgrade Host OS to 14.1-20160918_x141X53_vjqfd.0... ./jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-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 0x18 to 0x18 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 ... [Sep 24 12:05:28]: Backup upgrade done [Sep 24 12:05:28]: Rebooting Backup RE Rebooting fpc1 [Sep 24 12:05:28]:ISSU: Backup RE Prepare Done [Sep 24 12:05:28]: Waiting for Backup RE reboot [Sep 24 12:16:44]: GRES operational [Sep 24 12:16:44]: "Initiating Chassis In-Service-Upgrade" Chassis ISSU Started [Sep 24 12:16:50]:ISSU: Preparing Daemons . . [Sep 24 12:17:50]:ISSU: Daemons Ready for ISSU [Sep 24 12:17:54]:ISSU: Starting Upgrade for FRUs . . . . . . [Sep 24 12:21:09]: FPC 4 is undergoing a software upgrade . . . . . . . . . . . . . . . . [Sep 24 12:30:16]: FPC 4 has come up after a software upgrade . . . . . . . [Sep 24 12:34:42]: FPC 5 is undergoing a software upgrade . . . . . . . . . . . . . . . . [Sep 24 12:42:10]: FPC 5 has come up after a software upgrade . . . . . [Sep 24 12:45:42]:ISSU: Preparing for Switchover [Sep 24 12:45:47]:ISSU: Ready for Switchover [Sep 24 12:45:48]: Checking In-Service-Upgrade status Item Status Reason FPC 0 Online FPC 1 Online (ISSU) FPC 4 Online (ISSU) FPC 5 Online (ISSU) [Sep 24 12:45:48]: Going to install image on master WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. WARNING: The software that is being installed has limited support. WARNING: Run 'file show /etc/notices/unsupported.txt' for details. Saving contents of boot area prior to installation WARNING: This package will load JUNOS 14.1-20160918_x141X53_vjqfd.0 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 Copying jpuppet pkg to /var/sw/pkg Copying chef pkg to /var/sw/pkg Pushing installation package to host... Upgrade Host OS to 14.1-20160918_x141X53_vjqfd.0... ./jinstall-qfx-5-flex-14.1-20160918_x141X53_vjqfd.0-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 ... failover links [Sep 24 12:50:22]: Rebooting Old master Chassis NSSU Completed [Sep 24 12:50:22]:ISSU: IDLE
Inicie sesión después de que se complete el reinicio del conmutador principal original. Para comprobar que se actualizó el software en todos los motores de enrutamiento de los miembros VCF, escriba el siguiente comando:
user@switch>
show version