Bug 1691760 - [SR-IOV] cannot enable VF on broadcom network card
Summary: [SR-IOV] cannot enable VF on broadcom network card
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: vdsm
Version: 4.2.8
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.3.6
: 4.3.6
Assignee: Ales Musil
QA Contact: Ales Musil
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-22 12:53 UTC by Marian Jankular
Modified: 2019-10-10 15:37 UTC (History)
9 users (show)

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.
Clone Of:
Environment:
Last Closed: 2019-10-10 15:36:50 UTC
oVirt Team: Network
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm and supervdsm logs (412.20 KB, application/gzip)
2019-03-22 12:57 UTC, Marian Jankular
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2019:3009 0 None None None 2019-10-10 15:37:06 UTC
oVirt gerrit 101803 0 master MERGED net: Fix sriov and scsi under same pci root 2019-07-23 06:24:56 UTC
oVirt gerrit 102087 0 ovirt-4.3 MERGED net: Fix sriov and scsi under same pci root 2019-07-23 09:51:00 UTC

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


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