Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
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 1627746

Summary: virsh domifstat tx_drop value is not correct for openvswitch vhostuser interfaces [rhel-7.4.z]
Product: Red Hat Enterprise Linux 7 Reporter: Oneata Mircea Teodor <toneata>
Component: libvirtAssignee: Michal Privoznik <mprivozn>
Status: CLOSED ERRATA QA Contact: yalzhang <yalzhang>
Severity: medium Docs Contact:
Priority: urgent    
Version: 7.4CC: chhu, dyuan, fsoppels, jherrman, jsuchane, lmen, mkalinin, mprivozn, ojanas, rbalakri, rhodain, xuzhang, yalzhang
Target Milestone: rcKeywords: Upstream, ZStream
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: libvirt-3.2.0-14.el7_4.12 Doc Type: Bug Fix
Doc Text:
Previously, diagnostic commands for virtual machines (VMs), such as "virsh domifstat", in some cases incorrectly reported 0 as the value of certain statistics. This update modifies the libvirtd service to fetch these statistics one by one instead of in groups. As a result, reporting 0 values for VM statistics is significantly less likely.
Story Points: ---
Clone Of: 1461270 Environment:
Last Closed: 2018-09-25 20:46:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1461270    
Bug Blocks:    

Description Oneata Mircea Teodor 2018-09-11 11:34:51 UTC
This bug has been copied from bug #1461270 and has been proposed to be backported to 7.4 z-stream (EUS).

Comment 7 yalzhang@redhat.com 2018-09-13 08:46:32 UTC
test on libvirt-3.2.0-14.el7_4.12.x86_64, the bug is fixed.

1. Prepare 2 guests, and the dpdp+openvswitch env, start the vms, then configure the ip address of the 2 vms. Do some network stress test, then check on host:

# virsh list 
 Id    Name                           State
----------------------------------------------------
 5     vhostuser1                     running
 6     vhostuser2                     running

# virsh domiflist vhostuser1
Interface  Type       Source     Model       MAC
-------------------------------------------------------
vhost-user2 vhostuser  -          virtio      52:54:00:93:51:dd

# virsh domifstat vhostuser1 vhost-user2; ovs-vsctl list interface |  grep vhost-user2 -A7
vhost-user2 rx_bytes 556060968
vhost-user2 rx_packets 383682
vhost-user2 rx_drop 501
vhost-user2 tx_bytes 763366122
vhost-user2 tx_packets 515945
vhost-user2 tx_errs 0

name                : "vhost-user2"
ofport              : 2
ofport_request      : []
options             : {}
other_config        : {}
statistics          : {rx_bytes=763366122, rx_errors=0, rx_packets=515945, tx_bytes=556060968, tx_dropped=501, tx_packets=383682}
status              : {}
type                : dpdkvhostuser

The result is expected:
vhost-user2 rx_bytes 556060968 =    tx_bytes=556060968 (statistics)
vhost-user2 rx_packets 383682 =     tx_packets=383682 (statistics)
vhost-user2 rx_drop 501 =           tx_dropped=501 (statistics)
vhost-user2 tx_bytes 763366122 =    rx_bytes=763366122 (statistics)
vhost-user2 tx_packets 515945 =     rx_packets=515945 (statistics)
vhost-user2 tx_errs 0 =             rx_errors=0 (statistics)
as they are from different perspective.

2. check for the other vm, the result is expected.

Comment 11 errata-xmlrpc 2018-09-25 20:46:11 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/RHBA-2018:2780