Bug 2112297 - bond-cni: Backport "mac duplicates" 4.11
Summary: bond-cni: Backport "mac duplicates" 4.11
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.11
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: 4.11.0
Assignee: Andrea Panattoni
QA Contact: zhaozhanqi
URL:
Whiteboard:
Depends On: 2107178
Blocks: 2116642
TreeView+ depends on / blocked
 
Reported: 2022-07-29 09:40 UTC by Andrea Panattoni
Modified: 2023-09-15 01:57 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 2112319 (view as bug list)
Environment:
Last Closed: 2022-08-23 15:09:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift bond-cni pull 41 0 None open [release-4.11] Bug 2112297: Backport "mac duplicates" 2022-07-29 10:27:32 UTC
Red Hat Product Errata RHSA-2022:6103 0 None None None 2022-08-23 15:10:24 UTC

Description Andrea Panattoni 2022-07-29 09:40:35 UTC
Backport for 

ds merges: mac duplicates #40

https://github.com/openshift/bond-cni/pull/40

Comment 2 zhaozhanqi 2022-08-15 03:47:15 UTC
elevin Could you help take this bug since it's related with https://bugzilla.redhat.com/show_bug.cgi?id=2107178 thanks.

Comment 4 zhaozhanqi 2022-08-18 05:03:58 UTC
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.

Comment 6 errata-xmlrpc 2022-08-23 15:09:42 UTC
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

Comment 7 Red Hat Bugzilla 2023-09-15 01:57:05 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 365 days


Note You need to log in before you can comment on or make changes to this bug.