The following KB gives details of how request system software rollback works1.) Initiate a Software rollback command and see how it functions2) If the image is added to the device afterwards proceed to rollback then reboot to see if it loads with same version i.e staged version upgrade is cancelled or not
1.) Initiate a Software rolback and see how it functionslabroot@jtac-qfx5120-48y-8c-r2074> show versionlocalre:--------------------------------------------------------------------------Hostname: jtac-qfx5120-48y-8c-r2074Model: qfx5120-48y-8iJunos: 22.4R2-S2.6 >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Current running version on QFX5120 i.e 22.4R2-S2.6 JUNOS OS Kernel 64-bit [20230810.9da3819_builder_stable_12_224]{master:0}labroot@jtac-qfx5120-48y-8c-r2074> show system software rollbacklocalre:--------------------------------------------------------------------------Image: qfx-5e-21.4R3-S7.8.202406070933 available for rollback. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Image available for rollback 21.4R3-S7.8 {master:0}labroot@jtac-qfx5120-48y-8c-r2074> request system software rollbacklocalre:--------------------------------------------------------------------------Initiating rollback on the Host.Rolling back to qfx-5e-21.4R3-S7.8.202406070933 image >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Rollback initiated Rollback staged to image qfx-5e-21.4R3-S7.8.202406070933. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>21.4R3 is the new staged image on the deviceReboot the system to complete installation! {master:0}labroot@jtac-qfx5120-48y-8c-r2074> request system software rollback localre:--------------------------------------------------------------------------Initiating rollback on the Host. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Again Rollback initiated Rollback of the staged upgrade is complete. >>>>>>>>>>>>>>>>>>>>>>>>>>> Rollback of the staged image i.e 21.4R3 completed , which means now there is no staged image on the device {master:0}labroot@jtac-qfx5120-48y-8c-r2074> request system reboot >>>>>>>>>>>>>>>>>>>>>> now initiated reboot to verify that device will load with same version that is running on itReboot the system ? [yes,no] (no) yes *** System shutdown message from labroot@jtac-qfx5120-48y-8c-r2074 *** System going down in 1 minute >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>Device booted with same version i.e 22.4R2-S2.6 2) To add the image afterwards proceed to rollback then reboot to see if it loads with same version {master:0}labroot@jtac-qfx5120-48y-8c-r2074> request system software add /var/tmp/jinstall-host-qfx-5e-x86-64-21.4R3-S7.8-secure-signed.tgz no-validate force-host >>>>>>>>>>>>>>>>>>New Junos version added 21.4R3Verified jinstall-host-qfx-5e-x86-64-21.4R3-S7.8-secure-signed signed by PackageProductionECP256_2024 method ECDSA256+SHA256Forcing the Host Upgrade for Non Issu updates...Pushing Junos image package to the host...Installing /var/tmp/install-media-qfx-5e-junos-21.4R3-S7.8-secure.tgzExtracting the package ... ;;;upgrade_platform: Staging of /var/tmp/jinstall-qfx-5e-junos-21.4R3-S7.8-secure-linux.tgz completedupgrade_platform: System need *REBOOT* to complete the upgradeupgrade_platform: Run upgrade_platform with option -r | --rollback to rollback the upgrade Host OS upgrade staged. Reboot the system to complete installation! {master:0}labroot@jtac-qfx5120-48y-8c-r2074> show log install2024-06-19 20:56:25 IST mgd[15449]: /usr/libexec/ui/package -X rollback<output>Initiating rollback oupgrade_platform: Checksum verified and OK...1062851 blocksupgrade_platform: Staging of /var/tmp/jinstall-qfx-5e-junos-21.4R3-S7.8-secure-linux.tgz completed >>>>>>>>>>>>>>21.4R3 is the new staged image on the deviceupgrade_platform: System need *REBOOT* to complete the upgradeupgrade_platform: Run upgrade_platform with option -r | --rollback to rollback the upgrade Host OS upgrade staged. Reboot the system to complete installation! </output><package-result>0</package-result> {master:0}labroot@jtac-qfx5120-48y-8c-r2074> request system software rollback >>>>>>>>>>>>>>>>>>>>>>>>>>Rollback initiatedlocalre:--------------------------------------------------------------------------Initiating rollback on the Host. Rollback of the staged upgrade is complete.>>>>>>>>>>>>>>>>>>Rollback of the staged image i.e 21.4R3 completed ,which means now there is no staged image on the device {master:0}labroot@jtac-qfx5120-48y-8c-r2074> show versionlocalre:--------------------------------------------------------------------------Hostname: jtac-qfx5120-48y-8c-r2074Model: qfx5120-48y-8cJunos: 22.4R2-S2.6{master:0}labroot@jtac-qfx5120-48y-8c-r2074> request system rebootReboot the system ? [yes,no] (no) yes >>>>>>>>>>>>>>>>>now initiated reboot to verify that device will load with same version that is running on it *** System shutdown message from labroot@jtac-qfx5120-48y-8c-r2074 *** System going down in 1 minute {master:0}labroot@jtac-qfx5120-48y-8c-r2074> show versionlocalre:--------------------------------------------------------------------------Hostname: jtac-qfx5120-48y-8c-r2074Model: qfx5120-48y-8cJunos: 22.4R2-S2.6 >>>>>>>>>>>>>>>>>>>>>>>>>>>Device rebooted with same version I.e 22.4R2-S2.6JUNOS OS Kernel 64-bit [20230810.9da3819_builder_stable_12_224]JUNOS OS libs [20230810.9da3819_builder_stable_12_224]