Bug 1171614

Summary: Change the OVA file format from gzip to tar while download which leads the error during configuring hosted engine with OVA type
Product: Red Hat Enterprise Virtualization Manager Reporter: wanghui <huiwa>
Component: ovirt-node-plugin-hosted-engineAssignee: Ryan Barry <rbarry>
Status: CLOSED ERRATA QA Contact: wanghui <huiwa>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.5.0CC: cshao, dfediuck, fdeutsch, gklein, gouyang, leiwang, rbarry, yaniwang, ycui
Target Milestone: ovirt-3.6.0-rcKeywords: ZStream
Target Release: 3.6.0Flags: ylavi: Triaged+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-plugin-hosted-engine-0.3.0-1.el7ev Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1198659 (view as bug list) Environment:
Last Closed: 2016-03-09 14:23:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1059435, 1198659, 1250199    

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