Bug 1973647

Summary: [OCP4.7] SriovNetwork - no IP configuration via whereabouts nor host-local IPAM plugins
Product: OpenShift Container Platform Reporter: Rafal Szmigiel <rszmigie>
Component: NetworkingAssignee: zenghui.shi <zshi>
Networking sub component: SR-IOV QA Contact: zhaozhanqi <zzhao>
Status: CLOSED NOTABUG Docs Contact:
Severity: unspecified    
Priority: unspecified CC: astafeye
Version: 4.7Keywords: Reopened
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-23 12:46:40 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:

Comment 4 zenghui.shi 2021-06-21 12:19:04 UTC
Rafal, could you help collect the following net-attach-def info?

oc get net-attach-def sriov2-25-1311 -n default -o yaml
oc get net-attach-def sriov1-25-1310 -n default -o yaml

Wanted to check if the generated net-attach-df contain the right ipam field.

Comment 6 zenghui.shi 2021-06-23 02:05:47 UTC
I don't see any issue with the generated net-attach-def.

How did you check the ip address for sriov interfaces?
What deviceType is used when creating SriovNetworkNodePolicy? Is it netdevice or vfio-pci ?

Comment 9 zenghui.shi 2021-06-23 09:14:02 UTC
ok, from comment #8, SriovNetworkNodePolicy CRs are using vfio-pci deviceType, in which mode VF devices are no longer observed as kernel interfaces, which means IP address cannot be configured to the VF devices. This is expected when vf is used for dpdk application (vfio-pci).  
IP address can be configured to VF device when SriovNetowrkNodePolicy is using netdevice deviceType.

Comment 10 Rafal Szmigiel 2021-06-23 12:46:40 UTC
You're absolutely right - once I switched it to netdevice the IPs are being assigned/visible in the outputs.
Many thanks for your help!

Best Regards,

Rafal