sr-iov support: /dev/vfio/vfio missing from /etc/libvirt/qemu.conf

Bug #1628677 reported by JuanJo Ciarlante
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Nova Compute Charm
Fix Released
Medium
James Page
nova-compute (Juju Charms Collection)
Invalid
Medium
James Page

Bug Description

/dev/vfio/vfio needs to be added to /etc/libvirt/qemu.conf,
else sr-iov VMs fail with:

* /var/log/nova/nova-compute.log

libvirtError: internal error: process exited while connecting to monitor:
qemu-system-x86_64: -device vfio-pci,host=81:1f.5,id=hostdev0,bus=pci.0,addr=0x4:
vfio: failed to open /dev/vfio/vfio: Operation not permitted

* /var/log/libvirt/qemu/instance-*.log:

qemu-system-x86_64: -device vfio-pci,host=81:1f.5,id=hostdev0,bus=pci.0,addr=0x4: vfio: failed to open /dev/vfio/vfio: Operation not permitted
qemu-system-x86_64: -device vfio-pci,host=81:1f.5,id=hostdev0,bus=pci.0,addr=0x4: vfio: failed to setup container for group 117
qemu-system-x86_64: -device vfio-pci,host=81:1f.5,id=hostdev0,bus=pci.0,addr=0x4: vfio: failed to get group 117
qemu-system-x86_64: -device vfio-pci,host=81:1f.5,id=hostdev0,bus=pci.0,addr=0x4: Device initialization failed

James Page (james-page)
Changed in nova-compute (Juju Charms Collection):
assignee: nobody → James Page (james-page)
status: New → In Progress
importance: Undecided → Medium
Revision history for this message
Nobuto Murata (nobuto) wrote :

I found this: https://review.openstack.org/#/c/334334/
> Patch Set 2: Workflow-1
> I'm not convinced this is the correct fix - this might be a bug in libvirt itself.

Is there a bug number linked with libvirt to track the issue?

Revision history for this message
James Page (james-page) wrote :

Nobuto

I'll tie this into the testing I'm doing for SR-IOV alongside the charm enablement work.

Its possible it might be a libvirt bug but we don't have a reliable reproducer atm.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-nova-compute (master)

Fix proposed to branch: master
Review: https://review.openstack.org/427799

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-nova-compute (master)

Reviewed: https://review.openstack.org/427799
Committed: https://git.openstack.org/cgit/openstack/charm-nova-compute/commit/?id=ab33eeb2ee670ff869d1c629f40146dd184c585e
Submitter: Jenkins
Branch: master

commit ab33eeb2ee670ff869d1c629f40146dd184c585e
Author: James Page <email address hidden>
Date: Wed Feb 1 16:28:20 2017 +0000

    Add /dev/vfio/vfio to cgroup permissions

    Ensure that qemu instances can access /dev/vfio/vfio for connection
    to SR-IOV devices.

    Change-Id: Ib31e7a00eaf5a32e343a723de21866be2f0efc27
    Closes-Bug: 1628677

Changed in nova-compute (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in charm-nova-compute:
assignee: nobody → James Page (james-page)
importance: Undecided → Medium
status: New → Fix Committed
Changed in nova-compute (Juju Charms Collection):
status: Fix Committed → Invalid
James Page (james-page)
Changed in charm-nova-compute:
milestone: none → 17.02
James Page (james-page)
Changed in charm-nova-compute:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.