Bug 1849992

Summary: Adding client.upload support for uploading images from ova files
Product: [oVirt] ovirt-imageio Reporter: Steven Rosenberg <srosenbe>
Component: DaemonAssignee: Daniel Erez <derez>
Status: CLOSED DUPLICATE QA Contact: Avihai <aefrat>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0.0CC: bugs, nsoffer, royoung, tnisan
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-23 11:32:34 UTC 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:

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: