Created attachment 984136 [details] logs Description of problem: Disk's actual_size in UI showes the disk total used space and in REST api the actual_size represent the leaf volume size. Version-Release number of selected component (if applicable): vt13.8 How reproducible: 100% Steps to Reproduce: 1. create vm with disk (sparse + os or just dd few GB) 2. create snapshot 3. Actual results: Before the snapshot the actual in UI: 3GB in REST: 3GB After the snapshot the actual size in UI: 4GB in REST: 1GB Expected results: Additional info:
Tal, IIRC, the REST API displays volumes, not images, so isn't this the expected behavior?
Seems so and since it's showing the leaf volume the size is 1GB
(In reply to Tal Nisan from comment #2) > Seems so and since it's showing the leaf volume the size is 1GB So let's verify it acts the same in 3.4.0, and close this.
We agree with comment #1 but - We have no way to get the image actual size (like we get in the UI). Here, we get different volume each time although we are checking the same image and volume ID.
This is a bug, not a feature. This is needed to automate the feature testing. Changing the ticket to reflect this.
The REST API is self-documenting, I don't think we need to add any external documentation to this. Setting required-doctext-
This patch broke OST. It was partially reverted, and needs to be rethought.
Verified on ovirt-engine-4.2.0-0.0.master.20170915203601.git96df02d.el7.centos The <total_size> attr in rest api is now sexist and shows the total image size
*** Bug 1519329 has been marked as a duplicate of this bug. ***
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017. Since the problem described in this bug report should be resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report.