Bug 1113427 - server traceback when registering LXC container
Summary: server traceback when registering LXC container
Keywords:
Status: CLOSED DEFERRED
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 2.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Lestach
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space27
TreeView+ depends on / blocked
 
Reported: 2014-06-26 07:47 UTC by Tomasz Torcz
Modified: 2017-09-28 18:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-29 17:06:55 UTC
Embargoed:


Attachments (Terms of Use)

Description Tomasz Torcz 2014-06-26 07:47:48 UTC
Description of problem:
Running "rhnreg_ks" inside libvirt-lxc container or systemd-nspawn container (muritan) fails. At the same time, traceback is generated on the server (krelln).

Exception reported from krelln.pipebreaker.pl
Time: Wed Jun 25 20:06:31 2014
Exception type <type 'exceptions.AttributeError'>
Exception while handling function registration.new_system
Request object information:
URI: /XMLRPC
Remote Host: 2001:6a0:138:1:947d:b9ff:fe0c:44b3
Server Name: krelln.pipebreaker.pl:80
Headers passed in:
        Accept-Encoding: identity
        CONTENT_LENGTH: 676
        CONTENT_TYPE: text/xml
        CONTEXT_DOCUMENT_ROOT: /var/www/html
        CONTEXT_PREFIX:
        DOCUMENT_ROOT: /var/www/html
        GATEWAY_INTERFACE: CGI/1.1
        HTTP_ACCEPT_ENCODING: identity
        HTTP_HOST: krelln.pipebreaker.pl
        HTTP_USER_AGENT: rhn.rpclib.py/2.5.69-1.fc20
        HTTP_X_CLIENT_VERSION: 1
        HTTP_X_INFO: RPC Processor (C) Red Hat, Inc (version 2.5.69-1.fc20)
        HTTP_X_RHN_CLIENT_CAPABILITY: caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,packages.verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2
+,packages.rollBack(1)=1
        HTTP_X_RHN_TRANSPORT_CAPABILITY: follow-redirects=3
        HTTP_X_TRANSPORT_INFO: Extended Capabilities Transport (C) Red Hat, Inc (version 2.5.69-1.fc20)
        HTTP_X_UP2DATE_VERSION: 2.1.16-1.fc20
        Host: krelln.pipebreaker.pl
        PATH_INFO:
        QUERY_STRING:
        REMOTE_ADDR: 2001:6a0:138:1:947d:b9ff:fe0c:44b3
        REMOTE_PORT: 41405
        REQUEST_METHOD: POST
        REQUEST_SCHEME: http
        REQUEST_URI: /XMLRPC
        SCRIPT_FILENAME: /usr/share/rhn/wsgi/xmlrpc.py
        SCRIPT_NAME: /XMLRPC
        SCRIPT_URI: http://krelln.pipebreaker.pl/XMLRPC
        SCRIPT_URL: /XMLRPC
        SERVER_ADDR: 2001:6a0:138:1:216:3eff:fe72:6943
        SERVER_ADMIN: root@localhost
        SERVER_NAME: krelln.pipebreaker.pl
        SERVER_PORT: 80
        SERVER_PROTOCOL: HTTP/1.1
        SERVER_SIGNATURE:
        SERVER_SOFTWARE: Apache
        UNIQUE_ID: <REDACTED>
        User-Agent: rhn.rpclib.py/2.5.69-1.fc20
        X-Client-Version: 1
        X-Info: RPC Processor (C) Red Hat, Inc (version 2.5.69-1.fc20)
        X-RHN-Client-Capability: caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,packages.verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,pack
