Bug 1692374 - OVA files cannot be imported (Failed to extract OVA file)
Summary: OVA files cannot be imported (Failed to extract OVA file)
Keywords:
Status: CLOSED DUPLICATE of bug 1692332
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
urgent
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: meital avital
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-03-25 13:11 UTC by Nisim Simsolo
Modified: 2019-03-27 11:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-27 11:59:06 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
vdsm.log (692.04 KB, application/x-xz)
2019-03-25 13:14 UTC, Nisim Simsolo
no flags Details
engine.log (4.14 MB, text/plain)
2019-03-25 13:14 UTC, Nisim Simsolo
no flags Details
ovirt-query-ova-ansible log (14.64 KB, text/plain)
2019-03-25 13:15 UTC, Nisim Simsolo
no flags Details
ovirt-import-ova-ansible log (1.72 KB, text/plain)
2019-03-25 13:15 UTC, Nisim Simsolo
no flags Details

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 ***


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