Bug 835676

Summary: rhn-satellite-exporter Inconsistency In Help And Traceback
Product: [Community] Spacewalk Reporter: Stephen Herr <sherr>
Component: ClientsAssignee: Stephen Herr <sherr>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: low    
Version: 1.8CC: mminar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-backend-1.8.42-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 835523 Environment:
Last Closed: 2012-11-01 16:20:26 UTC Type: Bug
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: 835523    
Bug Blocks: 871344    

Description Stephen Herr 2012-06-26 19:34:55 UTC
+++ This bug was initially created as a clone of Bug #835523 +++

Description of problem:
man page and --help page of rhn-satellite-exporter differs a bit. Also when you try to run rhn-satellite-exporter as normal user you will get traceback instead of warning like: "This program needs super-user rights."

Version-Release number of selected component (if applicable):
spacewalk-backend-1.7.38-17

How reproducible:
Always

Steps to Reproduce:
1. man rhn-satellite-exporter
2. rhn-satellite-exporter --help
3. su - test; rhn-satellite-exporter --help
  
Actual results:
No note in man about verbose setting:
HELP:
-v, --verbose         Set debug level to 3. Overrides the value in
                      rhn.conf..
No alternate parameter in man for all-channels:
HELP:
-a, --all-channels    Export all channels.
MAN:
-a,    Export all channels.

When rhn-satellite-exporter is run under normal user you will get:
Traceback (most recent call last):
  File "/usr/bin/rhn-satellite-exporter", line 39, in <module>
    log2stderr(-1, "Unhandled Error: %s" % (e.__class__.__name__,))
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/syncLib.py", line 127, in log2stderr
    log2stream(level, msg, cleanYN, notimeYN, sys.stderr)
  File "/usr/lib/python2.6/site-packages/spacewalk/satellite_tools/syncLib.py", line 109, in log2stream
    if CFG.DEBUG >= level:
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnConfig.py", line 337, in __getattr__
    self.__check()
  File "/usr/lib/python2.6/site-packages/spacewalk/common/rhnConfig.py", line 381, in __check
    self.__component)
spacewalk.common.rhnConfig.ConfigParserError: ('Uninitialized config for component', 'server.iss')

Expected results:
Man and help consistent.
No traceback.

Additional info:

Comment 1 Stephen Herr 2012-06-26 19:39:17 UTC
Committed to Spacewalk master: 2509c5abfcb3288f604e757e34eb582a3e568bd1

Comment 2 Jan Pazdziora 2012-10-30 19:24:57 UTC
Moving ON_QA. Packages that address this bugzilla should now be available in yum repos at http://yum.spacewalkproject.org/nightly/

Comment 3 Jan Pazdziora 2012-11-01 16:20:26 UTC
Spacewalk 1.8 has been released: https://fedorahosted.org/spacewalk/wiki/ReleaseNotes18