Bug 1258758 - [engine-image-uploader] Misleading error msg when wrong path for image is used
Summary: [engine-image-uploader] Misleading error msg when wrong path for image is used
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-image-uploader
Version: 3.6.0
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-3.6.0-rc
: 3.6.0
Assignee: Rafael Martins
QA Contact: Gonza
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-01 08:28 UTC by Gonza
Modified: 2016-03-09 20:01 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Previously, when using the image uploader tool (ovirt-image-uploader) to upload an image, if an incorrect path to the image was provided, a misleading error message was returned. With this update, a more meaningful error message is returned.
Clone Of:
Environment:
Last Closed: 2016-03-09 20:01:25 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0390 0 normal SHIPPED_LIVE rhevm-image-uploader bug fix and enhancement update 2016-03-10 00:19:49 UTC
oVirt gerrit 46192 0 master MERGED ovirt-image-uploader: show informative msg if OVF data not found Never
oVirt gerrit 46371 0 ovirt-image-uploader-3.6 MERGED ovirt-image-uploader: show informative msg if OVF data not found Never

Description Gonza 2015-09-01 08:28:26 UTC
Description of problem:
Tried uploading an image to export domain with an incorrect path to the image file and got the following error msg displayed:
ERROR: not a gzip file
This could be misleading as this same error msg would be displayed when trying to upload an ovf image generated from VirtualBox.

Version-Release number of selected component (if applicable):
rhevm-image-uploader-3.6.0-0.2.master.git6846716.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. run "engine-image-uploader -e {export_domain_name} upload foo"

Actual results:
Misleading error msg is displayed:
"ERROR: not a gzip file"

Expected results:
More accurate error msg should be displayed. 

Additional info:
Suggestion: "ERROR: file does not exist"

Comment 2 Gonza 2015-10-07 13:22:15 UTC
Verified with:
rhevm-image-uploader-3.6.0-1.el6ev.noarch
rhevm-3.6.0-0.18.el6.noarch

Output now shows:
ERROR: OVF data not found: foo
Must be a gzip-compressed file or a directory.

Comment 4 errata-xmlrpc 2016-03-09 20:01:25 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/RHEA-2016-0390.html


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