Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1578756

Summary: Importing an OVA made in ovirt failed on extract disks (ExtractOvaCommand)
Product: [oVirt] ovirt-engine Reporter: Liran Rotenberg <lrotenbe>
Component: BLL.VirtAssignee: Arik <ahadas>
Status: CLOSED CURRENTRELEASE QA Contact: Liran Rotenberg <lrotenbe>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2.3.5CC: ahadas, bugs
Target Milestone: ovirt-4.2.4Keywords: Automation
Target Release: ---Flags: rule-engine: ovirt-4.2+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-engine-4.2.4 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-26 08:45:03 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Virt RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
engine log
none
ovirt-import-ova-ansible none

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.