Bug 1389382 - Storage in Global utilization shows 0.0 Available of 0 TiB but sparkline shows values greater than 0
Summary: Storage in Global utilization shows 0.0 Available of 0 TiB but sparkline show...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-dashboard
Classification: oVirt
Component: General
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ovirt-4.1.0-beta
: ---
Assignee: Scott Dickerson
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-10-27 13:51 UTC by Lucie Leistnerova
Modified: 2017-02-15 14:54 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-02-15 14:54:07 UTC
oVirt Team: UX
Embargoed:
rule-engine: ovirt-4.1+
mgoldboi: planning_ack+
rule-engine: devel_ack+
lsvaty: testing_ack+


Attachments (Terms of Use)
storage sparkline (37.39 KB, image/png)
2016-10-27 13:51 UTC, Lucie Leistnerova
no flags Details
engine logs (345.20 KB, application/x-gzip)
2016-11-01 15:28 UTC, Lucie Leistnerova
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 66368 0 master MERGED Add unit conversion to sparkline tooltips 2016-11-11 17:46:38 UTC
oVirt gerrit 66477 0 ovirt-engine-dashboard-1.0 MERGED Add unit conversion to sparkline tooltips 2016-11-11 18:03:38 UTC
oVirt gerrit 69929 0 master MERGED Add unit scaling to utilization trend card 2017-01-17 16:04:32 UTC
oVirt gerrit 70684 0 ovirt-engine-dashboard-1.1 MERGED Add unit scaling to utilization trend card 2017-01-17 17:18:41 UTC

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


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