Skip to content

recover from panic in vpp manager#912

Merged
sknat merged 1 commit intomasterfrom
add-recover-in-vpp-manager
Feb 20, 2026
Merged

recover from panic in vpp manager#912
sknat merged 1 commit intomasterfrom
add-recover-in-vpp-manager

Conversation

@hedibouattour
Copy link
Copy Markdown
Collaborator

@hedibouattour hedibouattour commented Feb 19, 2026

Previously, any return from the VPP manager was treated as an indication
that VPP had exited or crashed, triggering configuration restoration.

However, if the VPP manager itself panicked while VPP was still running,
the deferred logic would interpret this as a VPP crash and attempt to
restore the configuration. Since VPP was actually still alive, the
restoration could hang and the original panic would never be properly
surfaced.

This change adds panic recovery in the VPP manager to prevent false
assumptions about VPP state and avoid blocking during restore when the
failure originates in the manager itself.

When VPPmanager crashes we kill VPP, wait a bit, then restore the config.

@hedibouattour hedibouattour self-assigned this Feb 19, 2026
@hedibouattour hedibouattour force-pushed the add-recover-in-vpp-manager branch 3 times, most recently from f89e449 to 3cad64e Compare February 19, 2026 16:47
@hedibouattour hedibouattour force-pushed the add-recover-in-vpp-manager branch from 3cad64e to 5a20e45 Compare February 20, 2026 13:20
Previously, any return from the VPP manager was treated as an indication
that VPP had exited or crashed, triggering configuration restoration.

However, if the VPP manager itself panicked while VPP was still running,
the deferred logic would interpret this as a VPP crash and attempt to
restore the configuration. Since VPP was actually still alive, the
restoration could hang and the original panic would never be properly
surfaced.

This change adds panic recovery in the VPP manager to prevent false
assumptions about VPP state and avoid blocking during restore when the
failure originates in the manager itself.

When VPPmanager crashes we kill VPP, wait a bit, then restore the config.
@hedibouattour hedibouattour force-pushed the add-recover-in-vpp-manager branch from 5a20e45 to 74af098 Compare February 20, 2026 13:21
Copy link
Copy Markdown
Collaborator

@sknat sknat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm !

@sknat sknat merged commit 5cb69df into master Feb 20, 2026
5 checks passed
@sknat sknat deleted the add-recover-in-vpp-manager branch February 20, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants