PAN-OS: Panorama Commit Recovery Feature

PCNSE Objective Focus (Domain 4 - 18%)

4.3 Manage firewall configurations within Panorama

Introduction: A Safety Net for Configuration Pushes

When managing firewalls centrally with Panorama, pushing configuration changes (Templates, Device Groups) carries the inherent risk of accidentally deploying a setting that breaks the communication path between the managed firewall and Panorama itself. This could happen due to:

The Commit Recovery feature is an automatic safety mechanism built into PAN-OS for Panorama-managed firewalls. It is designed to detect such connectivity loss shortly after a commit from Panorama and automatically revert the firewall to its previous working configuration to prevent administrators from being locked out.

How Commit Recovery Works

The process is automatic and triggered by specific conditions:

  1. Panorama Push & Commit: An administrator commits and pushes a configuration change from Panorama to a managed firewall.
  2. Firewall Receives and Applies Config: The firewall receives the new configuration bundle from Panorama and applies it.
  3. Recovery Timer Starts: Immediately after successfully applying the configuration, the firewall starts an internal commit recovery timer . The default duration is typically around 10 minutes (this may vary slightly by PAN-OS version and is not usually user-configurable).
  4. Connectivity Check: During this timer window, the firewall continuously attempts to communicate with its configured Panorama server(s).
  5. Connectivity Lost Detection: If the firewall loses connectivity to Panorama *within* that timer window (meaning the newly committed configuration likely broke the management path), the commit recovery mechanism triggers.
  6. Configuration Revert: The firewall automatically discards the problematic configuration it just applied and reverts its running configuration back to the last known good configuration state that existed *before* the failed commit was received.
  7. Reboot: As part of the revert process, the firewall automatically reboots to ensure the reverted configuration is fully loaded and active.
  8. Recovery Complete: After rebooting with the previous working configuration, the firewall should regain connectivity to Panorama.

If the firewall maintains connectivity to Panorama throughout the entire timer duration after the commit, the new configuration is deemed successful (at least in terms of management connectivity), and the commit recovery mechanism does not activate.

graph TD
    A[1. Purchase and Activate License CSP Portal]
    B[2. Panorama Retrieves License Panorama Licenses]
    C[3. Panorama Pushes License via Commit and Push]
    D[4. Firewall Installs License]
    E[5. Feature Enabled on Firewall]

    A -- Activation Info --> PaloAltoLicensingServer
    PaloAltoLicensingServer -- License Key --> B
    B --> C
    C --> D
    D --> E

    style A fill:#fdebd0,stroke:#f5b041
    style B fill:#eaf2f8,stroke:#aed6f1
    style C fill:#eaf2f8,stroke:#aed6f1
    style D fill:#e9ecef,stroke:#adb5bd
    style E fill:#d5f5e3,stroke:#58d68d

    
Simplified Commit Recovery Sequence Diagram.

Impact and Benefits

Caveats and Considerations

Best Practices Related to Commit Recovery

PCNSE Exam Focus

For the PCNSE exam, understand:

Panorama Commit Recovery Quiz

1. What is the primary purpose of the Panorama Commit Recovery feature?

Commit Recovery is a safety net specifically designed to undo a configuration push from Panorama if that push renders the firewall unreachable by Panorama shortly after the commit.

2. What specific event triggers the automatic Commit Recovery process on a Panorama-managed firewall?

The specific trigger is the firewall losing its ability to communicate with the Panorama server it's managed by, occurring within the defined recovery timer window (typically ~10 minutes) immediately following a successful configuration application from that Panorama.

3. When Commit Recovery is triggered, what configuration state does the firewall revert to?

The firewall reverts to the configuration that was running successfully immediately prior to applying the commit pushed from Panorama that caused the connectivity loss.

4. What action does the firewall perform AFTER successfully reverting the configuration during Commit Recovery?

A reboot is an integral part of the commit recovery process to ensure the reverted configuration is loaded cleanly and takes full effect.

5. Which type of commit typically does NOT trigger the automatic Commit Recovery feature based on Panorama connectivity?

Commit Recovery is specifically designed as a safeguard against bad configurations pushed *from Panorama*. Local commits made directly on the firewall do not involve Panorama connectivity checks in the same way and won't trigger this automatic revert mechanism.

6. An administrator pushes a change that breaks user internet access due to a bad Security Policy rule, but the firewall can still communicate with Panorama. Will Commit Recovery activate?

Commit Recovery is solely dependent on the firewall maintaining its management connection to Panorama. If that connection remains stable, Commit Recovery will not activate, even if the pushed configuration causes other operational problems.

7. What is the approximate default time window during which the firewall monitors Panorama connectivity after a commit to potentially trigger Commit Recovery?

While the exact time might vary slightly by PAN-OS version, the typical default commit recovery timer window is approximately 10 minutes.

8. Is the Commit Recovery feature something an administrator explicitly enables or disables via a checkbox in the Panorama or firewall GUI?

Commit Recovery isn't a feature you turn on or off with a simple setting. It's an automatic, built-in process that triggers based on the defined condition (loss of Panorama connectivity post-commit).

9. What is a recommended action BEFORE pushing potentially disruptive Network or Device changes from Panorama?

Panorama's commit validation and preview features allow administrators to check for syntax errors and understand the specific changes that will be pushed, reducing the risk of errors that could trigger commit recovery.

10. If Commit Recovery reverts a configuration, how does the administrator know what configuration caused the problem?

Commit Recovery reverts the *firewall* back to its previous state. The configuration that *caused* the failure still exists as the latest committed configuration within *Panorama*. The administrator must review that last commit on Panorama to identify and correct the problematic settings before attempting another push.

References