RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 600316 - 'rhn-channel -l' prints traceback, when system is registered, but not subscribed to any channel
Summary: 'rhn-channel -l' prints traceback, when system is registered, but not subscri...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: rhn-client-tools
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Milan Zázrivec
QA Contact: Petr Sklenar
URL:
Whiteboard:
: 607536 (view as bug list)
Depends On:
Blocks: 582655
TreeView+ depends on / blocked
 
Reported: 2010-06-04 12:40 UTC by Jiri Kastner
Modified: 2010-11-10 21:30 UTC (History)
3 users (show)

Fixed In Version: rhn-client-tools-1.0.0-19.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-11-10 21:30:09 UTC
Target Upstream Version:
Embargoed:


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

Description Jiri Kastner 2010-06-04 12:40:14 UTC
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):
rhn-setup-1.0.0-4.el6.noarch
rhn-setup-0.4.20-33.el5_5.2

How reproducible:
always

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 ?
    main()
  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 $?
1

Expected results:
#rhn-channel -l
This system is not associated with any channel.
#echo $?
1
Additional info:

Comment 1 Milan Zázrivec 2010-06-07 07:36:52 UTC
Created attachment 421731 [details]
suggested patch

Comment 2 Milan Zázrivec 2010-06-07 18:45:58 UTC
spacewalk.git master: 56f268a138aa05ef759ce2e61a6b973923c5c074
satellite.git CLIENT-RHEL-6: c63b6bed0367034948470205c881bd4b45f107f2

Comment 3 Milan Zázrivec 2010-06-24 10:49:15 UTC
*** Bug 607536 has been marked as a duplicate of this bug. ***

Comment 5 Petr Sklenar 2010-07-28 11:45:02 UTC
reproduced and verified with rhn-setup-1.0.0-27

Comment 6 releng-rhel@redhat.com 2010-11-10 21:30:09 UTC
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.