Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1509270 - [downstream clone - 4.1.8] host_nic_vfs_config is not populated if parent pci device of nic is shared with another device
[downstream clone - 4.1.8] host_nic_vfs_config is not populated if parent pci...
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine (Show other bugs)
4.1.6
x86_64 Linux
high Severity high
: ovirt-4.1.8
: ---
Assigned To: Alona Kaplan
Michael Burman
: ZStream
Depends On: 1506887
Blocks:
  Show dependency treegraph
 
Reported: 2017-11-03 08:54 EDT by rhev-integ
Modified: 2018-04-30 04:21 EDT (History)
15 users (show)

See Also:
Fixed In Version: ovirt-engine-4.1.8
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1506887
Environment:
Last Closed: 2017-12-12 04:23:28 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Network
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 83350 master MERGED engine: SRIOV physical function can have more than one child device 2017-11-03 08:55 EDT
oVirt gerrit 83488 ovirt-engine-4.1 MERGED engine: SRIOV physical function can have more than one child device 2017-11-03 08:55 EDT
Red Hat Product Errata RHSA-2017:3427 normal SHIPPED_LIVE Low: org.ovirt.engine-root security, bug fix, and enhancement update 2017-12-12 09:16:31 EST

  None (edit)
Description rhev-integ 2017-11-03 08:54:48 EDT
+++ This bug is a downstream clone. The original bug is: +++
+++   bug 1506887 +++
======================================================================

Description of problem:

In case the parent PCI device of a SR-IOV NIC is shared with another device, like a scsi_host, the engine fails to fill the host_nic_vfs_config table. This prevents the user from using the NIC for SR-IOV as he is unable to configure the number of VFs from the Administration Portal.

For example, these entries from HostdevListByCaps triggers the problem:

       device_name      | parent_device_name | capability | total_vfs | net_iface_name
------------------------+--------------------+------------+-----------+----------------
 pci_0000_22_00_0       | pci_0000_00_03_0   | pci        |         7 |
 scsi_host20            | pci_0000_22_00_0   | scsi_host  |           |
 net_enp22s0f0          | pci_0000_22_00_0   | net        |           | enp22s0f0

Version-Release number of selected component (if applicable):
rhevm-4.1.6.2-0.1.el7.noarch

How reproducible:
100%, use the attached hooks.

IMPORTANT: to reproduce the problem, the host needs to be installed with the hook already in place. If the host_nic_vfs_config table is already populated with the unmodified fakesriov hook, the problem does not reproduce. So please remove and re-install the host to reproduce (and QA).

Actual results:
No SR-IOV icon on the NIC.

Expected results:
SR-IOV icon on the NIC.

(Originally by Germano Veit Michel)
Comment 1 rhev-integ 2017-11-03 08:54:55 EDT
*** Bug 1505873 has been marked as a duplicate of this bug. ***

(Originally by Germano Veit Michel)
Comment 3 rhev-integ 2017-11-03 08:55:00 EDT
Created attachment 1344155 [details]
VDSM hooks to reproduce the problem

after_get_caps:
10_fakesriov      # place this hook to reproduce the problem

after_hostdev_list_by_caps:
10_fakesriov      # place this hook to reproduce the problem
20_filter_sriov   # hook to correct the problem on vdsm side

(Originally by Germano Veit Michel)
Comment 5 Meni Yakove 2017-11-20 03:56:39 EST
Germano, would the customer agree to take a hotfix for this bug and help us verify it? We currently have no access to the "offending" hardware.
Comment 9 Michael Burman 2017-12-04 04:37:46 EST
Tested and verified on - 4.1.8.2-0.1.el7 and vdsm-4.19.41-1.el7ev
Using Germano's vdsm fakesriov hooks only.

As this bug blocking the errata process before the release we decided to not wait for the customer's reply on the hot-fix and we still don't have any access to the 'offending' HW.
Comment 12 errata-xmlrpc 2017-12-12 04:23:28 EST
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/RHSA-2017:3427

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