Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1389382

Summary: Storage in Global utilization shows 0.0 Available of 0 TiB but sparkline shows values greater than 0
Product: [oVirt] ovirt-engine-dashboard Reporter: Lucie Leistnerova <lleistne>
Component: GeneralAssignee: Scott Dickerson <sdickers>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bugs, gshereme, lleistne, lsvaty, mgoldboi, oourfali
Target Milestone: ovirt-4.1.0-betaFlags: rule-engine: ovirt-4.1+
mgoldboi: planning_ack+
rule-engine: devel_ack+
lsvaty: testing_ack+
Target Release: ---   
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: 2017-02-15 14:54:07 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:
Attachments:
Description Flags
storage sparkline
none
engine logs none

Description Lucie Leistnerova 2016-10-27 13:51:11 UTC
Created attachment 1214619 [details]
storage sparkline

Description of problem:
Dashboard shows 0.0 Available of 0 TiB, even if one storage with 49 GB is active. On sparkline are values > 0 but tooltip shows only 0.0 TiB Used.
See attachment

Version-Release number of selected component (if applicable):
ovirt-engine-dashboard-1.0.5-1.el7ev.x86_64

How reproducible: always with storage that has small size


Actual results: 0.0 Available of 0 TiB, sparkline tooltips 0.0 TiB Used

Expected results: 32 Available of 49 GiB, sparkline tooltips >0.0 GiB Used


Additional info:

storage info

Size: 49 GB
Available: 32 GB
Used: 17 GB
Allocated: 40 GB

Comment 1 Yaniv Kaul 2016-10-30 08:06:09 UTC
Please add:
- Version
- Severity
- Is it a regression?
- Engine logs

What is 'storage that has small size' - less than 1TB? How small is it?

Comment 2 Lucie Leistnerova 2016-11-01 15:15:08 UTC
The version is 1.0.5 according to the rpm but I can't change it on this BZ. If I try to create new BZ for dashboard no other versions are in the selectbox.

In engine 4.0.4 with ovirt-engine-dashboard-1.0.4-1.el7ev.x86_64 it shows 0 available of 0 TiB so it's not a regression.

It shows 0.0 for storages lower than 50 GB.

Comment 3 Lucie Leistnerova 2016-11-01 15:28:35 UTC
Created attachment 1216148 [details]
engine logs

Comment 4 Scott Dickerson 2016-11-10 21:51:34 UTC
Added unit conversion to the sparkline tool tips.  This effects both the storage and memory use utilization trend cards.

The effect will convert the value from TiB down to GiB and MiB if necessary to get a non-zero value to display.  In the case of this specific bug, the 49.0 GiB will be displayed directly instead of a 0.049 TiB.

Comment 5 Pavel Novotny 2016-12-15 12:37:47 UTC
FailedQA in 
rhevm-4.0.6.3-0.1.el7ev.noarch
ovirt-engine-dashboard-1.0.6-1.el7ev.x86_64

I confirm that the unit conversion has been fixed for the sparkline tooltips.
It works well also for storage items in the "Top Utilized Resources (Storage)" dialog.

But the donut chart for storage util. still shows TiB no matter how big/small storage you add to the engine.

I have added a small storage (it's the only data storage in the engine):
  Size: 16 GB
  Available: 9 GB
  Used: 7 GB
  Allocated: < 1 GB

And the donut chart shows 0.0 TiB available/used while the sparkline tooltips shows correctly 7.0 GiB used.

See the screenshot attached for details.

Comment 6 Red Hat Bugzilla Rules Engine 2016-12-15 12:37:54 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.

Comment 7 Oved Ourfali 2016-12-15 13:05:14 UTC
Moving to 4.0.7 unless we see the failed QE is an error.

Comment 8 Scott Dickerson 2017-01-10 15:22:24 UTC
I added unit scaling for both the summary text and the donut chart.  Now, a brand new empty oVirt install will show "0.0 Available of 0 MiB" for Memory and Storage.  The values scale between TiB, GiB and MiB as appropriate just as it done in the sparkline tooltips.

Comment 9 Lucie Leistnerova 2017-02-02 16:38:53 UTC
summary text and donut chart shows X.X GiB when it is < 100G, otherwise it shows X.X TiB, that is OK
sparkline is also OK

verified in ovirt-engine-dashboard-1.1.0-1.el7ev.x86_64