Backport for ds merges: mac duplicates #40 https://github.com/openshift/bond-cni/pull/40
elevin Could you help take this bug since it's related with https://bugzilla.redhat.com/show_bug.cgi?id=2107178 thanks.
Verified this issue in 4.11.0-0.nightly-2022-08-11-023608 steps 1. init 2 VF 2. Create 2 sriovnetworks to create NAD apiVersion: sriovnetwork.openshift.io/v1 kind: SriovNetwork metadata: name: snet1 namespace: openshift-sriov-network-operator spec: networkNamespace: z1 ipam: "{}" trust: "on" resourceName: intelnetdevice apiVersion: sriovnetwork.openshift.io/v1 kind: SriovNetwork metadata: name: snet2 namespace: openshift-sriov-network-operator spec: networkNamespace: z1 ipam: "{}" trust: "on" resourceName: intelnetdevice 3. Create bond NAD apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: name: bond-net1 spec: config: '{ "type": "bond", "cniVersion": "0.3.1", "name": "bond-net1", "mode": "balance-alb", "failOverMac": 1, "linksInContainer": true, "miimon": "100", "mtu": 1500, "links": [ {"name": "net1"}, {"name": "net2"} ], "capabilities":{ "ips": true }, "ipam": { "type": "static" } }' 4. Create test pod with apiVersion: v1 kind: Pod metadata: generateName: testpod1 labels: env: test annotations: k8s.v1.cni.cncf.io/networks: '[ {"name": "snet1", "interface": "net1" }, {"name": "snet2", "interface": "net2" }, {"name": "bond-net1", "interface": "bond0", "ips": ["192.168.100.2/24"] } ]' spec: containers: - name: bond image: quay.io/openshifttest/hello-sdn@sha256:2af5b5ec480f05fda7e9b278023ba04724a3dd53a296afcd8c13f220dec52197 imagePullPolicy: IfNotPresent 4. Create pods and delete and then create again. they are works well.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.11.1 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:6103
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days