Description of problem: Whereabouts will assign the same IP address to multiple pods. How reproducible: Always. Steps to Reproduce: Create net-attach-def as so: ``` apiVersion: "k8s.cni.cncf.io/v1" kind: NetworkAttachmentDefinition metadata: name: macvlan-conf annotations: k8s.v1.cni.cncf.io/resourceName: mellanox.com/mlnx_sriov_netdevice spec: config: '{ "type": "macvlan", "master": "change_to_ifname_on_your_hosts", "cniVersion": "0.3.1", "name": "macvlan-network", "ipam": { "type": "whereabouts", "range": "10.199.199.0/24", "range_start": "10.199.199.100" } }' ``` Actual results: Duplicate IP address assigned Expected results: Unique IP address assigned to each pod. Upstream issue: https://github.com/k8snetworkplumbingwg/whereabouts/issues/97
A fix has been merged in master for 4.8 @ https://github.com/openshift/whereabouts-cni/pull/51
Tested and verified in 4.8.0-0.nightly-2021-03-31-034951. No duplicate IP assigned to the pods.
Hello team, Do we have a plan to backport this patch to the OCP 4.7 or the earlier version?
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.8.2 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-2021:2438