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 1484230 - update-device can not update the tx_queue_size or rx_queue_size in interface section while the command report successfully
Summary: update-device can not update the tx_queue_size or rx_queue_size in interface ...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.4
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-08-23 05:08 UTC by yalzhang@redhat.com
Modified: 2018-04-10 10:56 UTC (History)
3 users (show)

Fixed In Version: libvirt-3.7.0-1.el7
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-04-10 10:55:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2018:0704 0 None None None 2018-04-10 10:56:40 UTC

Description yalzhang@redhat.com 2017-08-23 05:08:03 UTC
Description of problem:
update-device can not update the tx_queue_size or rx_queue_size in interface section while the command report successfully updated

Version-Release number of selected component (if applicable):
libvirt-3.2.0-14.el7_4.3.x86_64

How reproducible:
100%

Steps to Reproduce:
1. start a guest with tx_queue_size and rx_queue_size setting in interface section
# virsh dumpxml rhel7.4 | grep /interface -B7
    <interface type='vhostuser'>
      <mac address='52:54:00:93:51:db'/>
      <source type='unix' path='/var/run/openvswitch/vhost-user1' mode='client'/>
      <model type='virtio'/>
      <driver name='vhost' queues='5' rx_queue_size='1024' tx_queue_size='512'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

2. update the tx_queue_size and rx_queue_size by update-device
# cat inter.xml
   <interface type='vhostuser'>
      <mac address='52:54:00:93:51:db'/>
      <source type='unix' path='/var/run/openvswitch/vhost-user1' mode='client'/>
      <model type='virtio'/>
      <driver name='vhost' queues='5' rx_queue_size='256' tx_queue_size='256'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

# virsh update-device rhel7.4 inter.xml
Device updated successfully

# virsh dumpxml rhel7.4 | grep 'vhost'
    <interface type='vhostuser'>
      <source type='unix' path='/var/run/openvswitch/vhost-user1' mode='client'/>
      <driver name='vhost' queues='5' rx_queue_size='1024' tx_queue_size='512'/>


Actual results:
in step 2, the update-device return success but in fact no change for the tx_queue_size and rx_queue size attributes.

Expected results:
the update-device return error like:
error: Failed to update device from inter.xml
error: Operation not supported: cannot modify virtio network device driver attributes

or make changes on the xml and on the guest accordingly.

Additional info:
N/A

Comment 2 Michal Privoznik 2017-08-31 09:39:16 UTC
Patch proposed upstream:

https://www.redhat.com/archives/libvir-list/2017-August/msg01016.html

Comment 3 Michal Privoznik 2017-09-01 08:54:58 UTC
I've pushed the patch upstream:

ommit f0607f394c5567f3a39b4037bb6fd623363e5aa6
Author:     Michal Privoznik <mprivozn>
AuthorDate: Thu Aug 31 11:33:06 2017 +0200
Commit:     Michal Privoznik <mprivozn>
CommitDate: Fri Sep 1 09:50:44 2017 +0200

    qemu: Forbid rx/tx_queue_size change explicitly
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1484230
    
    When updating a virtio enabled vNIC and trying to change either
    of rx_queue_size or tx_queue_size success is reported although no
    operation is actually performed. Moreover, there's no way how to
    change these on the fly. This is due to way we check for changes:
    explicitly for each struct member. Therefore it's easy to miss
    one.
    
    Signed-off-by: Michal Privoznik <mprivozn>

v3.7.0-rc2-3-gf0607f394

Comment 5 yalzhang@redhat.com 2017-09-07 06:28:54 UTC
test on libvirt-3.7.0-2.el7.x86_64, the result is as expected, set this bug to be verified.

live update rx_queue_size or tx_queue_size will report error.

# virsh dumpxml rhel7.4 | grep /interface -B8
    <interface type='vhostuser'>
      <mac address='52:54:00:93:51:db'/>
      <source type='unix' path='/var/run/openvswitch/vhost-user1' mode='client'/>
      <target dev='vhost-user1'/>
      <model type='virtio'/>
      <driver name='vhost' rx_queue_size='1024' tx_queue_size='512'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>

# cat interface.xml
<interface type='vhostuser'>
      <mac address='52:54:00:93:51:db'/>
      <source type='unix' path='/var/run/openvswitch/vhost-user1' mode='client'/>
      <target dev='vhost-user1'/>
      <model type='virtio'/>
      <driver name='vhost' rx_queue_size='512' tx_queue_size='512'/>
      <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 virtio network device driver attributes

Comment 9 errata-xmlrpc 2018-04-10 10:55:31 UTC
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


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