+ages.rollBack(1)=1
        X-RHN-Transport-Capability: follow-redirects=3
        X-Transport-Info: Extended Capabilities Transport (C) Red Hat, Inc (version 2.5.69-1.fc20)
        X-Up2Date-Version: 2.1.16-1.fc20
        mod_wsgi.application_group: krelln.pipebreaker.pl|/xmlrpc
        mod_wsgi.callable_object: application
        mod_wsgi.enable_sendfile: 0
        mod_wsgi.handler_script:
        mod_wsgi.input_chunked: 0
        mod_wsgi.listener_host:
        mod_wsgi.listener_port: 80
        mod_wsgi.process_group:
        mod_wsgi.queue_start: 1403719591439751
        mod_wsgi.request_handler: wsgi-script
        mod_wsgi.script_reloading: 1
        mod_wsgi.version: (3, 5)
        wsgi.errors: <mod_wsgi.Log object at 0x7f90f77c4030>
        wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f90f78c74e0>
        wsgi.input: <mod_wsgi.Input object at 0x7f90f77c46f0>
        wsgi.multiprocess: True
        wsgi.multithread: False
        wsgi.run_once: False
        wsgi.url_scheme: http
        wsgi.version: (1, 0)

Exception Handler Information
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py", line 123, in call_function
    response = apply(func, params)
  File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 509, in new_system
    architecture, data)
  File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 368, in create_system
    parse_smbios(data['smbios'])
  File "/usr/share/rhn/server/handlers/xmlrpc/registration.py", line 69, in parse_smbios
    elif manufacturer.startswith('Red Hat') and product == 'OpenStack Nova' and uuid is not None:
AttributeError: 'NoneType' object has no attribute 'startswith'

Local variables by frame
Frame parse_smbios in /usr/share/rhn/server/handlers/xmlrpc/registration.py at line 69
                     product = <type 'NoneType'> None
                      vendor = <type 'NoneType'> None
                        uuid = <type 'NoneType'> None
                      smbios = <type 'dict'> {}
                      serial = <type 'str'>
                manufacturer = <type 'NoneType'> None

Frame create_system in /usr/share/rhn/server/handlers/xmlrpc/registration.py at line 368
             release_version = <type 'str'> 20
                 log_user_id = <type 'int'> 1
                        user = <type 'NoneType'> None
                    log_item = <type 'str'> token = '1-fedora20'
                        self = <type 'instance'> <server.handlers.xmlrpc.registration.Registration instance at 0x7f90f7f68098>
                 applet_uuid = <type 'NoneType'> None
                profile_name = <type 'str'> muritan.pipebreaker.pl
                     channel = <type 'NoneType'> None
                     release = <type 'str'> 20
                token_string = <type 'str'> 1-fedora20
                up2date_uuid = <type 'NoneType'> None
                        data = <type 'dict'> {'token': '1-fedora20', 'profile_name': 'muritan.pipebreaker.pl', 'architecture': 'x86_64', 'os_release': '20', 'smbios': {}, 'release_name': 'fedora-release'}
                     newserv = <class 'spacewalk.server.rhnServer.server_class.Server'> <Server Class at 140260613179280: {'self.cert': None, 'self.server': {'release': ('20',1), 'server_arch_id': (1026, 1), 'os': ('fedora-release', 1), 'description': ('Initial Registration Parameters:\nOS: fedora-release\nRelease: 20\nCPU Arch: x86_64', 1), 'name': ('muritan.pipebreaker.pl', 1)}}>

                  tokens_obj = <type 'instance'> <spacewalk.server.rhnServer.server_token.ActivationTokens instance at 0x7f90f7cc9998>
                architecture = <type 'str'> x86_64

Frame new_system in /usr/share/rhn/server/handlers/xmlrpc/registration.py at line 509
                        self = <type 'instance'> <server.handlers.xmlrpc.registration.Registration instance at 0x7f90f7f68098>
             release_version = <type 'str'> 20
                profile_name = <type 'str'> muritan.pipebreaker.pl
                architecture = <type 'str'> x86_64
                        data = <type 'dict'> {'token': '1-fedora20', 'profile_name': 'muritan.pipebreaker.pl', 'architecture': 'x86_64', 'os_release': '20', 'smbios': {}, 'release_name': 'fedora-release'}
                        user = <type 'NoneType'> None

