Bug 1319044
Summary: | log error when <bandwidth> requested on a <interface type='hostdev'> | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yalzhang <yalzhang> |
Component: | libvirt | Assignee: | Laine Stump <laine> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.2 | CC: | dyuan, mzhan, rbalakri, yalzhang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.5-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:40:02 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
yalzhang@redhat.com
2016-03-18 14:17:36 UTC
There are some SRIOV network cards that support simple QoS settings for VFs (I can't remember which card I saw it on, but it was one that I don't have). So in general this just needs to be added to validation of the config - if it's a hostdev interface and there is a bandwidth setting, then we should flag it as an error. One problem with this is that there may be existing setups in the wild that are putting a <bandwidth> element into every interface, and upgrading libvirt then cause a previously working configuration to fail. Patch pushed upstream to log error when <bandwidth> element is encountered in a hostdev interface definition: commit 9575cb855403f6aa20ffb0ae8c12179115c4aced Author: Laine Stump <laine> Date: Wed Apr 27 12:57:08 2016 -0400 network: log error when <bandwidth> is requested for hostdev interfaces verified on libvirt-1.3.5-1.el7.x86_64, the result is as expected. 1. hotplug an interface # virsh attach-interface R7.2 hostdev 0000:03:10:5 --inbound 1000,2000,1024 --managed error: Failed to attach interface error: unsupported configuration: bandwidth settings are not supported for hostdev interfaces 2. plug an interface when the guest is offline # virsh attach-interface R7.2 hostdev 0000:03:10:5 --inbound 1000,2000,1024 --managed --persistent Interface attached successfully # virsh start R7.2 error: Failed to start domain R7.2 error: unsupported configuration: bandwidth settings are not supported for hostdev interfaces 3. start or create a guest with bandwidth defined in hostdev interface # virsh define R7.2.xml Domain R7.2 defined from R7.2.xml # virsh start R7.2 error: Failed to start domain R7.2 error: unsupported configuration: bandwidth settings are not supported for hostdev interfaces # virsh create R7.2.xml error: Failed to create domain from R7.2.xml error: unsupported configuration: bandwidth settings are not supported for hostdev interfaces 4.For a libvirt update, when a guest with hostdev interface is running on the old libvirt, and there is bandwidth defined in the interface, after update the libvirt to 1.3.5, the network still works fine in the guest. But after destroy, the guest can not start again with the same error message in step2. move the bug to verified. 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://rhn.redhat.com/errata/RHSA-2016-2577.html |