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

Bug 1692374

Summary: OVA files cannot be imported (Failed to extract OVA file)
Product: Red Hat Enterprise Virtualization Manager Reporter: Nisim Simsolo <nsimsolo>
Component: ovirt-engineAssignee: Nobody <nobody>
Status: CLOSED DUPLICATE QA Contact: meital avital <mavital>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.3.1CC: nsimsolo, ratamir, rbarry, Rhev-m-bugs
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: 2019-03-27 11:59:06 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
vdsm.log
none
engine.log
none
ovirt-query-ova-ansible log
none
ovirt-import-ova-ansible log none

Description Nisim Simsolo 2019-03-25 13:11:05 UTC
Description of problem:
Trying to import OVA file, failed with engine.log ERROR:
2019-03-25 14:56:35,851+02 ERROR [org.ovirt.engine.core.bll.exportimport.ExtractOvaCommand] (EE-ManagedThreadFactory-engineScheduled-Thread-16) [437ad252-1de4-47aa-9554-fa1eec
976d61] Failed to extract OVA file

and ovirt-import-ova-ansible.log:
STDOUT:

Traceback (most recent call last):
  File "/root/.ansible/tmp/ansible-tmp-1553518595.11-220475884943296/extract_ova.py", line 108, in <module>
    extract_disks(sys.argv[1], yaml.load(sys.argv[2]), yaml.load(sys.argv[3]))
  File "/root/.ansible/tmp/ansible-tmp-1553518595.11-220475884943296/extract_ova.py", line 96, in extract_disks
    image_guid = image_mappings[name] if image_mappings else name
TypeError: string indices must be integers, not str

This issue is true for RHV OVA files and VMware OVA files.
Same issue observed trying to import template as OVA.

Version-Release number of selected component (if applicable):
rhvm-4.3.2.1-0.1.el7.noarch
vdsm-4.30.11-1.el7ev.x86_64
qemu-kvm-rhev-2.12.0-21.el7.x86_64
sanlock-3.6.0-1.el7.x86_64
libvirt-client-4.5.0-10.el7_6.6.x86_64
virt-v2v-1.38.2-12.29.lp.el7ev.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Create VM.
2. Export VM as OVA.
3. Try to import OVA.

Actual results:
Import failed

Expected results:
Import should succeed.

Additional info:
engine.log, vdsm.log and ovirt-import-ova-ansible.log attached.

Comment 1 Nisim Simsolo 2019-03-25 13:14:22 UTC
Created attachment 1547696 [details]
vdsm.log

Comment 2 Nisim Simsolo 2019-03-25 13:14:58 UTC
Created attachment 1547697 [details]
engine.log

Comment 3 Nisim Simsolo 2019-03-25 13:15:24 UTC
Created attachment 1547698 [details]
ovirt-query-ova-ansible log

Comment 4 Nisim Simsolo 2019-03-25 13:15:50 UTC
Created attachment 1547699 [details]
ovirt-import-ova-ansible log

Comment 5 Ryan Barry 2019-03-27 11:59:06 UTC

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