Bug 441215

Summary: findks.cgi matching ip_address and mac_address is broken
Product: [Fedora] Fedora EPEL Reporter: Carsten Clasohm <clasohm>
Component: cobblerAssignee: Michael DeHaan <mdehaan>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: el5CC: mastahnke
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: ActualBug
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-06-24 18:57:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
error message when accessing findks.cgi in a browser
none
patch which fixes IP and MAC address matches none

Description Carsten Clasohm 2008-04-07 07:52:34 UTC
Description of problem:

With the current version of Cobbler, the findks.cgi script does not work,
because the structure of the "system" record has changed. ip_address and
mac_address are no longer top-level keys.


Version-Release number of selected component (if applicable):

cobbler-0.8.2-1.el5

How reproducible:

always

Steps to Reproduce:

1. Create a system in the Cobbler Web UI, and set the MAC address or IP address
of the first interface.

2. Try to kickstart the system with the kickstart URL
http://server/cgi-bin/cobbler/findks.cgi
  
Actual results:

Kickstart does not work. If you access the findks.cgi script from your browser,
you see the error message attached as findks-error.txt.

Expected results:

Matching on IP or MAC address should work.

Additional info:

The attached findks.patch fixes this problem.

Comment 1 Carsten Clasohm 2008-04-07 07:52:34 UTC
Created attachment 301478 [details]
error message when accessing findks.cgi in a browser

Comment 2 Carsten Clasohm 2008-04-07 07:53:15 UTC
Created attachment 301479 [details]
patch which fixes IP and MAC address matches

Comment 3 Michael DeHaan 2009-06-24 18:57:41 UTC
Seeing recent changes to the CC list for this one, please note that cobbler no longer uses any more CGI scripts.

If we need to reinstate similar functionality, we should do it through the mod_python handler -- should be easy enough to do.

Open up an email to cobbler list if you are interested and I can offer some tips in terms of patching this... otherwise, will be pushed back a bit in the queue.