Red Hat Bugzilla – Bug 206716
rhn-register gives interesting exception while raising exception
Last modified: 2008-10-14 16:38:45 EDT
Description of problem:
I was trying to rhn_reg_ks a new RHEL 5.0 B1 install. I gave it an incorrect
server URL. rhn_reg_ks then threw an exception while trying to raise an
exception. This problem went away when a correct URL was provided. (In this
case, correct is https://xmlrpc.rhn.webqa.redhat.com/XMLRPC)
--username=mdehaan_rhat --password=whatever --email@example.com
The issue here is that the exception does not explain what is wrong, and also
that there is a glitch in the exception handling (i.e. an exception is caused
while raising the exception).
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Install RHEL-5.0/Beta-1 (I used a clean manual install)
2. Run rhnreg_ks with bogus arguments
3. Observe traceback
An error has occurred:
See /var/log/up2date for more information
-- START LOGFILE --
[Fri Sep 15 16:26:58 2006] up2date File "/usr/sbin/rhnreg_ks", line 280, in ?
File "/usr/share/rhn/up2date_client/rhncli.py", line 65, in run
sys.exit(self.main() or 0)
File "/usr/sbin/rhnreg_ks", line 105, in main
File "/usr/share/rhn/up2date_client/rhnreg.py", line 217, in getCaps
File "/usr/share/rhn/up2date_client/rpcServer.py", line 235, in doCall
ret = apply(method, args, kwargs)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/share/rhn/up2date_client/rpcServer.py", line 45, in _request1
ret = self._request(methodname, params)
File "/usr/lib/python2.4/site-packages/rhn/rpclib.py", line 407, in _request
raise Exception("Error requesting with the server:: error code:: %s" %
-- END LOGFILE--
Error message to userland should explain what went wrong, and actual exception
should be shown.
User firstname.lastname@example.org's account has been closed
This bug has been closed due to inactivity. Please open a new bug with specific details if this problem is still occurring or if an enhancement is needed.
I don't follow why this one should be closed or why I can't reopen it?