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 1710772

Summary: Disk, Network and Memory stats are broken in the domain list view
Product: Red Hat Enterprise Linux 7 Reporter: g.danti
Component: virt-managerAssignee: Pavel Hrdina <phrdina>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.6CC: g.danti, juzhou, mzhan, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: virt-manager-1.5.0-6.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-06 13:08:01 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 Flags
screenshot-1 to reproduce bug
none
screenshot-2 to verify bug none

Description g.danti 2019-05-16 09:43:55 UTC
Description of problem:
virt-manager supports some simple stats directly in the default domain list view. However disk, network and memory stats are broken - the respective graph are *always* blank.

The issue seems caused by bad use of the "//" python operator, which erroneously sets to 0 (zero) the graph line. A fix for the problem seems to be present since virt-manager ver. 1.5.1-1 (see: https://koji.fedoraproject.org/koji/buildinfo?buildID=1051929), but it is unavailable in current RHEL 7.6 (which has version virt-manager-1.5.0).

As the fix really is trivial (replace "//" with "/" in two line of codes), please implement it or ship a newer virt-manager release. Please also note that this issue directly clashes with the released documentation you can find here: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_tuning_and_optimization_guide/sect-virtualization_tuning_optimization_guide-monitoring_in_virt_manager#sect-Managing_guests_with_the_Virtual_Machine_Manager_virt_manager-Displaying_Disk_IO

Version-Release number of selected component (if applicable):
virt-manager-1.5.0-1.el7.noarch

How reproducible:
Start virt-manager, enable disk, network and memory stats, launch a virtual machines with some disk/net load; the disk/mem/net stats graphs remains blank.

Steps to Reproduce:
1. launch virt-manager and enable disk/net/mem stats;
2. launch a virtual machine and put some disk/net load on it;
3. the disk/net/mem graphs on virt-manager domain lists remain blank

Actual results:
disk/net/mem graphs on virt-manager domain lists remain blank

Expected results:
disk/net/mem graphs on virt-manager domain lists are populated based on real load

Additional info:

Comment 4 zhoujunqin 2019-05-24 08:03:28 UTC
I can reproduce this bug with packages:
virt-manager-1.5.0-5.el7.noarch 

Result: disk/net/mem graphs on virt-manager domain lists remain blank (Please see screenshot-1)

Then try to verify this bug with new build:
virt-manager-1.5.0-6.el7.noarch
libvirt-4.5.0-18.el7.x86_64
qemu-kvm-rhev-2.12.0-29.el7.x86_64

Steps:
1. Launch virt-manager: 
# virt-manager

2. Click Edit->Preferences on Virtual Machine Manager window.

3. Click Polling on Preferences window, checking on "Poll Network I/O", "Poll Disk I/O" and "Poll Memory stats", then click "Close" button.

4. Click View->Graph-> checking on "Memory Usage", "Network I/O" and "Disk I/O".

5. Right click one VM and select Run to run it, then login vm to put some disk/net load on it.
eg: # dd if=/dev/zero of=/tmp/test bs=1M count=20000

6. Check the disk/net/mem graphs on virt-manager domain lists.

Result: Disk/net/mem graphs on virt-manager domain lists are populated based on real load.(Please see screenshot-2)

So I move this bug from ON_QA to VERIFIED based on above testing.

Comment 5 zhoujunqin 2019-05-24 08:04:21 UTC
Created attachment 1572825 [details]
screenshot-1 to reproduce bug

Comment 6 zhoujunqin 2019-05-24 08:04:57 UTC
Created attachment 1572826 [details]
screenshot-2 to verify bug

Comment 8 errata-xmlrpc 2019-08-06 13:08:01 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-2019:2232