Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 301478 Details for
Bug 441215
findks.cgi matching ip_address and mac_address is broken
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
error message when accessing findks.cgi in a browser
findks-error.txt (text/plain), 10.16 KB, created by
Carsten Clasohm
on 2008-04-07 07:52:34 UTC
(
hide
)
Description:
error message when accessing findks.cgi in a browser
Filename:
MIME Type:
Creator:
Carsten Clasohm
Created:
2008-04-07 07:52:34 UTC
Size:
10.16 KB
patch
obsolete
># kickstart managed by Cobbler -- http://cobbler.et.redhat.com ># served on Mon Apr 7 09:47:50 2008 >KeyError >Python 2.4.3: /usr/bin/python >Mon Apr 7 09:47:50 2008 > >A problem occurred in a Python script. Here is the sequence of >function calls leading up to the error, in the order they occurred. > > /var/www/cgi-bin/cobbler/findks.cgi > 144 cgitb.enable(format='text') > 145 header() > 146 (name, type) = parse_query() > 147 print "# %s %s" % (type,name) > 148 print "# requestor ip = %s" % os.environ["REMOTE_ADDR"] >name undefined >builtintype = <type 'type'> >parse_query = <function parse_query> > > /var/www/cgi-bin/cobbler/findks.cgi in parse_query() > 46 else: > 47 type = "system" > 48 name = autodetect() > 49 return (name,type) > 50 >name undefined >global autodetect = <function autodetect> > > /var/www/cgi-bin/cobbler/findks.cgi in autodetect() > 92 > 93 ip = os.environ["REMOTE_ADDR"] > 94 candidates = [system['name'] for system in systems if system['ip_address'] == ip] > 95 > 96 if len(candidates) == 0: >candidates undefined >system = {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '', 'hostname': 'cubad10206', 'ip_address': '', 'mac_address': '00:1a:a0:e5:44:a6', 'subnet': '', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {'nis': '1'}, 'name': 'cubad10206', 'netboot_enabled': 'False', 'parent': '', 'profile': 'RHEL4-U6-WS-x86_64', 'server': '<<inherit>>', ...} >systems = [{'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '', 'hostname': 'cubad10206', 'ip_address': '', 'mac_address': '00:1a:a0:e5:44:a6', 'subnet': '', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {'nis': '1'}, 'name': 'cubad10206', 'netboot_enabled': 'False', 'parent': '', 'profile': 'RHEL4-U6-WS-x86_64', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.128.81.1', 'hostname': 'cubad10208', 'ip_address': '', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'cubad10208', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-WS-x86_64', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.128.123.1', 'hostname': 'cubad10229', 'ip_address': '10.128.123.191', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'cubad10229', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-WS-x86_64', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.126.1', 'hostname': 'sabad10129', 'ip_address': '10.238.126.129', 'mac_address': '00:50:56:A9:14:08', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10129', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U5-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.125.1', 'hostname': 'sabad10203', 'ip_address': '10.238.125.203', 'mac_address': '00:50:56:a9:60:1f', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {'gnome': '1', 'web': '1'}, 'name': 'sabad10203', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.14.1', 'hostname': 'sabad10215', 'ip_address': '10.238.14.215', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10215', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.14.1', 'hostname': 'sabad10217', 'ip_address': '10.238.14.217', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10217', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.14.1', 'hostname': 'sabad10220', 'ip_address': '10.238.14.220', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10220', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.14.1', 'hostname': 'sabad10221', 'ip_address': '10.238.14.221', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10221', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.14.1', 'hostname': 'sabad10226', 'ip_address': '10.238.14.222', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10226', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.125.1', 'hostname': 'sabad10227', 'ip_address': '10.238.125.227', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10227', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.125.1', 'hostname': 'sabad10228', 'ip_address': '10.238.125.228 ', 'mac_address': '00:50:56:A9:2C:E7', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10228 QkR LDAP', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.83.1', 'hostname': 'sabad10285', 'ip_address': '10.238.83.21', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10285', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.14.1', 'hostname': 'sabad10293', 'ip_address': '10.238.14.93', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10293 impact', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.141.1', 'hostname': 'sabad10365', 'ip_address': '10.238.141.165', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10365', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.15.1', 'hostname': 'sabad10385', 'ip_address': '10.238.15.246', 'mac_address': '00:50:56:a9:34:b1', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10385', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.15.1', 'hostname': 'sabad10400', 'ip_address': '10.238.15.245', 'mac_address': '00:50:56:a9:28:60', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10400', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.125.1', 'hostname': 'sabad10402', 'ip_address': '10.238.125.220', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10402', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.238.125.1', 'hostname': 'sabad10403', 'ip_address': '10.238.125.221', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad10403', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL4-U6-ES-i386', 'server': '<<inherit>>', ...}, {'depth': 2, 'interfaces': {'intf0': {'dhcp_tag': '', 'gateway': '10.128.72.1', 'hostname': 'sabad19020', 'ip_address': '10.128.72.252', 'mac_address': '', 'subnet': '255.255.255.0', 'virt_bridge': ''}}, 'kernel_options': {}, 'kickstart': '<<inherit>>', 'ks_meta': {}, 'name': 'sabad19020', 'netboot_enabled': 'True', 'parent': '', 'profile': 'RHEL5.0-i386', 'server': '<<inherit>>', ...}, ...] >ip = '10.128.78.38' >KeyError: 'ip_address' > __doc__ = 'Mapping key not found.' > __getitem__ = <bound method KeyError.__getitem__ of <exceptions.KeyError instance>> > __init__ = <bound method KeyError.__init__ of <exceptions.KeyError instance>> > __module__ = 'exceptions' > __str__ = <bound method KeyError.__str__ of <exceptions.KeyError instance>> > args = ('ip_address',) > >The above is a description of an error in a Python program. Here is >the original traceback: > >Traceback (most recent call last): > File "/var/www/cgi-bin/cobbler/findks.cgi", line 146, in ? > (name, type) = parse_query() > File "/var/www/cgi-bin/cobbler/findks.cgi", line 48, in parse_query > name = autodetect() > File "/var/www/cgi-bin/cobbler/findks.cgi", line 94, in autodetect > candidates = [system['name'] for system in systems if system['ip_address'] == ip] >KeyError: 'ip_address' > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 441215
: 301478 |
301479