Bug 1578756 - Importing an OVA made in ovirt failed on extract disks (ExtractOvaCommand)
Summary: Importing an OVA made in ovirt failed on extract disks (ExtractOvaCommand)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: BLL.Virt
Version: 4.2.3.5
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.4
: ---
Assignee: Arik
QA Contact: Liran Rotenberg
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-16 11:08 UTC by Liran Rotenberg
Modified: 2018-06-26 08:45 UTC (History)
2 users (show)

Fixed In Version: ovirt-engine-4.2.4
Clone Of:
Environment:
Last Closed: 2018-06-26 08:45:03 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2+


Attachments (Terms of Use)
engine log (352.65 KB, text/plain)
2018-05-16 11:08 UTC, Liran Rotenberg
no flags Details
ovirt-import-ova-ansible (1.27 KB, text/plain)
2018-05-16 11:09 UTC, Liran Rotenberg
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 91366 0 master MERGED ansible: support OVA import from mount points with no direct i/o 2018-05-21 07:38:06 UTC
oVirt gerrit 91451 0 ovirt-engine-4.2 MERGED ansible: support OVA import from mount points with no direct i/o 2018-05-22 09:16:06 UTC

Description Liran Rotenberg 2018-05-16 11:08:44 UTC
Created attachment 1437257 [details]
engine log

Description of problem:
Importing an OVA that was made in ovirt engine (exporting VM as OVA) failing.
The failure is on org.ovirt.engine.core.bll.exportimport.ExtractOvaCommand.


Version-Release number of selected component (if applicable):
ovirt-engine-4.2.3.5-0.1.el7.noarch
vdsm-4.20.27.1-1.el7ev.x86_64
libvirt-client-3.9.0-14.el7_5.3.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.2.x86_64


How reproducible:
100%

Steps to Reproduce:
1. Create a VM in RHEV.
2. Export the VM as OVA to one of the hosts.
3. Import VM using the OVA file made in step 2.

Actual results:
Import VM failed. 

Expected results:
VM import succeed.

Additional info:
From the ovirt-import-ova-ansible file:
Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-tmp-1526467453.39-83410404804672/extract_ova.py", line 109, in <module>
    extract_disks(sys.argv[1], sys.argv[2].split('+'))
  File "/root/.ansible/tmp/ansible-tmp-1526467453.39-83410404804672/extract_ova.py", line 74, in extract_disks
    fd = os.open(ova_path, os.O_RDONLY | os.O_DIRECT)
OSError: [Errno 22] Invalid argument: '/tmp/test.ova'

refers to:
https://github.com/oVirt/ovirt-engine/blob/master/packaging/playbooks/roles/ovirt-ova-extract/files/extract_ova.py

Comment 1 Liran Rotenberg 2018-05-16 11:09:29 UTC
Created attachment 1437258 [details]
ovirt-import-ova-ansible

Comment 2 Liran Rotenberg 2018-05-29 07:37:34 UTC
Verified on:
ovirt-engine-4.2.4-0.1.el7.noarch

Steps:
1. Create a VM in RHEV.
2. Export the VM as OVA to one of the hosts.
3. Import VM using the OVA file made in step 2.

Actual results:
VM import succeed.

Comment 3 Sandro Bonazzola 2018-06-26 08:45:03 UTC
This bugzilla is included in oVirt 4.2.4 release, published on June 26th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.4 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


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