[Spacewalk-list] register a centos 5 client to spacewalk
Marco Strullato
marco.strullato at gmail.com
Wed Jul 16 12:51:25 UTC 2008
Hi all,
after installing the right rpms and generating the activation key for
the channel, I have a new problem:
>From a centos 5 client I execute
[root at localhost tmp]# rhnreg_ks --force
--serverUrl=http://10.0.1.172/XMLRPC
--activationkey=1-e94add378bcfc0f1ab9f9e9434d3f6de
An error has occurred:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'
See /var/log/up2date for more information
I get the following mail from the system
Exception reported from localhost.localdomain
Time: Wed Jul 16 16:41:23 2008
Exception type exceptions.KeyError
Exception while handling function registration.welcome_message
Request object information:
URI: /XMLRPC
Remote Host: 10.0.1.19
Server Name: localhost.localdomain:0
Headers passed in:
Accept-Encoding: identity
Content-Length: 122
Host: 10.0.1.172
content-type: text/xml
user-agent: rhn.rpclib.py/$Revision: 102540 $
x-client-version: 1
x-info: RPC Processor (C) Red Hat, Inc (version 102540)
x-rhn-client-capability:
packages.verifyAll(1)=1,caneatCheese(1)=1,packages.extended_profile(1)=1,reboot.reboot(1)=1,packages.verify(1)=1,packages.runTransaction(1)=1,packages.rollBack(1)=1
x-rhn-transport-capability: follow-redirects=2
x-transport-info: Extended Capabilities Transport (C) Red Hat,
Inc (version 102540)
x-up2date-version: 0.4.17-8
Extra information about this error:
Response sent back to the caller:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'
Exception Handler Information
Traceback (most recent call last):
File "/usr/share/rhn/server/apacheRequest.py", line 118, in call_function
func = self.method_ref(method)
File "/usr/share/rhn/server/apacheRequest.py", line 413, in method_ref
classes = self.servers[self.server]
KeyError: 'xmlrpc'
Local variables by frame
Frame method_ref in /usr/share/rhn/server/apacheRequest.py at line 413
self = <type 'instance'>
<server.apacheRequest.apachePOST instance at 0xb7c30bec>
method = <type 'str'>
registration.welcome_message
Frame call_function in /usr/share/rhn/server/apacheRequest.py at line 135
fault = <type 'int'> 1
self = <type 'instance'>
<server.apacheRequest.apachePOST instance at 0xb7c30bec>
force_rollback = <type 'int'> 1
method = <type 'str'>
registration.welcome_message
params = <type 'tuple'> ()
e_type = <type 'classobj'> exceptions.KeyError
e_value = <type 'instance'> 'xmlrpc'
response = <type 'instance'> <Fault 1: "While
running 'registration.welcome_message': caught\nexceptions.KeyError :
'xmlrpc'\n">
Frame process in /usr/share/rhn/server/apacheRequest.py at line 471
fd = <type 'instance'> <cStringIO.StringO
object at 0xb7b6b4e0>
_body = <type 'str'> <?xml version='1.0'?>
<methodCall>
<methodName>registration.welcome_message</methodName>
<params>
</params>
</methodCall>
params = <type 'tuple'> ()
method = <type 'str'>
registration.welcome_message
self = <type 'instance'>
<server.apacheRequest.apachePOST instance at 0xb7c30bec>
Frame handler in /usr/share/rhn/server/apacheHandler.py at line 198
h = <type 'instance'>
<__builtin__.OracleCursor on <cx_Oracle.Connection to spacewalk at xe>>
self = <type 'instance'>
<server.apacheHandler.apacheHandler instance at 0xb7c30b6c>
req = <type 'mp_request'> <mp_request object
at 0xb7ed4d2c>
ret = <type 'int'> 0
templateStrings = <type 'dict'> {'email_account_info':
'\nAccount Information:\n Your RHN login: <login />\n Your RHN
email address: <email-address />', 'email_footer': '--the Red Hat Network
Team', 'hostname': 'localhost.localdomain'}
row = <type 'NoneType'> None
Frame __call__ in /usr/share/rhn/server/apacheServer.py at line 57
self = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0xb7ce66cc>
req = <type 'mp_request'> <mp_request object
at 0xb7ed4d2c>
f = <type 'instancemethod'> <bound method
apacheHandler.handler of <server.apacheHandler.apacheHandler instance at
0xb7c30b6c>>
Frame HandlerDispatch in
/usr/lib/python2.4/site-packages/mod_python/apache.py at line 299
req = <type 'mp_request'> <mp_request object
at 0xb7ed4d2c>
config = <type 'mp_table'> {'PythonInterpreter':
'rhn.server', 'PythonPath': 'sys.path+['/usr/share/rhn']'}
self = <type 'instance'>
<mod_python.apache.CallBack instance at 0xb7ee276c>
object = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0xb7ce66cc>
l = <type 'list'> ['server.apacheServer',
'Handler']
module = <type 'module'> <module
'server.apacheServer' from '/usr/share/rhn/server/apacheServer.py'>
hlist = <type 'mp_hlist'>
{'handler:'server.apacheServer::Handler','directory':'/XMLRPC/','silent':0}
object_str = <type 'str'> Handler
debug = <type 'int'> 0
module_name = <type 'str'> server.apacheServer
pathstring = <type 'str'>
sys.path+['/usr/share/rhn']
result = <type 'int'> 500
Environment for PID=5618 on exception:
LANG = C
NLS_LANG = english.AL32UTF8
ORACLE_HOME = /opt/oracle
PATH = /sbin:/usr/sbin:/bin:/usr/bin
PERL_BADFREE = 0
PWD = /
SHLVL = 2
TERM = xterm
_ = /usr/sbin/httpd
and the up2date log says
[Wed Jul 16 14:42:34 2008] up2date Error communicating with server.
The message was:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'
[Wed Jul 16 14:42:34 2008] up2date
Traceback (most recent call last):
File "/usr/sbin/rhnreg_ks", line 267, in ?
cli.run()
File "rhncli.py", line 65, in run
File "/usr/sbin/rhnreg_ks", line 88, in main
rhnreg.getCaps()
File "rhnreg.py", line 324, in getCaps
File "rhnserver.py", line 154, in __get_capabilities
File "rhnserver.py", line 52, in __call__
up2date_client.up2dateErrors.CommunicationError: Error communicating
with server. The message was:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'
So I believe the url that I'm connecting is wrong.
Do you have suggestions? what is my mistake?
Thanks
Marco Strullato
More information about the Spacewalk-list
mailing list