Bug 1198659 - 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: ---
: 3.5.4
Assignee: Ryan Barry
QA Contact: Virtualization Bugs
URL:
Whiteboard: node
Depends On: 1171614 1200233
Blocks: 1193058 1198658
TreeView+ depends on / blocked
 
Reported: 2015-03-04 15:21 UTC by rhev-integ
Modified: 2016-02-10 20:09 UTC (History)
12 users (show)

Fixed In Version: ovirt-node-plugin-hosted-engine-0.2.0-11.0
Doc Type: Bug Fix
Doc Text:
Clone Of: 1171614
Environment:
Last Closed: 2015-09-03 17:54:38 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-2015:1733 0 normal SHIPPED_LIVE ovirt-node bug fix and enhancement update for RHEV 3.5.4 2015-09-03 21:54:11 UTC
oVirt gerrit 36136 0 master MERGED OVAs do not end with .gz, check magic numbers instead Never
oVirt gerrit 38218 0 ovirt-3.5 MERGED OVAs do not end with .gz, check magic numbers instead Never
oVirt gerrit 38824 0 master MERGED Don't let apache transparently deflate OVAs Never
oVirt gerrit 38830 0 ovirt-3.5 MERGED Don't let apache transparently deflate OVAs Never

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


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