Bug 191555 - up2date --channel gives misleading error when system is not subscribed to specified channel
Summary: up2date --channel gives misleading error when system is not subscribed to spe...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: up2date
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Bret McMillan
QA Contact: Brandon Perkins
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-05-12 20:50 UTC by Beth Nackashi
Modified: 2008-10-17 19:39 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-19 18:44:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Beth Nackashi 2006-05-12 20:50:54 UTC
Description of problem:
Error message given when "up2date --channel=(anychannel) -l" is run with a
channel specified to which the client is not subscribed:

"This system may not be updated until it is associated with a channel."

The error is misleading.  The system is associated with a channel, just not that
particular one.



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


How reproducible:
always

Steps to Reproduce:
1.  Register an i386 system to hosted.
2.  Run up2date --channel=rhn-tools-rhel-3-as-ia64 -l.  This is a valid channel,
but the system is not subscribed to it.

  
Actual results:
[root@test07 root]# up2date --channel=rhn-tools-rhel-3-as-ia64 -l
An error has occurred:
This system may not be updated until it is associated with a channel.
See /var/log/up2date for more information


Expected results:
It should say something like:
1-  If the channel does not exist on the server:  "The specified channel does
not exist."
2-  If the channel is valid but the system is not subscribed to it:  "The system
is not subscribed to the specified channel."

Additional info:
[Fri May 12 16:43:40 2006] up2date updating login info
[Fri May 12 16:43:40 2006] up2date logging into up2date server
[Fri May 12 16:43:40 2006] up2date successfully retrieved authentication token
from up2date server
[Fri May 12 16:43:40 2006] up2date This system may not be updated until it is
associated with a channel.
[Fri May 12 16:43:40 2006] up2date   File "/usr/sbin/up2date", line 1282, in ?
    sys.exit(main() or 0)
   File "/usr/sbin/up2date", line 601, in main
    rhnChannel.setChannels(tempchannels)
   File "/usr/share/rhn/up2date_client/rhnChannel.py", line 285, in setChannels
    return getChannels(label_whitelist=whitelist)
   File "/usr/share/rhn/up2date_client/rhnChannel.py", line 183, in getChannels
    raise up2dateErrors.NoChannelsError(_("This system may not be updated until
it is associated with a channel."))

Comment 2 Red Hat Bugzilla 2007-04-12 00:41:54 UTC
User bnackash's account has been closed

Comment 3 RHEL Program Management 2007-10-19 18:44:10 UTC
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
 
For more information of the RHEL errata support policy, please visit:
http://www.redhat.com/security/updates/errata/
 
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.


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