Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1691760

Summary: [SR-IOV] cannot enable VF on broadcom network card
Product: Red Hat Enterprise Virtualization Manager Reporter: Marian Jankular <mjankula>
Component: vdsmAssignee: Ales Musil <amusil>
Status: CLOSED ERRATA QA Contact: Ales Musil <amusil>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2.8CC: amusil, dholler, lsurette, mburman, mkalinin, pelauter, rdlugyhe, srevivo, ycui
Target Milestone: ovirt-4.3.6Keywords: ZStream
Target Release: 4.3.6   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: vdsm-4.30.25 Doc Type: Bug Fix
Doc Text:
Previously, trying to enable virtual functions (VFs) on a Broadcom network card generated a "Failed to change the number of virtual functions" error. The current release fixes this issue.
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-10-10 15:36:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
vdsm and supervdsm logs none

Description Marian Jankular 2019-03-22 12:53:16 UTC
Description of problem:
not able to enable VF on broadcom network card

Version-Release number of selected component (if applicable):
tested on rhvm 4.1.11 and 4.2.8
host used redhat-release-virtualization-host-4.2-7.5.el7.x86_64 ()

How reproducible:
everytime with BCM57810

Steps to Reproduce:
1. enable "intel_iommu=on"
2. try to enable VF in "Setup Host Network"

Actual results:
it will fail with error "Failed to change the number of virtual functions."

Expected results:
Enabling VF will work.

Additional info:
workaround possible:
1, put host to maintenance
2, try to enable VF on the network card (as it will fail, cancel the "Setup Host Networks" window)
3, refresh host capabilities (right-click on the host > management > refresh capabilities)
4, virtual function are visible now

Comment 1 Marian Jankular 2019-03-22 12:57:39 UTC
Created attachment 1546837 [details]
vdsm and supervdsm logs

Comment 8 Ales Musil 2019-07-10 05:36:08 UTC
SR-IOV card that has SCSI offloading feature might display net device and offload under the same PCI root. 
This leads to exception thrown by vdsm when we try to set number of VFs, because vdsm is not capable to decide
which device should be used to find the interface name. This can be easily fixed with filter that will list
only net devices under particular PCI root.

Comment 13 Ales Musil 2019-08-05 10:45:20 UTC
[root@dell-m620-07 ~]# rpm -qe vdsm
vdsm-4.30.25-1.el7ev.x86_64
[root@dell-m620-07 ~]# cat /tmp/sriov_test
{
"deviceName": "pci_0000_01_00_0",
"numvfs": "1"
}
[root@dell-m620-07 ~]# vdsm-client -f /tmp/sriov_test Host hostdevChangeNumvfs
true
[root@dell-m620-07 ~]# cat /sys/bus/pci/devices/0000\:01\:00.0/sriov_numvfs 
1
[root@dell-m620-07 ~]# cat /tmp/sriov_test0
{
"deviceName": "pci_0000_01_00_0",
"numvfs": "0"
}
[root@dell-m620-07 ~]# vdsm-client -f /tmp/sriov_test0 Host hostdevChangeNumvfs
true
[root@dell-m620-07 ~]# cat /sys/bus/pci/devices/0000\:01\:00.0/sriov_numvfs 
0

Comment 16 errata-xmlrpc 2019-10-10 15:36:50 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2019:3009