Bug 1337606

Summary: Global utilization: wrong initial values for available & total amount of CPU/Memory/Storage
Product: [oVirt] ovirt-engine-dashboard Reporter: Pavel Novotny <pnovotny>
Component: CoreAssignee: Alexander Wels <awels>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Novotny <pnovotny>
Severity: high Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: oourfali
Target Milestone: ovirt-4.0.0-rcFlags: rule-engine: ovirt-4.0.0+
rule-engine: planning_ack+
oourfali: devel_ack+
pnovotny: testing_ack+
Target Release: 1.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-05 08:04:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: UX RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1324860    
Attachments:
Description Flags
Dashboard - wrong Global utilization with 0 hosts & storages none

Description Pavel Novotny 2016-05-19 15:26:26 UTC
Created attachment 1159529 [details]
Dashboard - wrong Global utilization with 0 hosts & storages

Description of problem:
After fresh installation of engine with Dashboard,
the available and total amount of CPU/Memory/Storage shows 100%/1 GB/1 TB.
When there is no host or storage present yet, all should be 0 %/GB/TB.


Version-Release number of selected component (if applicable):
ovirt-engine-dashboard-0.0.1-0.0.20160511git4debbb1.el7.centos.noarch

How reproducible:
100%

Steps to Reproduce:
1. Have a fresh installation of ovirt-engine & ovirt-engine-dashboard
   (Make sure you have no hosts or storages there.)
2. Log into Webadmin and go to Dashboard tab (should be default).
3. In Global utilization, check values for available and total CPU, Memory and Storage.

Actual results:
CPU: 100% Available of 100%
Memory: 1 Available of 1 GB
Storage: 1 Available of 1 TB
See attached screenshot.

Expected results:
CPU: 0% Available of 0%
Memory: 0 Available of 0 GB
Storage: 0 Available of 0 TB

Additional info:

Comment 1 Yaniv Lavi 2016-05-23 13:26:03 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 2 Yaniv Lavi 2016-05-23 13:26:26 UTC
oVirt 4.0 beta has been released, moving to RC milestone.

Comment 3 Pavel Novotny 2016-06-24 13:30:30 UTC
Verified in 
ovirt-engine-dashboard-1.0.0-20160615git43298a4.el7ev.x86_64
rhevm-4.0.0.6-0.1.el7ev.noarch (build 4.0.0-19).

After a fresh installation of RHEV-M (or after all hosts, storages & VMs are removed), the values in Global Utilization are reported as follows:

CPU: 0% Available of 0% / donut: 0% Used
Memory: 0 Available of 0 GB / donut: 0 GB Used
Storage: 0 Available of 0 TB / donut: 0 TB Used

Comment 4 Sandro Bonazzola 2016-07-05 08:04:19 UTC
oVirt 4.0.0 has been released, closing current release.