Bug 1301807 - regression issue of command cpu-stats output format
Summary: regression issue of command cpu-stats output format
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-01-26 02:07 UTC by Luyao Huang
Modified: 2016-01-26 08:30 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-01-26 08:30:01 UTC
Embargoed:


Attachments (Terms of Use)

Description Luyao Huang 2016-01-26 02:07:24 UTC
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 08:30:01 UTC
Fixed upstream:

commit 985f01a65fb84951bccee27ecf09860d3b7961ea
Author: Luyao Huang <lhuang>
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>

v1.3.1-52-g985f01a


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