Bug 1789564 - Failed to allocate a SRIOV VF to VMI
Summary: Failed to allocate a SRIOV VF to VMI
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Container Native Virtualization (CNV)
Classification: Red Hat
Component: Networking
Version: 2.2.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 2.4.0
Assignee: Petr Horáček
QA Contact: Yan Du
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-01-09 20:05 UTC by sgott
Modified: 2020-07-28 19:09 UTC (History)
6 users (show)

Fixed In Version: virt-operator-container-v2.3.0-30 hco-bundle-registry-container-v2.2.0-363
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-07-28 19:09:38 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github kubevirt kubevirt issues 2888 0 None closed [fix] allow virt-launcher to write to sysfs 2020-05-13 18:33:59 UTC
Red Hat Product Errata RHSA-2020:3194 0 None None None 2020-07-28 19:09:53 UTC

Description sgott 2020-01-09 20:05:32 UTC
Description of problem:
Subsequent to the stable branch for CNV 2.2.0 being created an selinux issue affecting SRIOV was noted and fixed: https://github.com/kubevirt/kubevirt/issues/2887

with the PR here: https://github.com/kubevirt/kubevirt/issues/2887

This was never backported. Without this, SRIOV devices cannot be allocated in VMIs when using SELinux.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 sgott 2020-01-09 20:14:59 UTC
Correct URL to PR is:

https://github.com/kubevirt/kubevirt/issues/2888

Comment 4 Fabian Deutsch 2020-01-14 16:10:16 UTC
Moving this back to assigned, as the current patch does not address the issue on RHCOS

Comment 6 sgott 2020-02-19 17:10:09 UTC
To verify: ensure virt-launcher pod runs as spc_t when deployed via HCO

Comment 13 Dan Kenigsberg 2020-03-05 19:07:48 UTC
Stu, this bug has patches fixing it. Are they in 2.2.0?

Comment 14 sgott 2020-03-05 19:15:13 UTC
No, they are not.

Comment 18 Petr Horáček 2020-04-16 15:25:43 UTC
This should be now fixed. We can verify it as soon as we have SR-IOV cluster set up.

Comment 19 Yan Du 2020-04-17 06:53:56 UTC
we don't have an available SR-IOV cluster for now, will verify the bug once get the SR-IOV cluster.

Comment 20 Yan Du 2020-05-15 07:03:41 UTC
Test on OCP4.4 CNV2.3
Client Version: 4.4.3
Server Version: 4.4.0-rc.13
Kubernetes Version: v1.17.1

SR-IOV network can be attached to the VM, didn't see any selinux permission error in virt-launcher when selinux is enabled

Comment 23 errata-xmlrpc 2020-07-28 19:09:38 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/RHSA-2020:3194


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