Unable to upgrade from 10.2.0 base image to any maintenance release
8159
Created On 12/16/24 03:07 AM - Last Modified 01/04/25 03:26 AM
Symptom
Upgrade from PAN-OS 10.2.0 to higher version fails with error similar to the following.
Operation
Software Install
Status
Completed
Result
Failed
Details
Loading into software manager
Failed to install PanOS_5400-10.2.4-h3 with the following errors.
Traceback (most recent call last):
File "/usr/local/bin/swminternal", line 18, in <module>
swmmain.main(sys.argv[1:])
File "/usr/share/pan-swm/swmmain.py", line 103, in main
UI.runCommand(H)
File "/usr/share/pan-swm/swmcli.py", line 278, in runCommand
cmd(self.extcmds)
File "/usr/share/pan-swm/swmcli.py", line 426, in do_load
swm.swmRepository(self).load(args, not self.options['nocrypt'])
File "/usr/lib64/python3.6/site-packages/swm/repo.py", line 413, in load
self.ensure_freespace_step1(data)
File "/usr/lib64/python3.6/site-packages/swm/repo.py", line 300, in ensure_freespace_step1
for img in self.redundant_bases():
File "/usr/lib64/python3.6/site-packages/swm/repo.py", line 190, in redundant_bases
images.sort(reverse=True)
File "/usr/lib64/python3.6/site-packages/swm/image.py", line 66, in __lt__
return self.release_info['date'] < obj.release_info['date']
TypeError: '<' not supported between instances of 'datetime.datetime' and 'str'
Environment
- Palo Alto Firewalls
- PAN-OS 10.2.0
- Upgrade
Cause
Software Issue.
Resolution
- Revert the FW to an earlier version of 10.1.x. This can only be done if the Firewall had an earlier version installed before upgrading to 10.2.0.
- Make sure the Firewall is now reverted to PAN-OS 10.1.x.
- Now download version 10.2.0 but do NOT install the same.
- Finally, Download and Install target release version. Example 10.2.4
Note: The issue is resolved in 10.2.3 and above.