Description of problem:
There is a new field, 'Actual Size', in the 'Images' tab of ISO Domain. The size reported for ISO images there appear to be wrong.
I have attached a screen-shot with the tab displayed as 'Images.png', and the size output from the backend nfs share is given below.
---------------------------------------------
# pwd
/srv/ISOstore/0adbece5-bf23-4195-866c-e3a3184cdea0/images/11111111-1111-1111-1111-111111111111
# ls -lh
total 12G
-rw-r-----. 1 vdsm kvm 4.1G Sep 9 16:29 RHEL5.9-Server-20121129.0-x86_64-DVD.iso
-rw-r-----. 1 vdsm kvm 3.5G Sep 9 17:35 RHEL6.4-20130130.0-Server-x86_64-DVD1.iso
-rw-r-----. 1 vdsm kvm 253M Sep 9 17:39 RHEV-toolsSetup_3.2_13.iso
-rw-r-----. 1 vdsm kvm 1.6G Sep 9 17:38 RHS-2.0-20130906.0-RHS-x86_64-DVD1.iso
-rw-r-----. 1 vdsm kvm 1.7G Sep 9 17:42 RHSS-2.1-20130907.0-RHS-x86_64-DVD1.iso
-rw-r-----. 1 vdsm kvm 2.9M Sep 9 17:40 virtio-win-1.6.5_amd64.vfd
-rw-r-----. 1 vdsm kvm 87M Sep 9 17:40 virtio-win-1.6.5.iso
-rw-r-----. 1 vdsm kvm 2.9M Sep 9 17:40 virtio-win-1.6.5_x86.vfd
---------------------------------------------
It can be seen that for the larger files, the size displayed at the admin portal UI is still '<1 GB'.
Version-Release number of selected component (if applicable):
RHEVM 3.3:
IS13 - rhevm-3.3.0-0.19.master.el6ev
How reproducible:
Steps to Reproduce:
1.Attach ISO Domain to Data Center
2.Upload ISO images using rhevm-iso-uploader
3.view size of ISO images at admin portal, by selecting ISO Domain, and Images tab under it
4. Compare with size of ISO images at backend nfs share
Actual results:
Even for large ISO images of size above 1 GB, the size displayed at the admin portal UI is still '<1 GB'.
Expected results:
The size displayed at the admin portal UI should be correct.
Additional info:
Size of images shown under 'images' sub-tab under an ISO domain is correct, according to their actual size under the export path.
For example:
Size of image 'RHEV-toolsSetup_2.3_276.iso' under the export path:
-rw-r--r-- 1 kvm kvm 124M Jul 2 2012 RHEV-toolsSetup_2.3_276.iso
Size of the image under 'images' sub-tab in UI:
RHEV-toolsSetup_2.3_276.iso ISO 123 MB
============
Verified with RHEV-3.4:
rhevm-3.4.0-0.2.master.el6ev.noarch