-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Purge ports without interfaces (#109)
As described in GH-106 a node failure leads to the OVS CNI driver's DEL operation being called without the CNI_NETNS argument. This made the CNI driver panic. An empty CNI_NETNS argument is allowed according to version 0.4.0 of the CNI spec (https://github.com/containernetworking/cni/blob/spec-v0.4.0/SPEC.md). The spec suggests to "clean up as many resources as possible (e.g. releasing IPAM allocations) and return a successful response". In accordance with this suggestion the OVS CNI driver now looks for interfaces with an error value set. It then iterates over the ports belonging to those interfaces and removes them. Signed-off-by: Ferdinand Hofherr <[email protected]>
- Loading branch information
Showing
3 changed files
with
210 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters