Bug 1750219
Summary: | direct type interface should not accept "floor" setting in Qos inbound | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux Advanced Virtualization | Reporter: | yalzhang <yalzhang> | ||||||
Component: | libvirt | Assignee: | Pavel Mores <pmores> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Jing Qi <jinqi> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 8.1 | CC: | jdenemar, jinqi, lmen, mprivozn, xuzhang | ||||||
Target Milestone: | rc | Keywords: | Upstream | ||||||
Target Release: | 8.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | libvirt-6.2.0-1.el8 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2020-11-17 17:45:27 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: | |||||||||
Attachments: |
|
Description
yalzhang@redhat.com
2019-09-09 05:19:35 UTC
Hi, I'm looking into fixing this bug, however I'm not clear on some configuration details of the domain (especially how the macvtap0 interface is configured). Could you please attach the full domain XML, ideally both active and inactive? Thanks in advance! Created attachment 1652124 [details]
rhel8.1 inactive xml
Created attachment 1652125 [details]
rhel8.1 active xml
Pavel, Since Yalan didn't give the details about macvtap0, I guess the configuration from below part of her comment - #virsh domiflist rhel Interface Type Source Model MAC ------------------------------------------------------------------ macvtap0 direct ens1f0 virtio 52:54:00:c5:da:e0 macvtap1 direct direct-bridge virtio 52:54:00:54:bf:65 The configuration of macvtap0 should be as below - <interface type='direct'> <mac address='52:54:00:d9:00:6b'/> <source dev='eno1' mode='bridge'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/> </interface> The configuration of macvtap1 is as below - <interface type='network'> <mac address='52:54:00:d9:00:6a'/> <source network='direct-bridge'/> <bandwidth> <inbound average='200' peak='300' floor='100' burst='256'/> <outbound average='300' peak='200' burst='256'/> </bandwidth> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/> </interface> The 'direct-bridge' network configuration is as below - <network trustGuestRxFilters='yes'> <name>direct-bridge</name> <uuid>b9f35f3d-fbb9-45a4-b7c2-0abb6121138a</uuid> <forward dev='eno1' mode='bridge'> <interface dev='eno1'/> </forward> </network><network trustGuestRxFilters='yes'> <name>direct-bridge</name> <uuid>b9f35f3d-fbb9-45a4-b7c2-0abb6121138a</uuid> <forward dev='eno1' mode='bridge'> <interface dev='eno1'/> </forward> </network> Please contact me if there is any concern. Thanks! Jing Qi Correct last comment - The 'direct-bridge' network configuration is as below - <network trustGuestRxFilters='yes'> <name>direct-bridge</name> <uuid>b9f35f3d-fbb9-45a4-b7c2-0abb6121138a</uuid> <forward dev='eno1' mode='bridge'> <interface dev='eno1'/> </forward> </network> Posted a proposed fix: https://www.redhat.com/archives/libvir-list/2020-February/msg00403.html I've pushed patches upstream: ccf7567329 docs: QoS parameter 'floor' is supported for 'open' networks too e32934062d qemu: call networkPlugBandwidth() for all types of network aa985af212 qemu: check if 'floor' is supported for given interface and network 92a71456ac qemu: fail on attempt to set 'floor' if interface type is not 'network' 17f430eb5c qemu: test if bandwidth has 'floor' factored out to separate function v6.0.0-406-gccf7567329 Verified with libvirt-6.4.0-1.module+el8.3.0+6881+88468c00.x86_64 & qemu-kvm-5.0.0-0.module+el8.3.0+6620+5d5e1420.x86_64 1.virsh net-dumpxml direct-bridge <network connections='1' trustGuestRxFilters='yes'> <name>direct-bridge</name> <uuid>b9f35f3d-fbb9-45a4-b7c2-0abb6121138a</uuid> <forward dev='eth0' mode='bridge'> <interface dev='eth0' connections='1'/> </forward> </network> 2. <interface type='direct'> <mac address='52:54:00:d9:00:6a'/> <source network='direct-bridge' portid='32d5c732-81aa-43f2-901e-27b7756b3420' dev='eth0' mode='bridge'/> <bandwidth> <inbound average='200' peak='300' floor='100' burst='256'/> <outbound average='300' peak='200' burst='256'/> </bandwidth> <target dev='macvtap1'/> <model type='virtio'/> <alias name='net2'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </interface> 3.#virsh start avocado-vt-vm1 error: Failed to start domain avocado-vt-vm1 error: Operation not supported: Invalid use of 'floor' on interface with MAC address 52:54:00:d9:00:6a - 'floor' is only supported for interface type 'network' with forward type 'nat', 'route', 'open' or none 4.Change the domain xml to - <interface type='direct'> <mac address='52:54:00:d9:00:6b'/> <source dev='eth0' mode='bridge'/> <target dev='macvtap0'/> <model type='virtio'/> <alias name='net1'/> <address type='pci' domain='0x0000' bus='0x08' slot='0x00' function='0x0'/> </interface> <interface type='direct'> <mac address='52:54:00:d9:00:6a'/> <source network='direct-bridge' portid='32d5c732-81aa-43f2-901e-27b7756b3420' dev='eth0' mode='bridge'/> <bandwidth> <outbound average='300' peak='200' burst='256'/> </bandwidth> <target dev='macvtap1'/> <model type='virtio'/> <alias name='net2'/> <address type='pci' domain='0x0000' bus='0x07' slot='0x00' function='0x0'/> </interface> #virsh start avocado-vt-vm1 Domain avocado-vt-vm1 started 5. # virsh domiflist avocado-vt-vm1 Interface Type Source Model MAC ------------------------------------------------------------------- macvtap0 direct eth0 virtio 52:54:00:d9:00:6b macvtap1 direct direct-bridge virtio 52:54:00:d9:00:6a 6.# virsh domiftune avocado-vt-vm1 macvtap0 200,300,128,100 100,200,200 error: Unable to set interface parameters error: Operation not supported: Invalid use of 'floor' on interface with MAC address 52:54:00:d9:00:6b - 'floor' is only supported for interface type 'network' with forward type 'nat', 'route', 'open' or none # virsh domiftune avocado-vt-vm1 macvtap1 200,300,128,100 100,200,200 error: Unable to set interface parameters error: Operation not supported: Invalid use of 'floor' on interface with MAC address 52:54:00:d9:00:6a - 'floor' is only supported for interface type 'network' with forward type 'nat', 'route', 'open' or none From above test, the direct type interface in any connecting type does not accept the floor setting. 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 (virt:8.3 bug fix and enhancement update), 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:5137 |