Bug 1318461 - engine-image-uploader fails when the VM contains snapshots
Summary: engine-image-uploader fails when the VM contains snapshots
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-image-uploader
Version: 3.6.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Rafael Martins
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-17 00:18 UTC by nijin ashok
Modified: 2022-04-16 09:23 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-03 10:10:47 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
debug log (56.98 KB, text/plain)
2016-03-17 00:24 UTC, nijin ashok
no flags Details
ovf file (26.14 KB, application/xml)
2016-03-17 00:25 UTC, nijin ashok
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-45748 0 None None None 2022-04-16 09:23:51 UTC
Red Hat Knowledge Base (Solution) 2263131 0 None None None 2016-04-19 10:00:01 UTC

Description nijin ashok 2016-03-17 00:18:46 UTC
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:

Comment 1 nijin ashok 2016-03-17 00:21:52 UTC
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
====

Comment 2 nijin ashok 2016-03-17 00:24:54 UTC
Created attachment 1137254 [details]
debug log

Comment 3 nijin ashok 2016-03-17 00:25:29 UTC
Created attachment 1137256 [details]
ovf file

Comment 4 Yaniv Lavi 2016-03-24 09:25:55 UTC
Do we support exporting with snapshots and importing this with the tool?

Comment 5 Allon Mureinik 2016-03-24 12:26:31 UTC
(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?

Comment 6 Sandro Bonazzola 2016-04-07 12:50:45 UTC
(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.

Comment 7 Yaniv Lavi 2016-05-09 11:01:30 UTC
oVirt 4.0 Alpha has been released, moving to oVirt 4.0 Beta target.

Comment 11 Yaniv Lavi 2016-06-02 08:20:37 UTC
How did we resolve this use case in the UI uploader? Do we support snapshots?

Comment 12 Allon Mureinik 2016-06-02 09:06:57 UTC
(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.

Comment 13 Rafael Martins 2016-09-12 13:27:41 UTC
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?

Comment 14 Yaniv Lavi 2016-09-13 11:36:18 UTC
(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?

Comment 15 Rafael Martins 2016-09-13 11:41:05 UTC
(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.

Comment 16 Sandro Bonazzola 2016-10-03 10:10:47 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.