Bug 1800505
Summary: | libvirtd crashed after setting domiftune outbound value | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | Lili Zhu <lizhu> |
Component: | libvirt | Assignee: | Ján Tomko <jtomko> |
Status: | CLOSED ERRATA | QA Contact: | Luyao Huang <lhuang> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 8.2 | CC: | chhu, jdenemar, jtomko, lmen, virt-maint, xuzhang, yalzhang, yanqzhan |
Target Milestone: | rc | Keywords: | Automation, Regression |
Target Release: | 8.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-6.0.0-5.el8 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-05-05 09:57:11 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
Lili Zhu
2020-02-07 09:47:23 UTC
Upstream patches: https://www.redhat.com/archives/libvir-list/2020-February/msg00328.html Fixed upstream: commit 457b0e74888f61b759e334d91479c258663835d5 Author: Ján Tomko <jtomko> CommitDate: 2020-02-10 16:41:52 +0100 qemu: preserve error on bandwidth rollback We call APIs that reset the error in the rollback code. Preserve the error from the original call that failed. This turns the boringly cryptic: error: Unable to set interface parameters error: An error occurred, but the cause is unknown to the unexpectedly anarchist: error: internal error: Child process (/usr/sbin/tc filter add dev vnet1 parent ffff: protocol all u32 match u32 0 0 police rate 4294968kbps burst 4294968kb mtu 64kb drop flowid :1) unexpected exit status 1: Illegal "rate" Illegal "police" Signed-off-by: Ján Tomko <jtomko> Fixes: f02e21cb3379a41cd42f2d8116f2d10dabace83b https://bugzilla.redhat.com/show_bug.cgi?id=1800505 Reviewed-by: Daniel Henrique Barboza <danielhb413> commit bd622e2a211aad449b54683e2ebd5e980418dd7c Author: Ján Tomko <jtomko> CommitDate: 2020-02-10 16:41:51 +0100 qemu: do not revert to NULL bandwidth Otherwise an attempt to set an invalid value: virsh domiftune rhel8.2 vnet0 --outbound 4294968 on an interface with no bandwidth set crashes. Signed-off-by: Ján Tomko <jtomko> Fixes: f02e21cb3379a41cd42f2d8116f2d10dabace83b https://bugzilla.redhat.com/show_bug.cgi?id=1800505 Reviewed-by: Daniel Henrique Barboza <danielhb413> git describe: v6.0.0-335-g457b0e7488 Verify this bug with libvirt-daemon-6.0.0-10.module+el8.2.0+5984+dce93708.x86_64: 1. prepare a running guest have a vNIC use default network # virsh dumpxml vm1 <interface type='network'> <mac address='52:54:00:18:0b:27'/> <source network='default' portid='9067d922-cdbd-4f2e-9feb-c680c8914f99' bridge='virbr0'/> <target dev='vnet0'/> <model type='rtl8139'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x02' slot='0x01' function='0x0'/> </interface> 2. set outbound value out of range and get a clearly error from tc command output # virsh domiftune vm1 vnet0 --outbound 4294968 error: Unable to set interface parameters error: internal error: Child process (tc filter add dev vnet0 parent ffff: protocol all u32 match u32 0 0 police rate 4294968kbps burst 4294968kb mtu 64kb drop flowid :1) unexpected exit status 1: Illegal "rate" Illegal "police" 3. check libvirtd status, there is no crash 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/RHBA-2020:2017 |