Red Hat Bugzilla – Bug 846359
rhn-channel long options do not need/support =
Last modified: 2013-02-21 05:06:54 EST
Description of problem:
Throughout the guide instructions for using rhn-channel to add channels specify the use of --channel=<channel name>. The use of the equals sign causes an exception and should in fact be replaced by a space.
Simon, what was the actual exception you got? I tested on my system using the production RHN QA account and these commands work fine:
# rhn-channel --add --channel=rhel-x86_64-server-6-rhevm-3
# rhn-channel --add --channel=jbappplatform-5-x86_64-server-6-rpm
# rhn-channel --add --channel=rhel-x86_64-server-supplementary-6
Are you sure you didn't get the exception related to not being an administrator?:
I could not recreate it on a server upgraded from RHEL 6.2, so I tried again on my rhevm31
[root@rhevm31 ~]# rhn-channel --add --channel=rhel-x86_64-server-supplementary-6
An error has occurred:
See /var/log/up2date for more information
In the log:
Traceback (most recent call last):
File "/usr/sbin/rhn-channel", line 164, in <module>
File "/usr/sbin/rhn-channel", line 46, in systemExit
<type 'exceptions.TypeError'>: unsupported operand type(s) for +: 'AuthenticationOrAccountCreationError' and 'str'
The following worked
[root@rhevm31 ~]# rhn-channel -a -c rhel-x86_64-server-supplementary-6
and then I found out that I've had my username wrong on first attempt.
So the bug is with rhn-channel which gets an exception while creating an error message from a string and an error object thus fails to report authentication failure correctly.
We can move this bug to rhn-channel
Same problem has been already addressed in upstream in bug #804559.
*** Bug 855011 has been marked as a duplicate of this bug. ***
satellite.git CLIENT-RHEL-6: 56e0339a2cea57cd06779c4d966fbeef3fe27040
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.