Bug 1917881

Summary: Additional interface of POD not getting IP while using whereabouts CNI with SR-IOV
Product: OpenShift Container Platform Reporter: Arnab Ghosh <arghosh>
Component: DocumentationAssignee: Vikram Goyal <vigoyal>
Status: CLOSED CURRENTRELEASE QA Contact: Xiaoli Tian <xtian>
Severity: medium Docs Contact: Vikram Goyal <vigoyal>
Priority: medium    
Version: 4.5CC: aos-bugs, dporter, jboxman, jokerman, zshi
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-02-11 18:19:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Arnab Ghosh 2021-01-19 15:09:43 UTC
Description of problem:
Additional interface is being added to POD but no IP is being assigned to the interface.

~~~
[root@a network]# oc exec -ti sriov-centos -- ip a s net1
2158: net1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9000 qdisc mq state UP group default qlen 1000
    link/ether ce:9f:2a:79:a1:9e brd ff:ff:ff:ff:ff:ff
    inet6 fe80::cc9f:2aff:fe79:a19e/64 scope link
       valid_lft forever preferred_lft forever
~~~

Will provide all sriov resources in private comment.

Version-Release number of selected component (if applicable):
Openshift Container Platform 4.5 

How reproducible:
Not Sure

Steps to Reproduce:
1.
2.
3.

Actual results:
POD's are not getting IP for additional interface

Expected results:
POD's should get IP for additional interface

Additional info:
Will provide additional informations in private case comments.

Comment 7 zenghui.shi 2021-01-20 09:56:01 UTC
From the sriovnetwork definition attachment, it has the ipam config like below:

    ipam: |-
      {
        "ipam": {
          "type": "whereabouts",
          "subnet": "10.56.217.0/24",
          "rangeStart": "10.56.217.171",
          "rangeEnd": "10.56.217.181",
          "gateway": "10.56.217.1"
        }
      }

The inner ipam is not necessary, please try the following:

    ipam: |-
      {
          "type": "whereabouts",
          "subnet": "10.56.217.0/24",
          "rangeStart": "10.56.217.171",
          "rangeEnd": "10.56.217.181",
          "gateway": "10.56.217.1"
      }


Note: 

looks like we have an wrong example in the official doc:
https://docs.openshift.com/container-platform/4.6/networking/hardware_networks/configuring-sriov-net-attach.html#nw-sriov-network-attachment_configuring-sriov-net-attach

Comment 8 Jason Boxman 2021-01-20 16:04:51 UTC
This looks like a docs bug, so I'll reassign.

Comment 9 Jason Boxman 2021-01-29 03:50:52 UTC
PR: https://github.com/openshift/openshift-docs/pull/28957

Comment 10 zenghui.shi 2021-03-22 14:35:29 UTC
*** Bug 1918967 has been marked as a duplicate of this bug. ***