Bug 1567649

Summary: [RFE] A vfio-pci port needs to be rebind to eliminate "/dev/vfio/X Permission denied" error
Product: Red Hat Enterprise Linux 7 Reporter: Jean-Tsung Hsiao <jhsiao>
Component: openvswitchAssignee: Aaron Conole <aconole>
Status: CLOSED WONTFIX QA Contact: Jean-Tsung Hsiao <jhsiao>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.5CC: atragler, ctrautma, fleitner, jhsiao, kzhang, qding
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-11 14:40:09 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:

Description Jean-Tsung Hsiao 2018-04-15 18:49:45 UTC
Description of problem: [RFE] A vfio-pci port needs to be rebind to eliminate "/dev/vfio/X Permission denied" error

If a vfio-pci port gets bind before OVS gets installed, the daemon will report "Cannot open /dev/vfio/X: Permission denied" ERR when OVS is started.

This RFE bug request for rebinding of such an used port to eliminate such en error.

Version-Release number of selected component (if applicable):
[root@netqe22 openvswitch]# rpm -q openvswitch
openvswitch-2.9.0-15.el7fdp.x86_64
[root@netqe22 openvswitch]# uname -a
Linux netqe22.knqe.lab.eng.bos.redhat.com 3.10.0-862.el7.bz1558328.x86_64 #1 SMP Thu Mar 22 11:10:59 EDT 2018 x86_64 x86_64 x86_64 GNU/Linux

How reproducible: Reproducible


Steps to Reproduce:
1. Bind a vfio-pci port before OVS installation; Should see
ll /dev/vfio
total 0
crw-------. 1 root root 239,   0 Apr 15 14:44 18
 
2. Install OVS
3. start OVS; Should see the Permission denied error.

Actual results:


Expected results:


Additional info:

Comment 5 Aaron Conole 2018-09-11 14:40:09 UTC
There isn't a good way to solve this.  The issue is that the udev rules come with openvswitch to setup vfio devices accordingly.  Without openvswitch package, there's nothing sane we can do.  Closing as WONTFIX - if you figure out a better way of realizing this feature, feel free to reopen.