[Spacewalk-list] Proxy Kickstart Error

Dacre, Alex Alex.Dacre at cirrus.com
Thu Jan 10 16:37:32 UTC 2019


Hi,

Seeing the error blow when attempting to kickstart through a proxy (Spacewalk 2.8).

Any guidance would be appreciated:


Exception reported from aus-spacewalk-01.ad.cirrus.com

Time: Thu Jan 10 16:30:55 2019

Exception type <type 'exceptions.IndexError'> Exception while handling function handler Request object information:

URI: /ks/dist/org/1/rhel-server-7.6-x86_64-dvd

Remote Host: edinb754036.ad.cirrus.com

Server Name: aus-spacewalk-01.ad.cirrus.com:80 Headers passed in:

                Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8

                Accept-Encoding: gzip, deflate

                Accept-Language: en-US,en;q=0.9

                CONTEXT_DOCUMENT_ROOT: /var/www/html

                CONTEXT_PREFIX:

                Connection: keep-alive

                Cookie: _ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803

                DOCUMENT_ROOT: /var/www/html

                GATEWAY_INTERFACE: CGI/1.1

                HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8

                HTTP_ACCEPT_ENCODING: gzip, deflate

                HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.9

                HTTP_CONNECTION: keep-alive

                HTTP_COOKIE: _ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803

                HTTP_HOST: aus-spacewalk-01.ad.cirrus.com

                HTTP_UPGRADE_INSECURE_REQUESTS: 1

                HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

                Host: aus-spacewalk-01.ad.cirrus.com

                PATH_INFO: /dist/org/1/rhel-server-7.6-x86_64-dvd

                PATH_TRANSLATED: /var/www/html/dist/org/1/rhel-server-7.6-x86_64-dvd

                QUERY_STRING:

                REMOTE_ADDR: 198.90.223.95

                REMOTE_PORT: 54179

                REQUEST_METHOD: GET

                REQUEST_SCHEME: http

                REQUEST_URI: /ks/dist/org/1/rhel-server-7.6-x86_64-dvd

                SCRIPT_FILENAME: /usr/share/rhn/wsgi/xmlrpc.py

                SCRIPT_NAME: /ks

                SCRIPT_URI: http://aus-spacewalk-01.ad.cirrus.com/ks/dist/org/1/rhel-server-7.6-x86_64-dvd

                SCRIPT_URL: /ks/dist/org/1/rhel-server-7.6-x86_64-dvd

                SERVER_ADDR: 141.131.61.83

                SERVER_ADMIN: root at localhost

                SERVER_NAME: aus-spacewalk-01.ad.cirrus.com

                SERVER_PORT: 80

                SERVER_PROTOCOL: HTTP/1.1

                SERVER_SIGNATURE:

                SERVER_SOFTWARE: Apache/2.4.6 (Scientific Linux) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5

                UNIQUE_ID: XDdzP4MasFsnr-owBsERxQAAAAc

                Upgrade-Insecure-Requests: 1

                User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

                mod_wsgi.application_group: aus-spacewalk-01.ad.cirrus.com|/ks

                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: 1547137855830499

                mod_wsgi.request_handler: wsgi-script

                mod_wsgi.script_reloading: 1

                mod_wsgi.version: (3, 4)

                wsgi.errors: <mod_wsgi.Log object at 0x7f83a1bae5f0>

                wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f83a1b48c60>

                wsgi.input: <cStringIO.StringO object at 0x7f83a197ab58>

                wsgi.multiprocess: True

                wsgi.multithread: False

                wsgi.run_once: False

                wsgi.url_scheme: http

                wsgi.version: (1, 0)

Extra information about this error:

Unhandled exception type



Exception Handler Information

Traceback (most recent call last):

  File "/usr/share/rhn/proxy/apacheServer.py", line 62, in __call__

    ret = f(req)

  File "/usr/share/rhn/proxy/apacheHandler.py", line 359, in handler

    ret = handlerObj.handler()

  File "/usr/share/rhn/proxy/broker/rhnBroker.py", line 221, in handler

    getResult = self.__local_GET_handler(self.req)

  File "/usr/share/rhn/proxy/broker/rhnBroker.py", line 421, in __local_GET_handler

    reqident, reqaction, reqparams = self._split_ks_url(req)

  File "/usr/share/rhn/proxy/broker/rhnBroker.py", line 338, in _split_ks_url

    if args[5] == 'Packages':

IndexError: list index out of range



Local variables by frame

