Bug 1392209

Summary: VM statistics always show zero consumption via REST API
Product: [oVirt] ovirt-engine Reporter: Artyom <alukiano>
Component: BLL.VirtAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Artyom <alukiano>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.1.0CC: ahadas, bugs, juan.hernandez, tjelinek
Target Milestone: ovirt-4.1.0-alphaKeywords: AutomationBlocker, Regression, Triaged
Target Release: 4.1.0.2Flags: rule-engine: ovirt-4.1+
rule-engine: blocker+
rule-engine: planning_ack+
tjelinek: devel_ack+
mavital: testing_ack+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:40:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
screenshot and REST response none

Description Artyom 2016-11-06 09:06:18 UTC
Created attachment 1217704 [details]
screenshot and REST response

Description of problem:
VM statistics always show zero consumption via REST API

Version-Release number of selected component (if applicable):
ovirt-engine-4.1.0-0.0.master.20161102211241.git5724b88.el7.centos.noarch

How reproducible:
Always

Steps to Reproduce:
1. Start the VM
2. Create CPU load on the VM
3. 

Actual results:
UI show me correct CPU usage for VM and REST show me 0

Expected results:
REST show correct CPU and memory usage

Additional info:
You can see REST and UI output under the attachment

Comment 1 Sandro Bonazzola 2016-12-12 13:58:39 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 2 Artyom 2016-12-13 14:45:18 UTC
Verified on ovirt-engine-4.1.0-0.2.master.20161212172238.gitea103bd.el7.centos.noarch

<statistic href="/ovirt-engine/api/vms/52dba9b9-0e10-4f03-b160-3635e78e70f1/statistics/ef802239-b74a-329f-9955-be8fea6b50a4" id="ef802239-b74a-329f-9955-be8fea6b50a4">
<name>cpu.current.guest</name>
<description>CPU used by guest</description>
<kind>gauge</kind>
<type>decimal</type>
<unit>percent</unit>
<values>
<value>
<datum>0.54</datum>
</value>
</values>
<vm href="/ovirt-engine/api/vms/52dba9b9-0e10-4f03-b160-3635e78e70f1" id="52dba9b9-0e10-4f03-b160-3635e78e70f1" />
 </statistic>
...

Comment 3 Red Hat Bugzilla Rules Engine 2016-12-27 16:39:44 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.