Frame call_function in /usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py at line 176
                           e = <type 'exceptions.AttributeError'> 'NoneType' object has no attribute 'startswith'
                        self = <type 'instance'> <spacewalk.server.apacheRequest.apachePOST instance at 0x7f90f7cc9b00>
              force_rollback = <type 'int'> 1
                      params = <type 'tuple'> ({'token': '1-fedora20', 'profile_name': 'muritan.pipebreaker.pl', 'architecture': 'x86_64', 'os_release': '20', 'smbios': {}, 'release_name': 'fedora-release'},)
                        func = <type 'instancemethod'> <bound method Registration.new_system of <server.handlers.xmlrpc.registration.Registration instance at 0x7f90f7f68098>>
                      method = <type 'unicode'> registration.new_system

Frame process in /usr/lib/python2.7/site-packages/spacewalk/server/apacheRequest.py at line 487
                          fd = <type 'instance'> <cStringIO.StringO object at 0x7f90f7cc8298>
                       _body = <type 'str'> <?xml version='1.0'?>
<methodCall>
<methodName>registration.new_system</methodName>
<params>
<param>
<value><struct>
<member>
<name>token</name>
<value><string>1-fedora20</string></value>
</member>
<member>
<name>profile_name</name>
<value><string>muritan.pipebreaker.pl</string></value>
</member>
<member>
<name>architecture</name>
<value><string>x86_64</string></value>
</member>
<member>
<name>os_release</name>
<value><string>20</string></value>
</member>
<member>
<name>smbios</name>
<value><struct>
</struct></value>
</member>
<member>
<name>release_name</name>
<value><string>fedora-release</string></value>
</member>
</struct></value>
</param>
</params>
</methodCall>

                      params = <type 'tuple'> ({'token': '1-fedora20', 'profile_name': 'muritan.pipebreaker.pl', 'architecture': 'x86_64', 'os_release': '20', 'smbios': {}, 'release_name': 'fedora-release'},)
                      method = <type 'unicode'> registration.new_system
                        self = <type 'instance'> <spacewalk.server.apacheRequest.apachePOST instance at 0x7f90f7cc9b00>

