Bug 771749

Summary: Traceback when adding nonexistent channel with rhn-channel
Product: Red Hat Enterprise Linux 5 Reporter: Jan Hutař <jhutar>
Component: rhn-client-toolsAssignee: Milan Zázrivec <mzazrivec>
Status: CLOSED ERRATA QA Contact: Martin Korbel <mkorbel>
Severity: low Docs Contact:
Priority: unspecified    
Version: 5.8CC: dyordano, jpazdziora, mkorbel
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rhn-client-tools-0.4.20-78.el5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 839935 (view as bug list) Environment:
Last Closed: 2013-01-08 07:45:05 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: 839935    

Description Jan Hutař 2012-01-04 20:27:36 UTC
Description of problem:
When I have tried to (accidentally) add nonexistent channel with rhn-channel, I got a traceback.


Version-Release number of selected component (if applicable):
rhn-setup-0.4.20-75.el5


How reproducible:
always


Steps to Reproduce:
1. # rhn-channel -a -c this-channel-do-not-exist -u correct-username -p correct-password


Actual results:
Traceback (most recent call last):
  File "/usr/sbin/rhn-channel", line 120, in ?
    systemExit(1, e)
  File "/usr/sbin/rhn-channel", line 25, in systemExit
    if msgs:
TypeError: 'NoneType' object is not callable


Expected results:
Error message like this one:

Error Message:
    Channel this-channel-do-not-exist does not exist?
Error Class Code: 39
Error Class Info: The system is not currently subscribed to the specified channel.
[...]

Comment 1 RHEL Program Management 2012-01-09 14:56:26 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.8 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 3 RHEL Program Management 2012-04-02 10:51:40 UTC
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 4 Jan Pazdziora (Red Hat) 2012-07-13 08:15:55 UTC
Fixed in Spacewalk master, 7fc29208a8b8e00f8333709a0e0f4dc63c8269d9.

Comment 11 errata-xmlrpc 2013-01-08 07:45:05 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.

http://rhn.redhat.com/errata/RHBA-2013-0104.html