RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1516686 - Update the QoS setting in interface Unsuccessfully by update-device
Summary: Update the QoS setting in interface Unsuccessfully by update-device
Keywords:
Status: CLOSED DUPLICATE of bug 1454709
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.5
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Michal Privoznik
QA Contact: yalzhang@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-23 09:39 UTC by Jingjing Shao
Modified: 2017-11-27 02:55 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-27 02:55:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jingjing Shao 2017-11-23 09:39:32 UTC
Description:
Update the QoS setting in interface Unsuccessfully by update-device

Versions:
libvirt-3.9.0-2.virtcov.el7.x86_64
qemu-kvm-rhev-2.10.0-6.el7.x86_64

How reproducible:
100%

Steps:
1. Prepare a running guest with xml as below.

# virsh dumpxml rhel | grep /interface -B11
<interface type='network'>
<mac address='52:54:00:90:06:7a'/>
<source network='default'/>
<model type='virtio'/>
<bandwidth>
<inbound average='1000' peak='5000' burst='1024'/>
<outbound average='128' peak='256' burst='256'/>
</bandwidth>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>


2. Check the QoS  rules

#  tc filter show dev vnet0 parent ffff:
filter protocol all pref 49152 u32
filter protocol all pref 49152 u32 fh 800: ht divisor 1
filter protocol all pref 49152 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid :1 not_in_hw
  match 00000000/00000000 at 0
 police 0x1 rate 1024Kbit burst 256Kb mtu 64Kb action drop overhead 0b
        ref 1 bind 1


# tc class show dev vnet0
class htb 1:1 root leaf 2: prio 0 rate 8Mbit ceil 40Mbit burst 1Mb cburst 1600b


3. Update the xml info as below  

# cat interface.xml
<interface type='network'>
<mac address='52:54:00:90:06:7a'/>
<source network='default'/>
<model type='virtio'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
</interface>


# virsh update-device rhel interface.xml
Device updated successfully


4. Check QoS setting of interface

# virsh dumpxml rhel | grep /interface -B9
    <interface type='network'>
      <mac address='52:54:00:90:06:7a'/>
      <source network='default' bridge='virbr0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>



5. Check the QoS  rules
#  tc filter show dev vnet0 parent ffff:
filter protocol all pref 49152 u32
filter protocol all pref 49152 u32 fh 800: ht divisor 1
filter protocol all pref 49152 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid :1 not_in_hw
  match 00000000/00000000 at 0
 police 0x1 rate 1024Kbit burst 256Kb mtu 64Kb action drop overhead 0b
        ref 1 bind 1

# tc class show dev vnet0
class htb 1:1 root leaf 2: prio 0 rate 8Mbit ceil 40Mbit burst 1Mb cburst 1600b



Expected result:
The output should be none
#  tc filter show dev vnet0 parent ffff:
# tc class show dev vnet0


Actual result:
As the step5 shows


Addtional info:
If I delete the interface info and just add the xml to guest xml then start the guest

    <interface type='network'>
      <mac address='52:54:00:90:06:7a'/>
      <source network='default' bridge='virbr0'/>
      <target dev='vnet0'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>


Check the QoS  rules
# tc filter show dev vnet0 parent ffff:
# tc class show dev vnet0

Comment 2 yalzhang@redhat.com 2017-11-27 02:55:35 UTC

*** This bug has been marked as a duplicate of bug 1454709 ***


Note You need to log in before you can comment on or make changes to this bug.