This repository was archived by the owner on May 12, 2021. It is now read-only.
Commit 227cba6
Evan Foster
sandbox: Disconnect from agent after VM shutdown
When a one-shot pod dies in CRI-O, the shimv2 process isn't killed until
the pod is actually deleted, even though the VM is shut down. In this
case, the shim appears to busyloop when attempting to talk to the (now
dead) agent via VSOCK. To address this, we disconnect from the agent
after the VM is shut down.
This is especially catastrophic for one-shot pods that may persist for
hours or days, but it also applies to any shimv2 pod where Kata is
configured to use VSOCK for communication.
Backport of kata-containers/kata-containers#556
to kata-containers/runtime master branch.
See github.com/#2719 for details.
Fixes #2719
Signed-off-by: Evan Foster <efoster@adobe.com>1 parent a1d993f commit 227cba6
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1603 | 1603 | | |
1604 | 1604 | | |
1605 | 1605 | | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
| 1609 | + | |
| 1610 | + | |
1606 | 1611 | | |
1607 | 1612 | | |
1608 | 1613 | | |
| |||
0 commit comments