Hide Forgot
Created attachment 1158428 [details] Negative storage utilization after one storage removal Description of problem: After removing one of two storages, the available space changes to negative number. 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. Add two storages to engine, each having: Size: 767 GB, Available: 215 GB, Used: 552 GB (hint: both storages reside on the same NFS server volume so they report same values) 2. Dashboard Storage utilization will report: 0.4 Available of 1.5 TB (= 2x 215 GB of 2x 767 GB); this is correct 3. Remove one storage. 4. Check again updated Dashboard Storage utilization. Actual results: See attached screenshot. Storage utilization is now: -0.3 Available of 0.7 TB Expected results: 0.2 Available of 0.7 TB Additional info: A guess the computation is: 0.4 Available before removal - 0.7 *storage size* to be removed = -0.3 Available but should be: 0.4 Available before removal - 0.2 Available to be removed = 0.2 Available
Update: After cca. 15 minutes (after DWH data pull?), the reported Storage utilization corrected itself to "0.2 Available of 0.7 TB". So the negative reported value is just temporary, however it is pretty glaring in the UI.
I believe this is a problem with the DWH that has been fixed. Updating the packages caused another issue with the DWH which has also been fixed. So hopefully once the new build is ready for this, that will also fix the problem in the dashboard.
Confirming that previous DWH was not working properly, which most probably caused the wrong available space to be reported in Dashboard. After updating to [1] I don't see errors in DWH log any more. But after 2 hours of running with functioning DWH, Dashboard still reports the same negative available space. @Alex, is it ok? Do I need to wait longer time before the value gets corrected? [1] ovirt-engine-dwh-4.0.0-0.0.master.20160523112155.gitb69e9ab.el7.centos.noarch ovirt-engine-4.0.0-0.0.master.20160523171412.git1a7a1f3.el7.centos.noarch
So I think I figured out the difference between what you did and what I did. You detached the storage domain, but didn't remove it. I did. The query didn't take the status of the detached storage domain into account. I am going to update the queries to do so.
rhevm-4.0.2.3-0.1.el7ev.noarch ovirt-engine-dashboard-1.0.1-0.el7ev.x86_64 The negative value for available space is no longer reported. But now there is still a time window, where after removing or just detaching a 2nd storage domain, the available space is incorrectly reported as 0 TiB. However, the zero value is corrected after few minutes. Environment: 2 NFS storages, each one has: Size 767 GB, Available: 224 GB, Used: 543 GB Take #1: * only 1 storage is present: Dashboard @ 4:53:13 PM: 0.2 Available of 0.7 TiB / 0.5 TiB Used * 2nd storage added: Dashboard @ 4:57:58 PM: 0.4 Available of 1.5 TiB / 1.1 TiB Used * 2nd storage detached (but not removed): Dashboard @ 5:03:05 PM: 0 Available of 0.7 TiB / 0.7 TiB Used <<-- WRONG Dashboard @ 5:27:03 PM: 0.2 Available of 0.7 TiB / 0.5 TiB Used <<-- CORRECT Take #2: * 2nd storage added: 5:38:53 PM: 0.4 Available of 1.5 TiB / 1.1 TiB Used * 2nd storage detached and removed: 5:43:59 PM - 0 Available of 0.7 TiB / 0.7 TiB Used <<-- WRONG 5:50:46 PM - 0.2 Available of 0.7 TiB / 0.5 TiB Used <<-- CORRECT Take #3: * 2nd storage added: 5:57:38 PM: 0.4 Available of 1.5 TiB / 1.1 TiB Used * 2nd storage detached (but not removed): 6:01:57 PM - 0 Available of 0.7 TiB / 0.7 TiB Used <<--WRONG 6:14:10 PM - 0.2 Available of 0.7 TiB / 0.5 TiB Used <<-- CORRECT
Moving to ASSIGNED FailedQA as for comment #5. Can we get a better update interval or remove the middle part of 0 available and update after 15 minutes to correct result?
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.
Iirc we have a fix not to show negative values. Vojtech, you pushed that, right?
Oved correct that should be in 1.0.2-1 however that is not the 'failed' condition. The failed condition is that it is reporting 0 available when in fact there is some available, it just hasn't gotten the updated data yet.
I see. As we collect DWH data only every 15 minutes, I don't see how we can fix that. Only the inventory part consist of "real time data". The rest aren't. Moving back to ON_QA. Another bug should be opened on the other issue, if any (as we might need to close this as wontfix).
I agree verifying this one as it is not reporting negative values anymore, will open new.
(In reply to Oved Ourfali from comment #8) > Iirc we have a fix not to show negative values. > Vojtech, you pushed that, right? Sorry for late response. Yes, this should be fixed in 4.0.2 (dashboard 1.0.2).