[Spacewalk-list] Spacewlk 2.1 registration problem

Milan Zázrivec mzazrivec at redhat.com
Wed Apr 2 09:25:10 UTC 2014


On Wednesday 02 April 2014 11:06:07 Jakub Bittner wrote:
> Dne 1.4.2014 12:49, Milan Zázrivec napsal(a):
> > On Tuesday 01 April 2014 11:01:38 Jakub Bittner wrote:
> >> Hello,
> >> 
> >> we have problem during registration of client. In apache log is this:
> >> 
> >> [Tue Apr 01 10:54:48 2014] [error] Spacewalk 31016 2014/04/01 10:54:48
> >> +02:00: ('Unhandled exception', AttributeError("'NoneType' object has no
> >> attribute 'startswith'",))
> >> [Tue Apr 01 10:54:48 2014] [error] Exception reported from
> >> spacewalk.test.com
> >> [Tue Apr 01 10:54:48 2014] [error] Time: Tue Apr  1 10:54:48 2014
> >> [Tue Apr 01 10:54:48 2014] [error] Exception type <type
> >> 'exceptions.AttributeError'>
> >> [Tue Apr 01 10:54:48 2014] [error] Exception while handling function
> >> registration.new_system
> >> [Tue Apr 01 10:54:48 2014] [error] Request object information:
> >> [Tue Apr 01 10:54:48 2014] [error] URI: /XMLRPC
> >> [Tue Apr 01 10:54:48 2014] [error] Remote Host: client.test.com
> >> [Tue Apr 01 10:54:48 2014] [error] Server Name: spacewalk.test.com:80
> >> [Tue Apr 01 10:54:48 2014] [error] Headers passed in:
> >> [Tue Apr 01 10:54:48 2014] [error] \tAccept-Encoding: identity
> >> [Tue Apr 01 10:54:48 2014] [error] \tCONTENT_LENGTH: 686
> >> [Tue Apr 01 10:54:48 2014] [error] \tCONTENT_TYPE: text/xml
> >> [Tue Apr 01 10:54:48 2014] [error] \tDOCUMENT_ROOT: /var/www/html
> >> [Tue Apr 01 10:54:48 2014] [error] \tGATEWAY_INTERFACE: CGI/1.1
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_ACCEPT_ENCODING: identity
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_HOST: spacewalk.test.com
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_USER_AGENT:
> >> rhn.rpclib.py/2.5.65-1.el6
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_X_CLIENT_VERSION: 1
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_X_INFO: RPC Processor (C) Red
> >> Hat, Inc (version 2.5.65-1.el6)
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_X_RHN_CLIENT_CAPABILITY:
> >> caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,packa
> >> ges
> >> .verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,abrt.chec
> >> k(1) =1,packages.rollBack(1)=1 [Tue Apr 01 10:54:48 2014] [error]
> >> \tHTTP_X_RHN_TRANSPORT_CAPABILITY: follow-redirects=3
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_X_TRANSPORT_INFO: Extended
> >> Capabilities Transport (C) Red Hat, Inc (version 2.5.65-1.el6)
> >> [Tue Apr 01 10:54:48 2014] [error] \tHTTP_X_UP2DATE_VERSION: 2.0.1-1.el6
> >> [Tue Apr 01 10:54:48 2014] [error] \tHost: spacewalk.test.com
> >> [Tue Apr 01 10:54:48 2014] [error] \tPATH_INFO:
> >> [Tue Apr 01 10:54:48 2014] [error] \tQUERY_STRING:
> >> [Tue Apr 01 10:54:48 2014] [error] \tREMOTE_ADDR: 192.168.2.196
> >> [Tue Apr 01 10:54:48 2014] [error] \tREMOTE_PORT: 58296
> >> [Tue Apr 01 10:54:48 2014] [error] \tREQUEST_METHOD: POST
> >> [Tue Apr 01 10:54:48 2014] [error] \tREQUEST_URI: /XMLRPC
> >> [Tue Apr 01 10:54:48 2014] [error] \tSCRIPT_FILENAME:
> >> /usr/share/rhn/wsgi/xmlrpc.py
> >> [Tue Apr 01 10:54:48 2014] [error] \tSCRIPT_NAME: /XMLRPC
> >> [Tue Apr 01 10:54:48 2014] [error] \tSCRIPT_URI:
> >> http://spacewalk.test.com/XMLRPC
> >> [Tue Apr 01 10:54:48 2014] [error] \tSCRIPT_URL: /XMLRPC
> >> [Tue Apr 01 10:54:48 2014] [error] \tSERVER_ADDR: 192.168.3.208
> >> [Tue Apr 01 10:54:48 2014] [error] \tSERVER_ADMIN: root at localhost
> >> [Tue Apr 01 10:54:48 2014] [error] \tSERVER_NAME: spacewalk.test.com
> >> [Tue Apr 01 10:54:48 2014] [error] \tSERVER_PORT: 80
> >> [Tue Apr 01 10:54:48 2014] [error] \tSERVER_PROTOCOL: HTTP/1.1
> >> [Tue Apr 01 10:54:48 2014] [error] \tSERVER_SIGNATURE: <address>Apache
> >> Server at spacewalk.test.com Port 80</address>
> >> [Tue Apr 01 10:54:48 2014] [error]
> >> [Tue Apr 01 10:54:48 2014] [error] \tSERVER_SOFTWARE: Apache
> >> [Tue Apr 01 10:54:48 2014] [error] \tUser-Agent:
> >> rhn.rpclib.py/2.5.65-1.el6
> >> [Tue Apr 01 10:54:48 2014] [error] \tX-Client-Version: 1
> >> [Tue Apr 01 10:54:48 2014] [error] \tX-Info: RPC Processor (C) Red Hat,
> >> Inc (version 2.5.65-1.el6)
> >> [Tue Apr 01 10:54:48 2014] [error] \tX-RHN-Client-Capability:
> >> caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,packa
> >> ges
> >> .verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,abrt.chec
> >> k(1) =1,packages.rollBack(1)=1 [Tue Apr 01 10:54:48 2014] [error]
> >> \tX-RHN-Transport-Capability:
> >> follow-redirects=3
> >> [Tue Apr 01 10:54:48 2014] [error] \tX-Transport-Info: Extended
> >> Capabilities Transport (C) Red Hat, Inc (version 2.5.65-1.el6)
> >> [Tue Apr 01 10:54:48 2014] [error] \tX-Up2Date-Version: 2.0.1-1.el6
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_ssl.is_https: <built-in method
> >> ssl_is_https of mod_wsgi.Adapter object at 0x7f8a47ab5a80>
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_ssl.var_lookup: <built-in
> >> method ssl_var_lookup of mod_wsgi.Adapter object at 0x7f8a47ab5a80>
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.application_group:
> >> spacewalk.test.com|/xmlrpc
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.callable_object:
> >> application
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.handler_script:
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.input_chunked: 0
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.listener_host:
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.listener_port: 80
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.process_group:
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.request_handler:
> >> wsgi-script
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.script_reloading: 1
> >> [Tue Apr 01 10:54:48 2014] [error] \tmod_wsgi.version: (3, 2)
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.errors: <mod_wsgi.Log object
> >> at 0x7f8a605868f0>
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.file_wrapper: <built-in method
> >> file_wrapper of mod_wsgi.Adapter object at 0x7f8a47ab5a80>
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.input: <mod_wsgi.Input object
> >> at 0x7f8a604acbf0>
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.multiprocess: True
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.multithread: False
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.run_once: False
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.url_scheme: http
> >> [Tue Apr 01 10:54:48 2014] [error] \twsgi.version: (1, 1)
> >> [Tue Apr 01 10:54:48 2014] [error]
> >> [Tue Apr 01 10:54:48 2014] [error] Exception Handler Information
> >> [Tue Apr 01 10:54:48 2014] [error] Traceback (most recent call last):
> >> [Tue Apr 01 10:54:48 2014] [error]   File
> >> "/usr/lib/python2.6/site-packages/spacewalk/server/apacheRequest.py",
> >> line 123, in call_function
> >> [Tue Apr 01 10:54:48 2014] [error]     response = apply(func, params)
> >> [Tue Apr 01 10:54:48 2014] [error]   File
> >> "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 509, in
> >> new_system
> >> [Tue Apr 01 10:54:48 2014] [error]     architecture, data)
> >> [Tue Apr 01 10:54:48 2014] [error]   File
> >> "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 368, in
> >> create_system
> >> [Tue Apr 01 10:54:48 2014] [error]     parse_smbios(data['smbios'])
> >> [Tue Apr 01 10:54:48 2014] [error]   File
> >> "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 69, in
> >> parse_smbios
> >> [Tue Apr 01 10:54:48 2014] [error]     elif manufacturer.startswith('Red
> >> Hat') and product == 'OpenStack Nova' and uuid is not None:
> >> [Tue Apr 01 10:54:48 2014] [error] AttributeError: 'NoneType' object has
> >> no attribute 'startswith'
> >> [Tue Apr 01 10:54:48 2014] [error]
> > 
> > You need to apply the following fix on your Spacewalk server:
> > 
> > https://github.com/spacewalkproject/spacewalk/commit/323e5f2a84bc39b65daba
> > a26700e30a1d336cd5c
> > 
> > -MZ
> > 
> > _______________________________________________
> > Spacewalk-list mailing list
> > Spacewalk-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/spacewalk-list
> 
> Thank you. In which version do you think it will be included? I can see
> spacewalk 2.2.10, is this spacewalk release version or something else?

Version of Spacewalk? 2.2. Version of spacewalk-backend package? 2.2.6-1.

Regards
-MZ




More information about the Spacewalk-list mailing list