SecondaryNetwork OVS ports cannot be deleted correctly after an Agent restart #6578
Labels
area/secondary-network
Issues or PRs related to support for secondary networks in Antrea
kind/bug
Categorizes issue or PR as related to a bug.
Describe the bug
After creating a Pod with an Antrea SecondaryNetwork interface and restarting the Antrea Agent (e.g. planned restart as part of an upgrade), deleting the Pod will not remove the OVS corresponding port on the secondary bridge.
To Reproduce
First prepare a Kind cluster with Antrea installed and SecondaryNetwork configured.
The easiest way to do that is to modify the
ci/kind/test-secondary-network-kind.sh
as follows:With this diff applied, the script will configure a Kind testbed with Antrea and all the necessary resources, but it will not run e2e tests and it will wait for one hour before cleaning up the testbed.
When
READY
is displayed, the testbed is ready, and you can follow these steps:eth100
interface is created correctly for the Podsample-pod
)Expected
The OVS port (
sample-p-<X>
) should have been deleted.Actual behavior
The OVS port is still present and in an error state:
The Pod netns has been deleted and so the veth interface was also deleted. So we have an OVS port that is still present but uses an invalid interface.
Versions:
Antrea v2.1.0, as well as the current top-of-tree.
Additional context
This is part of a wider issue where the state of the SecondaryNetwork Controller and InterfaceStore are not restored properly when the Agent restarts.
cc @jianjuns
The text was updated successfully, but these errors were encountered: