On this KB we will confirm the behavior for >request system software rollback after deleting old packages.
We have confirmed, with the following commands, request system rollback will not be possible:
root@juniper> start shell command "pkg setop rm previous"
root@juniper> start shell command "pkg delete old
Results below:
{master:0}
root@juniper> show version
fpc0:
--------------------------------------------------------------------------
Hostname: juniper
Model: ex2300-48mp
Junos: 20.4R3-S9.3
root@juniper> start shell command "pkg delete old"
root@juniper> request system software rollback
ERROR: Cannot perform a rollback operation
Device was downgrade, and we have tried to perform the system rollback without deleting the packages, and the same worked as expected:
Junos: 20.4R3-S8.1
NOTICE: Initiated a rollback to the 'previous' set of packages: 20.4R3-S9.3
NOTICE: 'pending' set will be activated at next reboot...