Frame handler in /usr/lib/python2.7/site-packages/spacewalk/server/apacheHandler.py at line 196
                           h = <type 'instance'> <spacewalk.server.rhnSQL.driver_postgresql.Cursor instance at 0x7f90f80565f0>
                        self = <type 'instance'> <spacewalk.server.apacheHandler.apacheHandler instance at 0x7f90f7ad7fc8>
                         req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f90f773e908>
                         ret = <type 'int'> 0
             templateStrings = <type 'dict'> {'email_account_info': '\nAccount Information:\n  Your Spacewalk login:         <login />\n  Your Spacewalk email address: <email-a
+ddress />', 'email_footer': '--the Spacewalk Team', 'hostname': 'krelln.pipebreaker.pl'}
                         row = <type 'NoneType'> None

Frame handle in /usr/share/rhn/wsgi/wsgiHandler.py at line 45
                replacements = <type 'dict'> {'Xml': 'XML', 'Actualuri': 'ActualURI', 'Md5Sum': 'MD5sum', '_': '-', 'Rhn': 'RHN'}
              component_type = <type 'str'> server.xmlrpc
              start_response = <type 'builtin_function_or_method'> <built-in method start_response of mod_wsgi.Adapter object at 0x7f90f78c74e0>
                           k = <type 'str'> Rhn
                         req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f90f773e908>
                   parseServ = <type 'instancemethod'> <bound method apacheHandler.headerParserHandler of <spacewalk.server.apacheHandler.apacheHandler instance at 0x7f90f7ad7f
+c8>>
                         ret = <type 'int'> 0
                      server = <type 'str'> xmlrpc
                     environ = <type 'dict'> {'mod_wsgi.listener_port': '80', 'X-RHN-Client-Capability': 'caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,pa
+ckages.verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,packages.rollBack(1)=1', 'CONTEXT_DOCUMENT_ROOT': '/var/www/html', 'SERVER_SOFTWARE': 'Apache',
+'SCRIPT_NAME': '/XMLRPC', 'HTTP_X_TRANSPORT_INFO': 'Extended Capabilities Transport (C) Red Hat, Inc (version 2.5.69-1.fc20)', 'mod_wsgi.handler_script': '',
+'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'X-Info': 'RPC Processor (C) Red Hat, Inc (version
+2.5.69-1.fc20)', 'User-Agent': 'rhn.rpclib.py/2.5.69-1.fc20', 'CONTENT_LENGTH': '676', 'HTTP_USER_AGENT': 'rhn.rpclib.py/2.5.69-1.fc20', 'HTTP_X_UP2DATE_VERSION':
+'2.1.16-1.fc20', 'SERVER_NAME': 'krelln.pipebreaker.pl', 'REMOTE_ADDR': '2001:6a0:138:1:947d:b9ff:fe0c:44b3', 'mod_wsgi.queue_start': '1403719591439751', 'mod_wsgi.r!
 equest_handler': 'wsgi-script', 'mod_wsgi.version': (3, 5), 'wsgi.url_scheme': 'http', 'Host': 'krelln.pipebreaker.pl', 'X-RHN-Transport-Capability': 'follow-redirects=3', 'mo
+d_wsgi.callable_object': 'application', 'SERVER_PORT': '80', 'wsgi.multiprocess': True, 'mod_wsgi.input_chunked': '0', 'SERVER_ADDR': '2001:6a0:138:1:216:3eff:fe72:6943',
+'DOCUMENT_ROOT': '/var/www/html', 'mod_wsgi.process_group': '', 'Accept-Encoding': 'identity', 'HTTP_X_RHN_CLIENT_CAPABILITY':
+'caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,packages.verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,packages.rollBack(1)=1',
+'SCRIPT_FILENAME': '/usr/share/rhn/wsgi/xmlrpc.py', 'SERVER_ADMIN': 'root@localhost', 'X-Up2Date-Version': '2.1.16-1.fc20', 'X-Transport-Info': 'Extended Capabilities
+Transport (C) Red Hat, Inc (version 2.5.69-1.fc20)', 'SCRIPT_URI': 'http://krelln.pipebreaker.pl/XMLRPC', 'HTTP_X_CLIENT_VERSION': '1', 'wsgi.input': <mod_wsgi.Input object at
+0x7f90f!
 77c46f0>, 'HTTP_HOST': 'krelln.pipebreaker.pl', 'SCRIPT_URL': '/XMLRPC', 'wsgi.multithread': False, 'mod_wsgi.enable_sendfile': '0', 'REQUEST_URI': '/XMLRPC', 'X-Client-Versio
+n': '1', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x7f90f77c4030>, 'REMOTE_PORT': '41405',
+'mod_wsgi.listener_host': '', 'REQUEST_SCHEME': 'http', 'CONTEXT_PREFIX': '', 'HTTP_X_RHN_TRANSPORT_CAPABILITY': 'follow-redirects=3', 'CONTENT_TYPE': 'text/xml',
+'mod_wsgi.application_group': 'krelln.pipebreaker.pl|/xmlrpc', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object
+at 0x7f90f78c74e0>, 'HTTP_ACCEPT_ENCODING': 'identity', 'UNIQUE_ID': 'U6sPp2reMhVX@n9idm6TbwAAAAE', 'HTTP_X_INFO': 'RPC Processor (C) Red Hat, Inc (version 2.5.69-1.fc20)'}
                         key = <type 'str'> HTTP_X_INFO
                           v = <type 'str'> RHN
                  servertype = <type 'str'> spacewalk.server.apacheServer
                     new_key = <type 'str'> X-Info
                     appServ = <type 'instancemethod'> <bound method apacheHandler.handler of <spacewalk.server.apacheHandler.apacheHandler instance at 0x7f90f7ad7fc8>>

Frame application in /usr/share/rhn/wsgi/xmlrpc.py at line 22
              start_response = <type 'builtin_function_or_method'> <built-in method start_response of mod_wsgi.Adapter object at 0x7f90f78c74e0>
                     environ = <type 'dict'> {'mod_wsgi.listener_port': '80', 'X-RHN-Client-Capability': 'caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,pa
+ckages.verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,packages.rollBack(1)=1', 'CONTEXT_DOCUMENT_ROOT': '/var/www/html', 'SERVER_SOFTWARE': 'Apache',
+'SCRIPT_NAME': '/XMLRPC', 'HTTP_X_TRANSPORT_INFO': 'Extended Capabilities Transport (C) Red Hat, Inc (version 2.5.69-1.fc20)', 'mod_wsgi.handler_script': '',
+'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'POST', 'PATH_INFO': '', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'X-Info': 'RPC Processor (C) Red Hat, Inc (version
+2.5.69-1.fc20)', 'User-Agent': 'rhn.rpclib.py/2.5.69-1.fc20', 'CONTENT_LENGTH': '676', 'HTTP_USER_AGENT': 'rhn.rpclib.py/2.5.69-1.fc20', 'HTTP_X_UP2DATE_VERSION':
'2.1.16-1.fc20', 'SERVER_NAME': 'krelln.pipebreaker.pl', 'REMOTE_ADDR': '2001:6a0:138:1:947d:b9ff:fe0c:44b3', 'mod_wsgi.queue_start': '1403719591439751', 'mod_wsgi.r!
 equest_handler': 'wsgi-script', 'mod_wsgi.version': (3, 5), 'wsgi.url_scheme': 'http', 'Host': 'krelln.pipebreaker.pl', 'X-RHN-Transport-Capability': 'follow-redirects=3', 'mo
+d_wsgi.callable_object': 'application', 'SERVER_PORT': '80', 'wsgi.multiprocess': True, 'mod_wsgi.input_chunked': '0', 'SERVER_ADDR': '2001:6a0:138:1:216:3eff:fe72:6943',
+'DOCUMENT_ROOT': '/var/www/html', 'mod_wsgi.process_group': '', 'Accept-Encoding': 'identity', 'HTTP_X_RHN_CLIENT_CAPABILITY':
+'caneatCheese(1)=1,packages.extended_profile(2)=1,reboot.reboot(1)=1,packages.verify(1)=1,packages.runTransaction(1)=1,packages.update(2)=2,packages.rollBack(1)=1',
+'SCRIPT_FILENAME': '/usr/share/rhn/wsgi/xmlrpc.py', 'SERVER_ADMIN': 'root@localhost', 'X-Up2Date-Version': '2.1.16-1.fc20', 'X-Transport-Info': 'Extended Capabilities
+Transport (C) Red Hat, Inc (version 2.5.69-1.fc20)', 'SCRIPT_URI': 'http://krelln.pipebreaker.pl/XMLRPC', 'HTTP_X_CLIENT_VERSION': '1', 'wsgi.input': <mod_wsgi.Input object at
+0x7f90f!
 77c46f0>, 'HTTP_HOST': 'krelln.pipebreaker.pl', 'SCRIPT_URL': '/XMLRPC', 'wsgi.multithread': False, 'mod_wsgi.enable_sendfile': '0', 'REQUEST_URI': '/XMLRPC', 'X-Client-Versio
+n': '1', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x7f90f77c4030>, 'REMOTE_PORT': '41405',
+'mod_wsgi.listener_host': '', 'REQUEST_SCHEME': 'http', 'CONTEXT_PREFIX': '', 'HTTP_X_RHN_TRANSPORT_CAPABILITY': 'follow-redirects=3', 'CONTENT_TYPE': 'text/xml',
+'mod_wsgi.application_group': 'krelln.pipebreaker.pl|/xmlrpc', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object
+at 0x7f90f78c74e0>, 'HTTP_ACCEPT_ENCODING': 'identity', 'UNIQUE_ID': 'U6sPp2reMhVX@n9idm6TbwAAAAE', 'HTTP_X_INFO': 'RPC Processor (C) Red Hat, Inc (version 2.5.69-1.fc20)'}


Environment for PID=8148 on exception:
LANG = C
NOTIFY_SOCKET = @/org/freedesktop/systemd1/notify/11385697966408461597
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin


Version-Release number of selected component (if applicable):
in the traceback above.

How reproducible:
always

Comment 2 Tomasz Torcz 2016-04-29 17:06:55 UTC
I'm no longer interested in Spacewalk.

Comment 3 Eric Herget 2017-09-28 18:07:53 UTC
This BZ closed some time during 2.5, 2.6 or 2.7.  Adding to 2.7 tracking bug.


Note You need to log in before you can comment on or make changes to this bug.