Bug 1944680

Summary: Whereabouts IPAM CNI duplicate IP addresses assigned to pods
Product: OpenShift Container Platform Reporter: Douglas Smith <dosmith>
Component: NetworkingAssignee: Douglas Smith <dosmith>
Networking sub component: multus QA Contact: Weibin Liang <weliang>
Status: CLOSED WORKSFORME Docs Contact:
Severity: urgent    
Priority: high CC: weliang
Version: 4.8   
Target Milestone: ---   
Target Release: 4.7.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1944678
: 1944682 (view as bug list) Environment:
Last Closed: 2021-10-15 18:40:35 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1944678    
Bug Blocks: 1944682    

Description Douglas Smith 2021-03-30 13:35:05 UTC
+++ This bug was initially created as a clone of Bug #1944678 +++

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

--- Additional comment from Douglas Smith on 2021-03-30 13:30:27 UTC ---

A fix has been merged in master for 4.8 @ https://github.com/openshift/whereabouts-cni/pull/51

Comment 2 Douglas Smith 2021-10-15 18:40:35 UTC
This was fixed in https://github.com/openshift/whereabouts-cni/pull/65 via another issue.