Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1104661 - zero returncode on error
zero returncode on error
Status: CLOSED ERRATA
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-image-uploader (Show other bugs)
3.5.0
Unspecified Unspecified
medium Severity medium
: ovirt-4.0.0-alpha
: 4.0.0
Assigned To: Lev Veyde
Gonza
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-06-04 09:04 EDT by Petr Beňas
Modified: 2016-08-23 17:00 EDT (History)
10 users (show)

See Also:
Fixed In Version: ovirt 4.0.0 alpha1
Doc Type: Bug Fix
Doc Text:
Previously, a returncode of 0 was returned, even if something went wrong during the file upload phase. Now, this has been corrected and makes the program return ExitCodes.UPLOAD_ERR code (3) if something went wrong during the file upload phase.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-08-23 17:00:04 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: Integration
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
oVirt gerrit 47501 master MERGED ovirt-image-uploader: return non-zero returncodes Never
Red Hat Product Errata RHEA-2016:1746 normal SHIPPED_LIVE ovirt-image-uploader bug fix and enhancement update for RHV 4.0 2016-09-02 18:08:56 EDT

  None (edit)
Description Petr Beňas 2014-06-04 09:04:16 EDT
Description of problem:
When an image is uploaded twice with the --ovf-id option, error is properly reported, but the returncode is zero. 

Version-Release number of selected component (if applicable):
rhevm-image-uploader-3.4.0-2.el6ev.noarch

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:
Comment 2 Sandro Bonazzola 2015-02-23 09:28:49 EST
Not critical, not urgent, not a regression, postponing to 3.6
Comment 3 Gonza 2016-06-24 08:22:59 EDT
Verified with:
ovirt-image-uploader-4.0.0-1.el7ev.noarch

# engine-image-uploader -e export_domain -N appliance --ovf-id upload rhevm-appliance-20160623.0-1.x86_64.rhevm.ova 
WARNING: ovirt-image-uploader is deprecated in 4.0 and will be removed in 4.1
Please provide the REST API password for the admin@internal oVirt Engine user (CTRL+D to abort): 
ERROR: /tmp/tmpu5InQw/6f6d46f8-12a6-49c8-9814-c4903b95466f/master/vms/7b51fb3b-c42b-4f0b-89ce-a2d778a4734e/7b51fb3b-c42b-4f0b-89ce-a2d778a4734e.ovf exists on 10.34.63.199.  Either remove it or supply the --force option to overwrite it.
# echo $?
3
Comment 5 errata-xmlrpc 2016-08-23 17:00:04 EDT
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-1746.html

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