Bug 1944682 - Whereabouts IPAM CNI duplicate IP addresses assigned to pods
Summary: Whereabouts IPAM CNI duplicate IP addresses assigned to pods
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.8
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ---
: 4.6.z
Assignee: Douglas Smith
QA Contact: Weibin Liang
URL:
Whiteboard:
Depends On: 1944678 1944680
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-03-30 13:37 UTC by Douglas Smith
Modified: 2021-10-15 18:42 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1944680
Environment:
Last Closed: 2021-10-15 18:42:19 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Douglas Smith 2021-03-30 13:37:12 UTC
+++ This bug was initially created as a clone of Bug #1944680 +++

+++ 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


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