Bug 1917881 - Additional interface of POD not getting IP while using whereabouts CNI with SR-IOV
Summary: Additional interface of POD not getting IP while using whereabouts CNI with S...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Documentation
Version: 4.5
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Vikram Goyal
QA Contact: Xiaoli Tian
Vikram Goyal
URL:
Whiteboard:
: 1918967 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-19 15:09 UTC by Arnab Ghosh
Modified: 2024-06-13 23:57 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-11 18:19:04 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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. ***


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