Bug 1003902
Summary: | [engine-backend] [text-only] [external-provider] import of rhos image using glance over rhev fails with: "Unable to get the disk image from the provider proxy: java.lang.RuntimeException: Unable to recognize QCOW2 format" | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Elad <ebenahar> | ||||
Component: | ovirt-engine | Assignee: | Federico Simoncelli <fsimonce> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Elad <ebenahar> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 3.3.0 | CC: | abaron, acathrow, amureini, fsimonce, iheim, lpeer, Rhev-m-bugs, scohen, yeylon | ||||
Target Milestone: | --- | Keywords: | Triaged | ||||
Target Release: | 3.3.0 | Flags: | abaron:
Triaged+
|
||||
Hardware: | x86_64 | ||||||
OS: | Unspecified | ||||||
Whiteboard: | storage | ||||||
Fixed In Version: | is18 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | Type: | Bug | |||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
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 Closing - RHEV 3.3 Released |
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