Bug 1447618
Summary: | update-device failed to update the mtu of interface but return as succeed | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yalzhang <yalzhang> |
Component: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
Status: | CLOSED ERRATA | QA Contact: | yalzhang <yalzhang> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 7.4 | CC: | mprivozn, rbalakri, xuzhang |
Target Milestone: | rc | Keywords: | Upstream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-3.7.0-1.el7 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-10 10:43:32 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: |
Description
yalzhang@redhat.com
2017-05-03 10:43:27 UTC
Patch proposed upstream: https://www.redhat.com/archives/libvir-list/2017-June/msg00439.html I've just pushed patches upstream: commit 5f44d7e357f61f7be636a0e2e6d35453cbc3b589 Author: Michal Privoznik <mprivozn> AuthorDate: Thu Jun 8 13:45:31 2017 +0200 Commit: Michal Privoznik <mprivozn> CommitDate: Thu Jun 8 16:53:07 2017 +0200 qemuDomainChangeNet: Forbid changing MTU https://bugzilla.redhat.com/show_bug.cgi?id=1447618 Currently, any attempt to change MTU on an interface that is plugged to a running domain is silently ignored. We should either do what's asked or error out. Well, we can update the host side of the interface, but we cannot change 'host_mtu' attribute for the virtio-net device. Therefore we have to error out. Signed-off-by: Michal Privoznik <mprivozn> Reviewed-by: Laine Stump <laine> v3.4.0-82-g5f44d7e35 test on libvirt-3.7.0-2.el7.x86_64, the result is as expected, set this bug to be verified. Update mtu in a running guest it will error out: # cat interface.xml <interface type='network'> <mac address='52:54:00:21:e8:3f'/> <source network='default' bridge='virbr0'/> <target dev='vnet0'/> <model type='virtio'/> <mtu size='5000'/> <alias name='net0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> # virsh update-device rhel7.4 interface.xml error: Failed to update device from interface.xml error: Operation not supported: cannot modify MTU 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/RHEA-2018:0704 |