Bug 600316 - 'rhn-channel -l' prints traceback, when system is registered, but not subscribed to any channel
'rhn-channel -l' prints traceback, when system is registered, but not subscri...
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools (Show other bugs)
All Linux
medium Severity medium
: rc
: ---
Assigned To: Milan Zázrivec
Petr Sklenar
: 607536 (view as bug list)
Depends On:
Blocks: 582655
  Show dependency treegraph
Reported: 2010-06-04 08:40 EDT by Jiri Kastner
Modified: 2010-11-10 16:30 EST (History)
3 users (show)

See Also:
Fixed In Version: rhn-client-tools-1.0.0-19.el6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2010-11-10 16:30:09 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
suggested patch (817 bytes, text/plain)
2010-06-07 03:36 EDT, Milan Zázrivec
no flags Details

  None (edit)
Description Jiri Kastner 2010-06-04 08:40:14 EDT
Description of problem:
'rhn-channel -l' prints traceback, when system is registered, but not subscribed to any channel

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. in rhn, satellite, spacewalk create empty channel
2. create activation-key for this channel
3. using this key register to rhn, spacewalk, satellite
4. get registered machine via webui
5. alter system base channel on "software=>software channel" to "none - disable this service"
6. run 'rhn-channel -l' on "altered system"
7. check output
Actual results:
#rhn-channel -l
Traceback (most recent call last):
  File "/usr/sbin/rhn-channel", line 92, in ?
  File "/usr/sbin/rhn-channel", line 82, in main
    channels = map(lambda x: x['label'], getChannels().channels())
  File "/usr/share/rhn/up2date_client/rhnChannel.py", line 127, in getChannels
    raise up2dateErrors.NoChannelsError(_("This system may not be updated until it is associated with a channel."))
up2date_client.up2dateErrors.NoChannelsError: This system may not be updated until it is associated with a channel.
#echo $?

Expected results:
#rhn-channel -l
This system is not associated with any channel.
#echo $?
Additional info:
Comment 1 Milan Zázrivec 2010-06-07 03:36:52 EDT
Created attachment 421731 [details]
suggested patch
Comment 2 Milan Zázrivec 2010-06-07 14:45:58 EDT
spacewalk.git master: 56f268a138aa05ef759ce2e61a6b973923c5c074
satellite.git CLIENT-RHEL-6: c63b6bed0367034948470205c881bd4b45f107f2
Comment 3 Milan Zázrivec 2010-06-24 06:49:15 EDT
*** Bug 607536 has been marked as a duplicate of this bug. ***
Comment 5 Petr Sklenar 2010-07-28 07:45:02 EDT
reproduced and verified with rhn-setup-1.0.0-27
Comment 6 releng-rhel@redhat.com 2010-11-10 16:30:09 EST
Red Hat Enterprise Linux 6.0 is now available and should resolve
the problem described in this bug report. This report is therefore being closed
with a resolution of CURRENTRELEASE. You may reopen this bug report if the
solution does not work for you.

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