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):
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
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.
This system is not associated with any channel.
Created attachment 421731 [details]
spacewalk.git master: 56f268a138aa05ef759ce2e61a6b973923c5c074
satellite.git CLIENT-RHEL-6: c63b6bed0367034948470205c881bd4b45f107f2
*** Bug 607536 has been marked as a duplicate of this bug. ***
reproduced and verified with rhn-setup-1.0.0-27
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.