Open qinqon opened 2 days ago
Locally sometimes I get
9s Warning FailedCreatePodSandBox pod/server-pod Failed to create pod sandbox: rpc error: code = Unknown desc = failed to setup network for sandbox "ff1353cd44444f783e1424284479d4bcbde611118c1e7bcbf6e356ea5bde39d0": plugin type="multus" name="multus-cni-network" failed (add): [network-segmentation-3679/server-pod/7064d963-c59c-4842-b167-445e30c88f09:ovn-kubernetes]: error adding container to network "ovn-kubernetes": CNI request failed with status 400: '[network-segmentation-3679/server-pod ff1353cd44444f783e1424284479d4bcbde611118c1e7bcbf6e356ea5bde39d0 network default NAD default] [network-segmentation-3679/server-pod ff1353cd44444f783e1424284479d4bcbde611118c1e7bcbf6e356ea5bde39d0 network default NAD default] failed to configure pod interface: failed to add gateway route to link: invalid argument...
What this PR does and why is it needed
Add logic at secondary network controller to trigger the creation of network selection element (but not annotate the pod) with the found active network, it also plumbs the primary network at the pod network namespace
It also introduce "Pending" egress test to activate it when topology for egress is in place.
TODO:
How to verify it
It contains some unit test and the already present east/west traffic e2e
Details to documentation updates
NONE
Does this PR introduce a user-facing change?
NONE
-->