Bug 1171614 - Change the OVA file format from gzip to tar while download which leads the error during configuring hosted engine with OVA type
Summary: Change the OVA file format from gzip to tar while download which leads the er...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-node-plugin-hosted-engine
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
high
urgent
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Ryan Barry
QA Contact: wanghui
URL:
Whiteboard:
Depends On:
Blocks: 1059435 1198659 1250199
TreeView+ depends on / blocked
 
Reported: 2014-12-08 08:52 UTC by wanghui
Modified: 2016-03-09 14:23 UTC (History)
9 users (show)

Fixed In Version: ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1198659 (view as bug list)
Environment:
Last Closed: 2016-03-09 14:23:57 UTC
oVirt Team: Node
Target Upstream Version:
Embargoed:
ylavi: Triaged+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2016:0378 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update for RHEV 3.6 2016-03-09 19:06:36 UTC
oVirt gerrit 36136 0 'None' 'MERGED' 'OVAs do not end with .gz, check magic numbers instead' 2019-11-15 15:13:21 UTC
oVirt gerrit 38218 0 'None' 'MERGED' 'OVAs do not end with .gz, check magic numbers instead' 2019-11-15 15:13:21 UTC

Description wanghui 2014-12-08 08:52:03 UTC
Description of problem:
After download the ova file through UI, it will report error as follows during configuring hosted engine with OVA type.
================================================================================
[ ERROR ] Failed to execute stage 'Environment customization': not a gzip file
================================================================================
The format of ova file is tar type after download it while the original one is gzip type.

Version-Release number of selected component (if applicable):
rhev-hypervisor7-7.0-20141202.0.iso
ovirt-node-3.1.0-0.32.20141204gitb8c5332.el7.noarch
ovirt-node-plugin-hosted-engine-0.2.0-6.0.el7ev.x86_64
ovirt-host-deploy-1.3.0-1.el7.noarch
ovirt-hosted-engine-setup-1.2.1-7.el7ev.noarch
ovirt-hosted-engine-ha-1.2.4-2.el7ev.noarch
rhevm-appliance-20141112.0-1.x86_64.rhevm.ova

How reproducible:
100%

Steps to Reproduce:
1. Install rhev-hypervisor7-7.0-20141202.0.iso with TUI
2. Enable network
3. File 'Engine ISO/OVA URL for download' field with the accessable rhevm ova file
4. Check the rhevm ova file's type

Actual results:
1. After step3, it will report error as follows during configuring hosted engine process.  ================================================================================
   [ ERROR ] Failed to execute stage 'Environment customization': not a gzip file
================================================================================
2. After step4, the output is as follows.
   #file rhevm-appliance-20141112.0-1.x86_64.rhevm.ova
   rhevm-appliance-20141112.0-1.x86_64.rhevm.ova: POSIX tar archive (GNU)

Expected results:
1. It should configure hosted engine with ova type succeed.

Additional info:

Comment 1 Fabian Deutsch 2014-12-09 07:13:50 UTC
I am not sure if the download is corrupted, or hosted-engine-setup determining the incorrect file type here

Comment 3 Eyal Edri 2014-12-14 13:25:50 UTC
bug pushed to 3.5.1, removing from 3.5.0 trackers.

Comment 5 cshao 2015-03-17 02:28:25 UTC
Still met this issue on rhev-hypervisor6-6.6-20150312.0
ovirt-node-3.2.1-10.el6.noarch
ovirt-hosted-engine-ha-1.2.5-1.el6ev.noarch
ovirt-node-plugin-hosted-engine-0.2.0-10.0.el6ev.x86_64
ovirt-hosted-engine-setup-1.2.2-1.el6ev.noarch
ovirt-host-deploy-1.3.0-2.el6ev.noarch
rhevm-appliance-20150129.0-1.x86_64.rhevm.ova


An error appeared in the UI: RuntimeError("Downloaded image is neither an OVA nor an ISO, can't use it",)

# file rhevm-appliance-20150129.0-1.x86_64.rhevm.ova
rhevm-appliance-20150129.0-1.x86_64.rhevm.ova: POSIX tar archive (GNU)

Comment 6 Ryan Barry 2015-03-17 03:14:40 UTC
I'll check this in the morning. The plugin thinks the ova should be a gzip, and it looks like it may not be. I'll confirm the expected file type of the ova

Comment 12 wanghui 2015-10-28 04:07:43 UTC
Test version:
rhev-hypervisor7-7.2-20151025.0.el7ev
ovirt-node-3.3.0-0.18.20151022git82dc52c.el7ev.noarch
ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev.noarch

Test steps:
1. Install rhev-hypervisor7-7.2-20151025.0.el7ev with TUI
2. Enable network
3. File 'Engine ISO/OVA URL for download' field with the accessable rhevm ova file
4. Check the rhevm ova file's type

Test result:
1. # file rhevm-appliance-20151022.1-1.x86_64.rhevm.ova
rhevm-appliance-20151022.1-1.x86_64.rhevm.ova: gzip compressed data, was "/tmp/koji/tasks/1217/10001217/output_image/tmpGCnLxO/ova", last modified: Thu Oct 22 18:16:07 2015, max compression

So the ova which is downloaded by rhevh is gzip now. This issue is fixed in ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev.noarch. Change the status to verified.

Comment 14 errata-xmlrpc 2016-03-09 14:23:57 UTC
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-2016-0378.html


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