Bug 1309275

Summary: "Actual size" field in disk information tab is always empty
Product: Red Hat CloudForms Management Engine Reporter: Prasad Mukhedkar <pmukhedk>
Component: ProvidersAssignee: Moti Asayag <masayag>
Status: CLOSED ERRATA QA Contact: Ilanit Stein <istein>
Severity: high Docs Contact:
Priority: medium    
Version: 5.4.0CC: cbolz, jfrey, jhardy, masayag, obarenbo, oourfali, simaishi
Target Milestone: GA   
Target Release: 5.6.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: rhev
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-06-29 15:38:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1310121    
Attachments:
Description Flags
cfme 5.5.0.13 screenshot
none
cfme 5.6.0.7 screenshot none

Description Prasad Mukhedkar 2016-02-17 11:10:54 UTC
Description of problem:

In cloudforms dashboard. A virtual machine's disk information tab has "Provisioned Size", "Used Size" and "Percent Used of Provisioned Size" 
fields among others. The Provisioned Size of virtual disk is shown correctly but "Used Size" is not captured and its always blank due to which "Percent Used of Provisioned Size" is also not correctly populated. 

Collecting "used size" information is very important for storage capacity planning. thin provisioned disk actual disk usage should shown as "Used Size"
and there should be a filter given to create a report based on "Used Size"
of disks. 

Version-Release number of selected component (if applicable):
5.5.0.13.20151201120956_653c0d4
RHEV 3.5 and later

How reproducible:
always 

Steps to Reproduce:
1. Go to virtual machine tab and select a virtual machine to open its property page. Look for "Datastore Allocation Summary" section and click the disk icon
in it.
 
2. "Number of Disks" for Virtual Machine "vm" page will open. Notice "Used Size" is set to blank and Percent Used Provisioned Space: is always 0.0 %

Actual results:

No used size information captured 

Expected results:

A disk's "used size" information should be captured

Additional info:

qemu-img info 5360be1d-4a2c-4623-be3e-3c4e81bf22a3
image: 5360be1d-4a2c-4623-be3e-3c4e81bf22a3
file format: raw 
virtual size: 10G (10737418240 bytes)      < should shown as provisioned disk
disk size: 1.8G < should shown as used size

Comment 2 Moti Asayag 2016-03-16 20:53:08 UTC
https://github.com/ManageIQ/manageiq/pull/7316

Comment 3 Prasad Mukhedkar 2016-05-13 13:10:19 UTC
*** Bug 1214143 has been marked as a duplicate of this bug. ***

Comment 4 Ilanit Stein 2016-05-30 12:45:32 UTC
Verified on cfme downstream version 5.6.0.7-beta2.6.20160516171555_b1be31f.

Reproduced first on cfme 5.5.0.13.20151201120956_653c0d4,
for a rhel7.2 VM, both thin & thick disks has empty content under "Used size",
and and 0 content under "Percent Used of Provisioned Size".

However, on cfme 5.6.0.7-beta2.6.20160516171555_b1be31f,
these 2 fields seem to have a valid content, for exact same VM disks.

Comment 5 Ilanit Stein 2016-05-30 12:52:41 UTC
Created attachment 1162794 [details]
cfme 5.5.0.13 screenshot

Comment 6 Ilanit Stein 2016-05-30 12:53:29 UTC
Created attachment 1162795 [details]
cfme 5.6.0.7 screenshot

Comment 7 Oved Ourfali 2016-05-30 13:18:28 UTC
*** Bug 1322764 has been marked as a duplicate of this bug. ***

Comment 9 errata-xmlrpc 2016-06-29 15:38:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348