Bug 1147468
Summary: | Report "The specified OVF archive is not a valid OVF archive" during select boot vm from disk | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | wanghui <huiwa> | ||||||
Component: | ovirt-hosted-engine-setup | Assignee: | Sandro Bonazzola <sbonazzo> | ||||||
Status: | CLOSED ERRATA | QA Contact: | meital avital <mavital> | ||||||
Severity: | high | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | 3.5.0 | CC: | aberezin, cshao, ecohen, fdeutsch, gklein, hadong, iheim, leiwang, lsurette, sbonazzo, yaniwang, ycui | ||||||
Target Milestone: | --- | ||||||||
Target Release: | 3.5.0 | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | integration | ||||||||
Fixed In Version: | ovirt-hosted-engine-setup-1.2.1-1.el7 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-02-11 20:41:17 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1094719, 1147536, 1164308, 1164311 | ||||||||
Attachments: |
|
Created attachment 942267 [details]
provide log info
Screenshot indeicates that the error is taking place during engine-setup. looking at the setup logs: 2014-09-29 09:18:42 INFO otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk._check_ovf:350 Checking OVF XML content (could take a few minutes depending on archive size) 2014-09-29 09:18:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk._parse_ovf:231 Extracting master/vms/5d5585b3-15bb-4982-a482-67002e4c85cf/5d5585b3-15bb-4982-a482-67002e4c85cf.ovf in /tmp/tmpsxjtIS 2014-09-29 09:18:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk._parse_ovf:238 ['master'] 2014-09-29 09:18:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk._parse_ovf:245 Configuring Disk 2014-09-29 09:18:42 DEBUG otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk._parse_ovf:309 Error parsing OVF file Traceback (most recent call last): File "/usr/share/ovirt-hosted-engine-setup/plugins/ovirt-hosted-engine-setup/vm/boot_disk.py", line 255, in _parse_ovf File "lxml.etree.pyx", line 2272, in lxml.etree._Attrib.__getitem__ (src/lxml/lxml.etree.c:55336) KeyError: '{http://schemas.dmtf.org/ovf/envelope/1/}disk-alias' 2014-09-29 09:18:42 ERROR otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk._parse_ovf:311 '{http://schemas.dmtf.org/ovf/envelope/1/}disk-alias' 2014-09-29 09:18:42 ERROR otopi.plugins.ovirt_hosted_engine_setup.vm.boot_disk boot_disk._customization:422 The specified OVF archive is not a valid OVF archive. Looks like the ovf xml file is not complete. It's at least missing mandatory value: {http://schemas.dmtf.org/ovf/envelope/1/}disk-alias that should exist also if empty. Please ensure that the OVF you're importing is a rhev-m compatible OVF with a structure like: |-- images | |-- <Image Group UUID> | |--- <Image UUID (this is the disk image)> | |--- <Image UUID (this is the disk image)>.meta |-- master | |---vms | |--- <UUID> | |--- <UUID>.ovf and a <UUID>.ovf file confroming to OVF 1 envelope schema: http://schemas.dmtf.org/ovf/envelope/1/ The OVA is actually created by koji/brew, so no interaction from our side. Are you using some library to parse the ovf? Yes, I use generateDS.py to generate a parser ovfenvelope.py from the OVF schema. Is koji/brew building a rhev-m compatible OVF? Can you import it inside a running RHEV-M instance without using v2v? (In reply to Sandro Bonazzola from comment #5) > Yes, I use generateDS.py to generate a parser ovfenvelope.py from the OVF > schema. > > Is koji/brew building a rhev-m compatible OVF? Can you import it inside a > running RHEV-M instance without using v2v? I'm double checking this, but actually yes - it has two ova formats OS and RHEV - and I'm using the rhev format, i.e.: Test version: rhev-hypervisor7-7.0-20141006.0.el7ev ovirt-node-3.1.0-0.20.20141006gitc421e04.el7.noarch.rpm ovirt-node-plugin-hosted-engine-0.2.0-2.0.el7.x86_64 ovirt-hosted-engine-setup-1.2.1-1.el7.noarch ovirt-host-deploy-1.3.0-1.el7.noarch ovirt-hosted-engine-ha-1.2.2-2.el7.noarch Test steps: 1. Clean install rhev-hypervisor7-7.0-20141006.0.el7ev 2. File ova path in TUI 3. Click <Setup Hosted Engine> Test result: 1. No such issue now. And vm can be created from OVA file. So this issue should be fixed in ovirt-hosted-engine-setup-1.2.1-1.el7.noarch. Thanks! Hui Wang Moving to VERIFIED as per comment #10 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-0161.html |
Created attachment 942266 [details] screen shot of the error Description of problem: It reports error as "The specified OVF archive is not a valid OVF archive" during select boot vm from disk. Version-Release number of selected component (if applicable): rhev-hypervisor7-7.0-20140926.0.iso ovirt-node-3.1.0-0.17.20140925git29c3403.el7.noarch ovirt-node-plugin-hosted-engine-0.2.0-2.0.el7.x86_64 ovirt-host-deploy-1.3.0-0.0.4.master.el7.noarch ovirt-host-deploy-offline-1.3.0-0.0.2.master.el7.x86_64 ovirt-hosted-engine-setup-1.2.0-1.el7.noarch ovirt-hosted-engine-ha-1.2.1-1.el7.noarch How reproducible: 100% Steps to Reproduce: 1. Clean install rhev-hypervisor7-7.0-20140926.0.iso 2. File ova path in TUI 3. Click <Setup Hosted Engine> Actual results: 1. First it will report error downloading OVA.(another issue will be reported separately) 2. After that, continue configure hosted engine, it will report error as rhevm-appliance.png shows. Expected results: 1. It should run vm without error. Additional info: