Discussion:
[j-nsp] understand "request system software rollback" in Junos
Martin T
2015-10-01 16:25:55 UTC
Permalink
Hi,

I installed Junos 13.2R8.2 to M10i(RE-850), executed "request system
snapshot"(in other words copied / to /altroot on HDD and /config to
/altconfig on HDD) and installed Junos 13.3R6.5 with "request system
software add". This means that I have Junos 13.2R8.2 on HDD and Junos
13.3R6.5 on CF and I'm able to boot into both installations with
"request system reboot media". As I have old Junos installation on HDD
I thought that I'm able to roll back from Junos 13.3R6.5 to 13.2R8.2
with "request system software rollback", but this does seems to do
nothing::

root> request system software rollback

root>


When can one use "request system software rollback"?


thanks,
Martin
_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
Markus
2015-10-01 20:57:24 UTC
Permalink
Post by Martin T
When can one use "request system software rollback"?
http://www.juniper.net/documentation/en_US/junos13.3/topics/reference/command-summary/request-system-software-rollback.html

"A software rollback fails if any required package (or a jbundle package
containing the required package) cannot be found in /var/sw/pkg."



_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp
Olivier Benghozi
2015-10-01 23:13:41 UTC
Permalink
http://www.juniper.net/techpubs/en_US/junos13.3/information-products/topic-collections/release-notes/13.3/topic-83364.html#rn-downgrade <http://www.juniper.net/techpubs/en_US/junos13.3/information-products/topic-collections/release-notes/13.3/topic-83364.html#rn-downgrade>

"To downgrade from Release 13.3 to another supported release, follow the procedure for upgrading, but replace the 13.3 jinstall package with one that corresponds to the appropriate release."

and

"Note: After you install a Junos OS Release 13.3 jinstall package, you cannot issue the request system software rollback command to return to the previously installed software. Instead you must issue the request system software add validate command and specify the jinstallpackage that corresponds to the previously installed software."
Post by Markus
Post by Martin T
When can one use "request system software rollback"?
http://www.juniper.net/documentation/en_US/junos13.3/topics/reference/command-summary/request-system-software-rollback.html
"A software rollback fails if any required package (or a jbundle package containing the required package) cannot be found in /var/sw/pkg."
_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.net
https://pu
Martin T
2015-10-16 11:53:29 UTC
Permalink
Markus,

I have jbundle packages present in /var/sw/pkg/ directory:

root> file list detail /var/sw/pkg/*jbundle*
-r-xr-xr-x 1 root wheel 640238884 Oct 1 08:20
/var/sw/pkg/jbundle-13.2R8.2.tgz*
-rw-r--r-- 1 root wheel 735837145 Oct 1 16:12
/var/sw/pkg/jbundle-13.3R6.5.tgz
total files: 2

root>

Looks like those are installed during the system
installation/upgrade(both in case of installation media or jinstall
package).



Oliver,

if I check the release notes for versions 12.3, 13.2, 13.3 or 14.1
then they all say that one can not issue the "request system software
rollback" command to return to previously installed software.
According to Junos command reference, the behavior of "request system
software rollback" command changed in version 12.1. Since Junos 12.1
the "request system software rollback" restores the system to known
good state. What does this known good state mean?

In addition, I have one older router which had Junos 7.4R1.7
installed. I executed "request system snapshot" and then upgraded to
Junos 8.5R4.3 using a jinstall package. Once the router booted up with
the Junos 8.5R4.3 I executed "request system software rollback"
command, but this still does not seem to do anything:

root> show version brief
Model: m20
JUNOS Base OS boot [8.5R4.3]
JUNOS Base OS Software Suite [8.5R4.3]
JUNOS Kernel Software Suite [8.5R4.3]
JUNOS Crypto Software Suite [8.5R4.3]
JUNOS Packet Forwarding Engine Support (M/T Common) [8.5R4.3]
JUNOS Packet Forwarding Engine Support (M20/M40) [8.5R4.3]
JUNOS Online Documentation [8.5R4.3]
JUNOS Routing Software Suite [8.5R4.3]

root> file list detail /var/sw/pkg/

/var/sw/pkg/:
total 750828
-r-xr-xr-x 1 root wheel 68303371 Oct 16 14:11 jbundle-7.4R1.7.tgz*
-rw-r--r-- 1 root wheel 155872954 Oct 16 14:38 jbundle-8.5R4.3.tgz
-rwxr-xr-x 1 root wheel 160039672 Oct 16 14:28
jinstall-8.5R4.3-domestic-signed.tgz*
-rw-r--r-- 1 root wheel 122 Oct 16 14:38 rollback

root> request system software rollback

root>


Any comments?


thanks,
Martin
Post by Olivier Benghozi
http://www.juniper.net/techpubs/en_US/junos13.3/information-products/topic-collections/release-notes/13.3/topic-83364.html#rn-downgrade
<http://www.juniper.net/techpubs/en_US/junos13.3/information-products/topic-collections/release-notes/13.3/topic-83364.html#rn-downgrade>
"To downgrade from Release 13.3 to another supported release, follow the
procedure for upgrading, but replace the 13.3 jinstall package with one that
corresponds to the appropriate release."
and
"Note: After you install a Junos OS Release 13.3 jinstall package, you
cannot issue the request system software rollback command to return to the
previously installed software. Instead you must issue the request system
software add validate command and specify the jinstallpackage that
corresponds to the previously installed software."
Post by Markus
Post by Martin T
When can one use "request system software rollback"?
http://www.juniper.net/documentation/en_US/junos13.3/topics/reference/command-summary/request-system-software-rollback.html
"A software rollback fails if any required package (or a jbundle package
containing the required package) cannot be found in /var/sw/pkg."
_______________________________________________
https://puck.nether.net/mailman/listinfo/juniper-nsp
_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.n
Olivier Benghozi
2015-10-17 23:27:00 UTC
Permalink
Maybe it can be used before reboot - during which the real install process takes place (but I guess that request delete jinstall does also that).
What is clear is that the doc is crappy as usual.
Post by Martin T
Markus,
root> file list detail /var/sw/pkg/*jbundle*
-r-xr-xr-x 1 root wheel 640238884 Oct 1 08:20
/var/sw/pkg/jbundle-13.2R8.2.tgz*
-rw-r--r-- 1 root wheel 735837145 Oct 1 16:12
/var/sw/pkg/jbundle-13.3R6.5.tgz
total files: 2
root>
Looks like those are installed during the system
installation/upgrade(both in case of installation media or jinstall
package).
Oliver,
if I check the release notes for versions 12.3, 13.2, 13.3 or 14.1
then they all say that one can not issue the "request system software
rollback" command to return to previously installed software.
According to Junos command reference, the behavior of "request system
software rollback" command changed in version 12.1. Since Junos 12.1
the "request system software rollback" restores the system to known
good state. What does this known good state mean?
In addition, I have one older router which had Junos 7.4R1.7
installed. I executed "request system snapshot" and then upgraded to
Junos 8.5R4.3 using a jinstall package. Once the router booted up with
the Junos 8.5R4.3 I executed "request system software rollback"
root> show version brief
Model: m20
JUNOS Base OS boot [8.5R4.3]
JUNOS Base OS Software Suite [8.5R4.3]
JUNOS Kernel Software Suite [8.5R4.3]
JUNOS Crypto Software Suite [8.5R4.3]
JUNOS Packet Forwarding Engine Support (M/T Common) [8.5R4.3]
JUNOS Packet Forwarding Engine Support (M20/M40) [8.5R4.3]
JUNOS Online Documentation [8.5R4.3]
JUNOS Routing Software Suite [8.5R4.3]
root> file list detail /var/sw/pkg/
total 750828
-r-xr-xr-x 1 root wheel 68303371 Oct 16 14:11 jbundle-7.4R1.7.tgz*
-rw-r--r-- 1 root wheel 155872954 Oct 16 14:38 jbundle-8.5R4.3.tgz
-rwxr-xr-x 1 root wheel 160039672 Oct 16 14:28
jinstall-8.5R4.3-domestic-signed.tgz*
-rw-r--r-- 1 root wheel 122 Oct 16 14:38 rollback
root> request system software rollback
root>
Any comments?
_______________________________________________
juniper-nsp mailing list juniper-***@puck.nether.net

Loading...