Bug 1301807 - regression issue of command cpu-stats output format
regression issue of command cpu-stats output format
Status: CLOSED NEXTRELEASE
Product: Virtualization Tools
Classification: Community
Component: libvirt (Show other bugs)
unspecified
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Libvirt Maintainers
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-25 21:07 EST by Luyao Huang
Modified: 2016-01-26 03:30 EST (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-26 03:30:01 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Luyao Huang 2016-01-25 21:07:24 EST
Description of problem:
regression issue of command cpu-stats output format

Version-Release number of selected component (if applicable):
v1.3.1-51-g356e28b

How reproducible:
100%

Steps to Reproduce:
1.prepare a running guest:

# virsh list
 Id    Name                           State
----------------------------------------------------
 12    rhel7.0-rhel                   running

2.
# virsh cpu-stats rhel7.0-rhel
CPU0:
	cpu_time         14401.507878990 seconds
	vcpu_time    14378732785511
CPU1:
	cpu_time         17558.281415903 seconds
	vcpu_time    17552658979921
CPU2:
	cpu_time         14952.897388627 seconds
	vcpu_time    14928170262203
CPU3:
	cpu_time         13846.326405979 seconds
	vcpu_time    13841347882842
Total:
	cpu_time         60759.013630088 seconds
	user_time           16.500000000 seconds
	system_time      22772.510000000 seconds



3.

Actual results:
vcpu_time output format is not user friendly

Expected results:
CPU0:
	cpu_time         14401.507878990 seconds
	vcpu_time        14378.732785511 seconds

Additional info:

Should be introduced in 57177f1abdb238811b75fb751dad0aa78aaea1c3
Comment 1 Peter Krempa 2016-01-26 03:30:01 EST
Fixed upstream:

commit 985f01a65fb84951bccee27ecf09860d3b7961ea
Author: Luyao Huang <lhuang@redhat.com>
Date:   Tue Jan 26 10:25:05 2016 +0800

    virsh: fix cpu-stats command output format issue
    
    After commit 57177f1, the cpu-stats command format change to:
    
    CPU0:
        cpu_time         14401.507878990 seconds
        vcpu_time    14378732785511
    
    vcpu_time is not user friendly. After this patch, it will
    change back:
    CPU0:
        cpu_time         14401.507878990 seconds
        vcpu_time        14378.732785511 seconds
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1301807
    
    Signed-off-by: Luyao Huang <lhuang@redhat.com>

v1.3.1-52-g985f01a

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