Bug 569233

Summary: rhn-satellite-exporter should set exit value properly when finishing with a traceback
Product: Red Hat Satellite 5 Reporter: Milan Zázrivec <mzazrivec>
Component: ServerAssignee: Jan Pazdziora (Red Hat) <jpazdziora>
Status: CLOSED ERRATA QA Contact: Šimon Lukašík <slukasik>
Severity: medium Docs Contact:
Priority: low    
Version: 530CC: jpazdziora, slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-22 12:04:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 531600    

Description Milan Zázrivec 2010-02-28 23:14:37 UTC
Description of problem:
rhn-satellite-exporter

Version-Release number of selected component (if applicable):
spacewalk-backend-0.5.28-40

How reproducible:
Always

Steps to Reproduce:
1. Satellite 5.3, run rhn-satellite-exporter to create an export
2. When rhn-satellite-exporter runs, hit CTRL-C
3. # echo $?
  
Actual results:
rhn-satellite-exporter sets $? to 0 for system traceback.

Expected results:
Non zero return value for system traceback.

Additional info:
N/A

Comment 1 Jan Pazdziora (Red Hat) 2010-03-01 13:22:13 UTC
We might want to address

# rhn-satellite-exporter 
--channel not included!
# echo $?
0
# 

as well.

Comment 2 Jan Pazdziora (Red Hat) 2010-03-01 13:33:47 UTC
Taking.

Comment 3 Jan Pazdziora (Red Hat) 2010-03-01 13:34:38 UTC
Fixed in Spacewalk master f9c8706605a5094876186e325136179ce5f01e4e.

Comment 4 Jan Pazdziora (Red Hat) 2010-03-01 13:58:30 UTC
The commit 31ebf52e75766ff0387edfb5fa787e9bb7d64da9 in Spacewalk master is the final code so far.

Comment 5 Milan Zázrivec 2010-03-04 16:55:40 UTC
satellite.git: 06b22f4d387680722fb81292854337164061ad8a

Comment 6 Milan Zázrivec 2010-03-04 16:59:15 UTC
spacewalk-backend-0.5.28-40.1

Comment 8 Šimon Lukašík 2010-03-12 09:57:28 UTC
Taking QA contact for the bug verification.

Comment 10 Šimon Lukašík 2010-03-12 10:53:02 UTC
I just noticed that

# rhn-satellite-exporter 
--channel not included!

is still returning zero value! Is it blocker to VERIFIED or not? According to the #2 it seems to be optional... ?

Comment 11 Jan Pazdziora (Red Hat) 2010-03-15 13:51:24 UTC
(In reply to comment #10)
> I just noticed that
> 
> # rhn-satellite-exporter 
> --channel not included!
> 
> is still returning zero value! Is it blocker to VERIFIED or not? According to
> the #2 it seems to be optional... ?    

Nod. It's outside of the scope of this bugzilla. So we might consider it VERIFIED.

Comment 12 Milan Zázrivec 2010-03-16 14:30:48 UTC
spacewalk-backend-0.5.28-48

Comment 13 Šimon Lukašík 2010-03-17 11:28:27 UTC
Sanity check against spacewalk-backend-0.5.28-48 has been done!

Comment 14 Šimon Lukašík 2010-03-17 11:39:20 UTC
Sanity check against spacewalk-backend-0.5.28-49 has been done!

Comment 16 errata-xmlrpc 2010-03-22 12:04:56 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0160.html