Bug 1198659

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: rhev-integ
Component: ovirt-node-plugin-hosted-engineAssignee: Ryan Barry <rbarry>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.5.0CC: cshao, dfediuck, dougsland, fdeutsch, gklein, gouyang, huiwa, leiwang, nsednev, yaniwang, ycui, ylavi
Target Milestone: ---Keywords: Triaged, ZStream
Target Release: 3.5.4Flags: ylavi: Triaged+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: node
Fixed In Version: ovirt-node-plugin-hosted-engine-0.2.0-11.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1171614 Environment:
Last Closed: 2015-09-03 17:54:38 UTC Type: ---
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: 1171614, 1200233    
Bug Blocks: 1193058, 1198658    

Comment 2 Ying Cui 2015-03-10 07:52:51 UTC
QE are blocked by bug 1200233, so we can not verify this bug on build rhev-hypervisor6-6.6-20150304 ovirt-node-plugin-hosted-engine-0.2.0-9.0.el6ev.x86_64

Comment 3 wanghui 2015-03-17 09:06:32 UTC
Test version:
rhev-hypervisor6-6.6-20150312.0.iso
ovirt-node-3.2.1-10.el6.noarch
ovirt-node-plugin-hosted-engine-0.2.0-10.0.el6ev.x86_64

Test steps:
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


Test result:
1. After finished download, it will report an error as follows.
=================================================================================
ERROR Downloader thread failed: Downloaded image is neither an OVA nor an ISO, can't use it
=================================================================================

2. #file /data/ovirt-hosted-engine-setup/rhevm-appliance-20150129.0-1.x86_64.rhevm.ova
/data/ovirt-hosted-engine-setup/rhevm-appliance-20150129.0-1.x86_64.rhevm.ova: POSIX tar archive (GNU)

3. Wget the ova file and check the file's type.
#file /data/ovirt-hosted-engine-setup/rhevm-appliance-20150129.0-1.x86_64.rhevm.ova
/data/ovirt-hosted-engine-setup/rhevm-appliance-20150129.0-1.x86_64.rhevm.ova: gzip compressed data, was "/tmp/koji/tasks/9858/8659858/ou", last modified: Thu Jan 29 11:58:50 2015, max compression

So the rhevh still change the file type when download from the remote, which will lead the ova file type check failed. Change the status from ON_QA to Assigned.

Comment 4 Ryan Barry 2015-03-17 16:48:42 UTC
I only tested this with nginx, which still doesn't have this problem.

It appears to be default gzip deflation in apache. The second patch removes the header saying we accept it.

Comment 6 wanghui 2015-03-30 03:12:24 UTC
Test version:
rhev-hypervisor6-6.6-20150327.0.el6ev
ovirt-node-3.2.2-1.el6.noarch
ovirt-node-plugin-hosted-engine-0.2.0-13.0.el6ev.noarch

Test steps:
1. Install rhev-hypervisor6-6.6-20150327.0.el6ev 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 results:
1. After step3, it can trigger to hosted engine setup process successfully.
2. # file rhevm.ova 
rhevm.ova: gzip compressed data, was "/tmp/koji/tasks/4448/8234448/ou", last modified: Wed Nov 12 18:49:05 2014, max compression
   So the type of rhevm.ova keep consistent with the original one.

So this issue is fixed in ovirt-node-plugin-hosted-engine-0.2.0-13.0.el6ev.noarch. Change the status from ON_QA to Verified.

Comment 11 errata-xmlrpc 2015-09-03 17:54:38 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-2015-1733.html