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.
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
This looks like a docs bug, so I'll reassign.
PR: https://github.com/openshift/openshift-docs/pull/28957
*** Bug 1918967 has been marked as a duplicate of this bug. ***