Bug 1258758

Summary: [engine-image-uploader] Misleading error msg when wrong path for image is used
Product: Red Hat Enterprise Virtualization Manager Reporter: Gonza <grafuls>
Component: ovirt-image-uploaderAssignee: Rafael Martins <rmartins>
Status: CLOSED ERRATA QA Contact: Gonza <grafuls>
Severity: low Docs Contact:
Priority: medium    
Version: 3.6.0CC: gklein, juwu, lsurette, mgoldboi, rbalakri, Rhev-m-bugs, sbonazzo, yeylon, ykaul, ylavi
Target Milestone: ovirt-3.6.0-rcKeywords: EasyFix
Target Release: 3.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-03-09 20:01:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Integration RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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