Description of problem: Currently Glance images returned by RESTAPI do not list their size or type (iso/disk), however the webadmin does list this information. Currently the only following information is returned: <image href="/api/images/25c5e604-c517-457b-9142-2a6cdfdfefe0" id="25c5e604-c517-457b-9142-2a6cdfdfefe0"> <actions> <link href="/api/images/25c5e604-c517-457b-9142-2a6cdfdfefe0/import" rel="import"/> </actions> <name>RHEL-ACTIVE</name> </image>
I consider gaps in REST API bugs, not feature. We should try to tackle this.
Bug is still valid. Steps to Reproduce: Using the REST API, run the following: Method: ------- GET URL: ---- http://xxxxx:8080/ovirt-engine/api/storagedomains/<ovirt-image-repository-id>/images/<glance-image-id> Response: Response Body (Raw): -------------------- <image href="/ovirt-engine/api/storagedomains/072fbaa1-08f3-4a40-9f34-a5ca22dd1d74/images/b393fde0-5a67-4323-a1ab-9031dd2f9b97" id="b393fde0-5a67-4323-a1ab-9031dd2f9b97"> <actions> <link href="/ovirt-engine/api/storagedomains/072fbaa1-08f3-4a40-9f34-a5ca22dd1d74/images/b393fde0-5a67-4323-a1ab-9031dd2f9b97/import" rel="import"/> </actions> <name>CentOS 6 Generic Cloud Image v1604 for x86_64</name> <storage_domain href="/ovirt-engine/api/storagedomains/072fbaa1-08f3-4a40-9f34-a5ca22dd1d74" id="072fbaa1-08f3-4a40-9f34-a5ca22dd1d74"/> </image>
All the patches seem to be merged, moving to MODIFIED. Shani, if something is missing here, please advise and return the BZ to POST.
Verified on ovirt-engine-4.2.0-0.0.master.20170903205106.gitb17261a.el7.centos <size>3623878656</size> <type>disk</type> Are now part of image object in api/storagedomains/{sd_id}/images/{img_id}
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.