Commit 5cb69df
vpp: recover from panic in vpp manager
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.1 parent 46c6675 commit 5cb69df
1 file changed
+17
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
945 | 945 | | |
946 | 946 | | |
947 | 947 | | |
948 | | - | |
949 | | - | |
950 | | - | |
951 | | - | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
952 | 965 | | |
953 | 966 | | |
954 | 967 | | |
| |||
0 commit comments