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: | libvirt | Assignee: | Michal Privoznik <mprivozn> |
| Status: | CLOSED ERRATA | QA Contact: | yalzhang <yalzhang> |
| Severity: | medium | Docs Contact: | |
| Priority: | urgent | ||
| Version: | 7.4 | CC: | chhu, dyuan, fsoppels, jherrman, jsuchane, lmen, mkalinin, mprivozn, ojanas, rbalakri, rhodain, xuzhang, yalzhang |
| Target Milestone: | rc | Keywords: | 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
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.
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 |