Created attachment 793189 [details] logs and screenshot Description of problem: Using 'External provider" new option on RHEV 3.3, I tried to import a RHOS image to rhev, using glance. The operation failed with this error on UI: "Error while executing action: Cannot import Virtual Machine Disk. The specified disk does not exist." Version-Release number of selected component (if applicable): rhevm-3.3.0-0.16.master.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1. add new external provider to rhev. I've added glance, click on 'test' to see if it's actually works. Make sure that you have images that can be imported from RHOS 2. try to import an image to a storage domain using 'import' option under the provider sub-tab on storage main tab Actual results: The operation will fail with this exception on engine.log: 2013-09-03 15:49:58,136 ERROR [org.ovirt.engine.core.bll.ImportRepoImageCommand] (ajp-/127.0.0.1:8702-8) [2e5ab859] Unable to get the disk image from the provider proxy: java.lang.RuntimeException: Unable to recog nize QCOW2 format Additional info: logs and screenshot
The relevant image was advertised as bare-qcow2 format in glance: # glance image-list +--------------------------------------+-----------------+-------------+------------------+------------+--------+ | ID | Name | Disk Format | Container Format | Size | Status | +--------------------------------------+-----------------+-------------+------------------+------------+--------+ | a32222e7-f879-41ab-b66b-5cad299b0b8d | test | qcow2 | bare | 31357907 | active | +--------------------------------------+-----------------+-------------+------------------+------------+--------+ But instead the content wasn't a valid qcow2 image: # glance image-download --file test.qcow2 a32222e7-f879-41ab-b66b-5cad299b0b8d # file test.qcow2 test.qcow2: LZMA compressed data, streamed Therefore the error: 2013-09-03 15:49:58,136 ERROR [org.ovirt.engine.core.bll.ImportRepoImageCommand] (ajp-/127.0.0.1:8702-8) [2e5ab859] Unable to get the disk image from the provider proxy: java.lang.RuntimeException: Unable to recognize QCOW2 format Sadly glance doesn't protect against having/providing invalid qcow2 images (or any other format) and the engine backend needs to discover the qcow2 header in order to identify the virtual image size (to be kept in the image db entry). If there's anything to do here maybe it's just to improve the error message.
Proper error message is shown when a wrong image format is imported from glance: "Error while executing action: Cannot import Virtual Machine Disk. Either the image is missing, or its format is corrupted or unrecognizable." Verified on is18
Closing - RHEV 3.3 Released