Bug 788993

Summary: Log Collector doesn't return appropriate return codes
Product: [Retired] oVirt Reporter: Lukas Bednar <lbednar>
Component: ovirt-engine-logcollectorAssignee: Sandro Bonazzola <sbonazzo>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, iheim, jkt, knesenko, lbednar, mgoldboi, sbonazzo
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: ovirt-log-collector-3.2.1-1.fc18.noarch.rpm Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-25 20:50:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lukas Bednar 2012-02-09 14:27:35 UTC
Description of problem:

when I mess up password for REST_API it is not able to retrieve data from hypervisors which means generate incomplete outputs, though that it returns 0.

Return values:
    0: The program ran to completion with no errors.
    1: The program encountered a critical failure and stopped.
    2: The program encountered a problem gathering data but was able to continue.


Version-Release number of selected component (if applicable):
ovirt-engine-log-collector-3.0.0_0001-1.6.fc16.x86_64

How reproducible:
just run LC with wrong password


Steps to Reproduce:
1. engine-log-collector -p WRONG_PASSWORD collect
2. echo $?
  
Actual results:
0

Expected results:
2 or something else != 0

Comment 1 Itamar Heim 2012-12-17 07:26:19 UTC
Closing old bugs. If this issue is still relevant/important in current version, please re-open the bug.