Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fw_obj.software.upgrade_to_version(targetVersion) loses connection upon reboot and thus doesn't track results or perform subsequent upgrades in a multi-upgrade chain #533

Open
fettigcj opened this issue Nov 14, 2023 · 0 comments
Labels

Comments

@fettigcj
Copy link

Describe the bug

fw_obj.software.upgrade_to_version(targetVersion) loses connection upon reboot and thus doesn't track results or perform subsequent upgrades in a multi-upgrade chain

Expected behavior

Connection loss should be expected during upgrades and connectivity restoration should be possible after reboot.

Current behavior

Connection is lost during reboot

Possible solution

Catch the "pan.xapi.PanXapiError: <serial#> not connected" error and drop into a "while rebooting == True" iteration-counting loop that will only break if waiting exceeds the time limit

Steps to reproduce

Connect to and attempt to upgrade a firewall.

Screenshots

upgrade_disconnects

Context

Upgrading 300 firewalls by Dec 31 due to User ID certificate expiry

Your Environment

Python 3.11.1
pan-os-python 1.8.0

@fettigcj fettigcj added the bug label Nov 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant