[Spacewalk-list] Register a CentOS 5 client

Spacewalk spacewalk at joblo.net
Fri Jun 27 21:15:47 UTC 2008


Hi,

I have a spacewalk server installed with Oracle XE over CentOS 5.1.
Everything look fine.  I imported my base and update channel with rhnpush
without any major issue. (Except for the maximum connection on the XE
database, but that was my mistake).  Now I want to register a CentOS client.
I had difficulties to find the client packages since I didn`t find any repo
with the clients packages that was publicly available and they are not
available via the centos repo.  But I manage to download them from an
another subscription we have for RHEL.  I installed the package and when I
try to register my client here is the error I got:

==============

# rhnreg_ks --username xxxx --password xxx --force -vv --serverUrl
"http://spacewalk-srv.internal.pvt/XMLRPC" --activationkey=mykey_here 
An error has occurred:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'

Error communicating with server. The message was:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'

See /var/log/up2date for more information

==============
Here is my up2date log file

[Fri Jun 27 17:10:46 2008] up2date Error communicating with server. The
message was:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'

[Fri Jun 27 17:10:46 2008] up2date 
Traceback (most recent call last):
  File "/usr/sbin/rhnreg_ks", line 254, in ?
    cli.run()
  File "/usr/share/rhn/up2date_client/rhncli.py", line 65, in run
    sys.exit(self.main() or 0)
  File "/usr/sbin/rhnreg_ks", line 86, in main
    rhnreg.getCaps()
  File "/usr/share/rhn/up2date_client/rhnreg.py", line 317, in getCaps
    s.capabilities.validate()
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 154, in
__get_capabilities
    self.registration.welcome_message()
  File "/usr/share/rhn/up2date_client/rhnserver.py", line 52, in __call__
    raise self.__exception_from_fault(f)
up2date_client.up2dateErrors.CommunicationError: Error communicating with
server. The message was:
While running 'registration.welcome_message': caught
exceptions.KeyError : 'xmlrpc'

==============

Here is my apache error_log file

RHN 11115 2008/06/27 17:10:46 -04:00: ('Error importing xmlrpc: No module
named instnum',)



Here is the traceback I receive after:

Exception reported from spacewalk-srv
Time: Fri Jun 27 17:07:21 2008
Exception type exceptions.KeyError
Exception while handling function registration.welcome_message
Request object information:
URI: /XMLRPC
Remote Host: 192.168.50.225
Server Name: 127.0.0.1:0
Headers passed in:
        Accept-Encoding: identity
        Content-Length: 122
        Host: spacewalk-srv.internal.pvt
        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,reb
oot.reboot(1)=1,packages.verify(1)=1,packages.runTransaction(1)=1,packages.r
ollBack(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.16-1.el5
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 0xb7cbbbec>
                      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 0xb7cbbbec>
              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 0xb7bd9f60>
                       _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 0xb7cbbbec>

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 0xb7cbbb6c>
                         req = <type 'mp_request'> <mp_request object at
0xb7f5fd2c>
                         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': 'spacewalk-srv'}
                         row = <type 'NoneType'> None

Frame __call__ in /usr/share/rhn/server/apacheServer.py at line 57
                        self = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0xb7d726cc>
                         req = <type 'mp_request'> <mp_request object at
0xb7f5fd2c>
                           f = <type 'instancemethod'> <bound method
apacheHandler.handler of <server.apacheHandler.apacheHandler instance at
0xb7cbbb6c>>

Frame HandlerDispatch in
/usr/lib/python2.4/site-packages/mod_python/apache.py at line 299
                         req = <type 'mp_request'> <mp_request object at
0xb7f5fd2c>
                      config = <type 'mp_table'> {'PythonInterpreter':
'rhn.server', 'PythonPath': 'sys.path+['/usr/share/rhn']'}
                        self = <type 'instance'> <mod_python.apache.CallBack
instance at 0xb7f6d76c>
                      object = <type 'instance'>
<server.apacheServer.HandlerWrap instance at 0xb7d726cc>
                           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=11058 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 = vt100
_ = /usr/sbin/httpd


Thanks

EL




More information about the Spacewalk-list mailing list