Frame _split_ks_url in /usr/share/rhn/proxy/broker/rhnBroker.py at line 338

                              action = <type 'NoneType'> None

                           kickstart = <type 'str'> rhel-server-7.6-x86_64-dvd

                              params = <type 'dict'> {'session': None, 'orgId': '1', 'file': 'rhel-server-7.6-x86_64-dvd', 'child': None}

                                 req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f83a1c10c20>

                                args = <type 'list'> ['', 'dist', 'org', '1', 'rhel-server-7.6-x86_64-dvd']



Frame __local_GET_handler in /usr/share/rhn/proxy/broker/rhnBroker.py at line 421

                                self = <type 'instance'> <proxy.broker.rhnBroker.BrokerHandler instance at 0x7f83a196d758>

                                args = <type 'list'> ['', 'dist', 'org', '1', 'rhel-server-7.6-x86_64-dvd']

                                 req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f83a1c10c20>

                            req_type = <type 'str'> ks-dist



Frame handler in /usr/share/rhn/proxy/broker/rhnBroker.py at line 221

                           client_ip = <type 'str'> 198.90.223.95

                             ip_path = <type 'str'> 198.90.223.95

                                _oto = <type 'instance'> {'context_document_root': '/var/www/html', 'accept-language': 'en-US,en;q=0.9', 'connection': 'keep-alive', 'script_filename': '/usr/share/rhn/wsgi/xmlrpc.py', 'request_scheme': 'http', 'script_name': '/ks', 'mod_wsgi.enable_sendfile': '0', 'http_user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'mod_wsgi.script_reloading': '1', 'script_url': '/ks/dist/org/1/rhel-server-7.6-x86_64-dvd', 'server_protocol': 'HTTP/1.1', 'mod_wsgi.handler_script': '', 'http_accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'script_uri': 'http://aus-spacewalk-01.ad.cirrus.com/ks/dist/org/1/rhel-server-7.6-x86_64-dvd', 'http_upgrade_insecure_requests': '1', 'server_name': 'aus-spacewalk-01.ad.cirrus.com', 'remote_addr': '198.90.223.95', 'mod_wsgi.queue_start': '1547137855830499', 'http_accept_language': 'en-US,en;q=0.9', 'mod_wsgi.request

_handler': 'wsgi-script', 'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'wsgi.url_scheme': 'http', 'request_method': 'GET', 'mod_wsgi.callable_object': 'application', 'server_port': '80', 'server_admin': 'root at localhost', 'wsgi.multiprocess': True, 'request_uri': '/ks/dist/org/1/rhel-server-7.6-x86_64-dvd', 'mod_wsgi.input_chunked': '0', 'remote_port': '54179', 'server_addr': '141.131.61.83', 'document_root': '/var/www/html', 'mod_wsgi.process_group': '', 'accept-encoding': 'gzip, deflate', 'http_cookie': '_ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803', 'server_software': 'Apache/2.4.6 (Scientific Linux) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5', 'wsgi.input': <cStringIO.StringO object at 0x7f83a197ab58>, 'cookie': '_ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803', 'path_info': '/dist/org/1/rhel-server-7.6-x86_64-dvd', 'wsgi.multithread': False, 'wsgi.versio

n': (1, 0), 'upgrade-insecure-requests': '1', 'mod_wsgi.version': (3, 4), 'x-rhn-ip-path': '198.90.223.95', 'http_connection': 'keep-alive', 'gateway_interface': 'CGI/1.1', 'wsgi.run_once': False, 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'wsgi.errors': <mod_wsgi.Log object at 0x7f83a1bae5f0>, 'mod_wsgi.listener_port': '80', 'mod_wsgi.listener_host': '', 'host': 'aus-spacewalk-01.ad.cirrus.com', 'context_prefix': '', 'http_accept_encoding': 'gzip, deflate', 'server_signature': '', 'x-rhn-transport-capability': 'follow-redirects=3', 'path_translated': '/var/www/html/dist/org/1/rhel-server-7.6-x86_64-dvd', 'mod_wsgi.application_group': 'aus-spacewalk-01.ad.cirrus.com|/ks', 'query_string': '', 'http_host': 'aus-spacewalk-01.ad.cirrus.com', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f83a1b48c60>, 'unique_id': 'XDdzP4MasFsnr-owBsERxQAAAAc'}

                                self = <type 'instance'> <proxy.broker.rhnBroker.BrokerHandler instance at 0x7f83a196d758>



Frame handler in /usr/share/rhn/proxy/apacheHandler.py at line 361

                          handlerObj = <type 'instance'> <proxy.broker.rhnBroker.BrokerHandler instance at 0x7f83a196d758>

                                self = <type 'instance'> <proxy.apacheHandler.apacheHandler instance at 0x7f83a1959cb0>

                                 req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f83a1c10c20>

                                 ret = <type 'int'> 0

                           rhnBroker = <type 'module'> <module 'proxy.broker.rhnBroker' from '/usr/share/rhn/proxy/broker/rhnBroker.pyc'>



Frame __call__ in /usr/share/rhn/proxy/apacheServer.py at line 68

                                self = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0x7f83a1a16b90>

                                 req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f83a1c10c20>

                                   f = <type 'instancemethod'> <bound method apacheHandler.handler of <proxy.apacheHandler.apacheHandler instance at 0x7f83a1959cb0>>



Frame handle in /usr/share/rhn/wsgi/wsgiHandler.py at line 44

                        replacements = <type 'dict'> {'Xml': 'XML', 'Actualuri': 'ActualURI', 'Md5Sum': 'MD5sum', '_': '-', 'Rhn': 'RHN'}

                      component_type = <type 'str'> proxy.broker

                      start_response = <type 'builtin_function_or_method'> <built-in method start_response of mod_wsgi.Adapter object at 0x7f83a1b48c60>

                                   k = <type 'str'> Rhn

                                 req = <type 'instance'> <wsgi.wsgiRequest.WsgiRequest instance at 0x7f83a1c10c20>

                           parseServ = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0x7f83a1a16638>

                                 ret = <type 'int'> 0

                              server = <type 'str'> broker

                             environ = <type 'dict'> {'mod_wsgi.listener_port': '80', 'Accept-Language': 'en-US,en;q=0.9', 'HTTP_COOKIE': '_ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803', 'mod_wsgi.listener_host': '', 'CONTEXT_DOCUMENT_ROOT': '/var/www/html', 'SERVER_SOFTWARE': 'Apache/2.4.6 (Scientific Linux) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5', 'SCRIPT_NAME': '/ks', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/dist/org/1/rhel-server-7.6-x86_64-dvd', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'aus-spacewalk-01.ad.cirrus.com', 'REMOTE_ADDR': '198.90.223.95', 'Accept': '

text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'mod_wsgi.queue_start': '1547137855830499', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.version': (3, 4), 'wsgi.url_scheme': 'http', 'Host': 'aus-spacewalk-01.ad.cirrus.com', 'Cookie': '_ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803', 'PATH_TRANSLATED': '/var/www/html/dist/org/1/rhel-server-7.6-x86_64-dvd', 'SERVER_PORT': '80', 'wsgi.multiprocess': True, 'mod_wsgi.input_chunked': '0', 'SERVER_ADDR': '141.131.61.83', 'DOCUMENT_ROOT': '/var/www/html', 'mod_wsgi.process_group': '', 'Accept-Encoding': 'gzip, deflate', 'SCRIPT_FILENAME': '/usr/share/rhn/wsgi/xmlrpc.py', 'SERVER_ADMIN': 'root at localhost', 'SCRIPT_URI': 'http://aus-spacewalk-01.ad.cirrus.com/ks/dist/org/1/rhel-server-7.6-x86_64-dvd', 'wsgi.input': <cStringIO.StringO object at 0x7f83a197ab58>, 'Connection': 'keep-alive', 'HTTP_HOST': 'aus-spacewalk-01.ad.cirrus.com', 'SCRIPT_URL': '/ks/dist/org/1/rhel-server-7.6  -x86_64-dvd', 'mod_wsgi.callable_object': 'application', 'wsgi.multithread': False, 'HTTP_UPGRADE_INSECURE_REQUESTS': '1', 'REQUEST_URI': '/ks/dist/org/1/rhel-server-7.6-x86_64-dvd', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x7f83a1bae5f0>, 'REMOTE_PORT': '54179', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'REQUEST_SCHEME': 'http', 'CONTEXT_PREFIX': '', 'Upgrade-Insecure-Requests': '1', 'mod_wsgi.application_group': 'aus-spacewalk-01.ad.cirrus.com|/ks', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f83a1b48c60>, 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'UNIQUE_ID': 'XDdzP4MasFsnr-owBsERxQAAAAc'}

                                 key = <type 'str'> UNIQUE_ID

                                   v = <type 'str'> RHN

                          servertype = <type 'str'> proxy.apacheServer

                             new_key = <type 'str'> Accept-Encoding

                             appServ = <type 'instance'> <proxy.apacheServer.HandlerWrap instance at 0x7f83a1a16b90>



Frame application in /usr/share/rhn/wsgi/xmlrpc.py at line 23

                      start_response = <type 'builtin_function_or_method'> <built-in method start_response of mod_wsgi.Adapter object at 0x7f83a1b48c60>

                             environ = <type 'dict'> {'mod_wsgi.listener_port': '80', 'Accept-Language': 'en-US,en;q=0.9', 'HTTP_COOKIE': '_ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803', 'mod_wsgi.listener_host': '', 'CONTEXT_DOCUMENT_ROOT': '/var/www/html', 'SERVER_SOFTWARE': 'Apache/2.4.6 (Scientific Linux) OpenSSL/1.0.2k-fips mod_wsgi/3.4 Python/2.7.5', 'SCRIPT_NAME': '/ks', 'mod_wsgi.enable_sendfile': '0', 'mod_wsgi.handler_script': '', 'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'GET', 'PATH_INFO': '/dist/org/1/rhel-server-7.6-x86_64-dvd', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36', 'HTTP_CONNECTION': 'keep-alive', 'SERVER_NAME': 'aus-spacewalk-01.ad.cirrus.com', 'REMOTE_ADDR': '198.90.223.95', 'Accept': '

text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'mod_wsgi.queue_start': '1547137855830499', 'mod_wsgi.request_handler': 'wsgi-script', 'mod_wsgi.version': (3, 4), 'wsgi.url_scheme': 'http', 'Host': 'aus-spacewalk-01.ad.cirrus.com', 'Cookie': '_ga=GA1.2.1160426573.1533541701; _gid=GA1.2.843463442.1547136803', 'PATH_TRANSLATED': '/var/www/html/dist/org/1/rhel-server-7.6-x86_64-dvd', 'SERVER_PORT': '80', 'wsgi.multiprocess': True, 'mod_wsgi.input_chunked': '0', 'SERVER_ADDR': '141.131.61.83', 'DOCUMENT_ROOT': '/var/www/html', 'mod_wsgi.process_group': '', 'Accept-Encoding': 'gzip, deflate', 'SCRIPT_FILENAME': '/usr/share/rhn/wsgi/xmlrpc.py', 'SERVER_ADMIN': 'root at localhost', 'SCRIPT_URI': 'http://aus-spacewalk-01.ad.cirrus.com/ks/dist/org/1/rhel-server-7.6-x86_64-dvd', 'wsgi.input': <cStringIO.StringO object at 0x7f83a197ab58>, 'Connection': 'keep-alive', 'HTTP_HOST': 'aus-spacewalk-01.ad.cirrus.com', 'SCRIPT_URL': '/ks/dist/org/1/rhel-server-7.6  -x86_64-dvd', 'mod_wsgi.callable_object': 'application', 'wsgi.multithread': False, 'HTTP_UPGRADE_INSECURE_REQUESTS': '1', 'REQUEST_URI': '/ks/dist/org/1/rhel-server-7.6-x86_64-dvd', 'HTTP_ACCEPT': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8', 'wsgi.version': (1, 0), 'GATEWAY_INTERFACE': 'CGI/1.1', 'wsgi.run_once': False, 'wsgi.errors': <mod_wsgi.Log object at 0x7f83a1bae5f0>, 'REMOTE_PORT': '54179', 'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.9', 'REQUEST_SCHEME': 'http', 'CONTEXT_PREFIX': '', 'Upgrade-Insecure-Requests': '1', 'mod_wsgi.application_group': 'aus-spacewalk-01.ad.cirrus.com|/ks', 'mod_wsgi.script_reloading': '1', 'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f83a1b48c60>, 'HTTP_ACCEPT_ENCODING': 'gzip, deflate', 'UNIQUE_ID': 'XDdzP4MasFsnr-owBsERxQAAAAc'}





Environment for PID=57031 on exception:

LANG = C

NOTIFY_SOCKET = /run/systemd/notify

PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin



This message and any attachments may contain privileged and confidential information that is intended solely for the person(s) to whom it is addressed. If you are not an intended recipient you must not: read; copy; distribute; discuss; take any action in or make any reliance upon the contents of this message; nor open or read any attachment. If you have received this message in error, please notify us as soon as possible on the following telephone number and destroy this message including any attachments. Thank you. Cirrus Logic International (UK) Ltd and Cirrus Logic International Semiconductor Ltd are companies registered in Scotland, with registered numbers SC089839 and SC495735 respectively. Our registered office is at 7B Nightingale Way, Quartermile, Edinburgh, EH3 9EG, UK. Tel: +44 (0)131 272 7000. cirrus.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20190110/5be661dc/attachment.htm>


More information about the Spacewalk-list mailing list