Bug 1849992 - Adding client.upload support for uploading images from ova files
Summary: Adding client.upload support for uploading images from ova files
Keywords:
Status: CLOSED DUPLICATE of bug 1849981
Alias: None
Product: ovirt-imageio
Classification: oVirt
Component: Daemon
Version: 2.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Daniel Erez
QA Contact: Avihai
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-06-23 11:25 UTC by Steven Rosenberg
Modified: 2020-06-23 12:52 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2020-06-23 11:32:34 UTC
oVirt Team: Storage
Embargoed:


Attachments (Terms of Use)

Description Steven Rosenberg 2020-06-23 11:25:53 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nir Soffer 2020-06-23 11:32:34 UTC
We already have bug 1849981 for this, with much more details.

*** This bug has been marked as a duplicate of bug 1849981 ***

Comment 2 Steven Rosenberg 2020-06-23 12:52:56 UTC
Description of problem: Currently, the ovirt-imageio is not supporting ova file uploading for ovirt 4.4, due to the deprication of the ovirt-imageio proxy, at least for the default installation. The client.upload api has been added which allows for the upload_disk.py script of the ovirt-engine-sdk to upload disk images directly from the disk image file by providing the file path and name. For the upload_ova_as_template.py and upload_ova_as_vm.py scripts, the disk image resides in the ova and worked via obtaining the file descriptor. 

The client.upload api does not support file descriptors, however. Therefore the ovirt-imageio client needs to be modified to support ova uploads. One option is to pass the file offset of the image within the client.upload api if supporting the file descriptor is not feasible.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. Run the upload_ova_as_template.py from the ovirt-engine-sdk
2.
3.

Actual results:

The script fails to upload the disk images of the ova file because the proxy is not available.

Expected results:

The upload_ova_as_template.py script shall upload all disk images and the template successfully.


Additional info:


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