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
Please add: - Version - Severity - Is it a regression? - Engine logs What is 'storage that has small size' - less than 1TB? How small is it?
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.
Created attachment 1216148 [details] engine logs
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.
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.
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.
Moving to 4.0.7 unless we see the failed QE is an error.
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.
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