Description of problem: engine-image-uploader is failing with below error, when the VM disk contains a snapshot. ERROR: Section/Disk/parentRef element. Message: Argument must be string or unicode. Version-Release number of selected component (if applicable): rhevm-3.6.3.4-0.1.el6.noarch rhevm-image-uploader-3.6.0-1.el6ev.noarch How reproducible: 100% Steps to Reproduce: 1. Create a VM and take a snapshot. 2. Export the VM to the export domain. 3. Create ovf from the export domain path using tar -zcvf file.ovf images/ master/ 4. Upload the image to RHEV-M engine-image-uploader --verbose upload -e export file.ovf 5. It fails with ERROR: Section/Disk/parentRef element. Message: Argument must be string or unicode. Actual results: engine-image-uploader is not working if the VM is having snapshot. Expected results: engine-image-uploader should work with snapshots Additional info:
The VM which tried. image_guid | image_group_id | parentid --------------------------------------+--------------------------------------+-------------------------------------- 134d7432-2c9c-4d73-b8a0-efe28deb335b | 341e4e29-41c4-4032-b7c0-32cab61be126 | 00000000-0000-0000-0000-000000000000 a2710e3e-5117-4966-89a3-370088b34142 | 341e4e29-41c4-4032-b7c0-32cab61be126 | 134d7432-2c9c-4d73-b8a0-efe28deb335b ==== qemu-img info images/341e4e29-41c4-4032-b7c0-32cab61be126/134d7432-2c9c-4d73-b8a0-efe28deb335b image: images/341e4e29-41c4-4032-b7c0-32cab61be126/134d7432-2c9c-4d73-b8a0-efe28deb335b file format: raw virtual size: 2.0G (2147483648 bytes) disk size: 1.7G qemu-img info images/341e4e29-41c4-4032-b7c0-32cab61be126/a2710e3e-5117-4966-89a3-370088b34142 image: images/341e4e29-41c4-4032-b7c0-32cab61be126/a2710e3e-5117-4966-89a3-370088b34142 file format: qcow2 virtual size: 2.0G (2147483648 bytes) disk size: 196K cluster_size: 65536 backing file: ../341e4e29-41c4-4032-b7c0-32cab61be126/134d7432-2c9c-4d73-b8a0-efe28deb335b (actual path: images/341e4e29-41c4-4032-b7c0-32cab61be126/../341e4e29-41c4-4032-b7c0-32cab61be126/134d7432-2c9c-4d73-b8a0-efe28deb335b) backing file format: raw Format specific information: compat: 0.10 ====
Created attachment 1137254 [details] debug log
Created attachment 1137256 [details] ovf file
Do we support exporting with snapshots and importing this with the tool?
(In reply to Yaniv Dary from comment #4) > Do we support exporting with snapshots and importing this with the tool? This tool is maintained by the Integration team, not the Storage team. Sandro?
(In reply to Allon Mureinik from comment #5) > (In reply to Yaniv Dary from comment #4) > > Do we support exporting with snapshots and importing this with the tool? > This tool is maintained by the Integration team, not the Storage team. > Sandro? Question was on export, not on import.
oVirt 4.0 Alpha has been released, moving to oVirt 4.0 Beta target.
How did we resolve this use case in the UI uploader? Do we support snapshots?
(In reply to Yaniv Dary from comment #11) > How did we resolve this use case in the UI uploader? Do we support snapshots? Nope. Not in 4.0, at least.
I can reproduce this error, that happens when uploading the image to engine with image-uploader. Do we still need to fix it, as this tool is deprecated and will be removed in 4.1?
(In reply to Rafael Martins from comment #13) > I can reproduce this error, that happens when uploading the image to engine > with image-uploader. Do we still need to fix it, as this tool is deprecated > and will be removed in 4.1? Did we ever support uploading using this tool?
(In reply to Yaniv Dary from comment #14) > (In reply to Rafael Martins from comment #13) > > I can reproduce this error, that happens when uploading the image to engine > > with image-uploader. Do we still need to fix it, as this tool is deprecated > > and will be removed in 4.1? > > Did we ever support uploading using this tool? Yes, it was the default way to upload an image until now. If you talk about supporting upload of images with snapshots, I'm not sure, maybe sandro can clarify.
We supported uploading images but without snapshots. The tool has been deprecated in 4.0 and is going to be removed in 4.1. ovirt-imagio should now be used to upload images.