So now that I’ve upgraded to 1.4, I’m still having the same issue I was having back in 1.0 (though with better debugging output).  I have the following lines:

#if $ip_address

network --bootproto static --ip $ip_address --netmask 255.255.0.0 --gateway 10.0.0.62 --nameserver 10.0.100.1 --onboot=true --noipv6 --device=eth0

#end if

 

which are very similar to some I’ve seen online (to see if ip_address is defined), so they should work, yet I get the following errors when I try to view the rendered kickstart (from the webUi):

 

# *** ERROR ***

#

# There is a templating error preventing this file from rendering correctly.

#

# This is most likely not due to a bug in Cobbler and is something you can fix.

#

# Look at the message below to see what things are causing problems. 

#

# (1) Does the template file reference a $variable that is not defined?

# (2) is there a formatting error in a Cheetah directive?

# (3) Should dollar signs ($) be escaped that are not being escaped?

#

# Try fixing the problem and then investigate to see if this message goes

# away or changes.

#

#

# cannot find 'ip_address'

#   File "/usr/lib/python2.5/site-packages/cobbler/templar.py", line 114, in render

#     data_out = str(t)

#

#   File "/usr/lib64/python2.5/site-packages/Cheetah/Template.py", line 982, in __str__

#     def __str__(self): return getattr(self, mainMethName)()

#

#   File "cheetah_DynamicallyCompiledCheetahTemplate_1231532768_64_25621.py", line 122, in respond

#

 

<pre>

MOD_PYTHON ERROR

 

ProcessId:      10225

Interpreter:    'linux-jared.militho.com'

 

ServerName:     'linux-jared.militho.com'

DocumentRoot:   '/var/www/html'

 

URI:            '/cblr/svc/op/ks/profile/Fedora10-x86_64'

Location:       None

Directory:      '/var/www/cobbler/svc/'

Filename:       '/var/www/cobbler/svc/op'

PathInfo:       '/ks/profile/Fedora10-x86_64'

 

Phase:          'PythonHandler'

Handler:        'services'

 

Traceback (most recent call last):

 

  File "/usr/lib64/python2.5/site-packages/mod_python/importer.py", line 1537, in HandlerDispatch

    default=default_handler, arg=req, silent=hlist.silent)

 

  File "/usr/lib64/python2.5/site-packages/mod_python/importer.py", line 1229, in _process_target

    result = _execute_target(config, req, object, arg)

 

  File "/usr/lib64/python2.5/site-packages/mod_python/importer.py", line 1128, in _execute_target

    result = object(arg)

 

  File "/var/www/cobbler/svc/services.py", line 98, in handler

    return apache.HTTP_ERROR

 

AttributeError: 'module' object has no attribute 'HTTP_ERROR'

 

 

MODULE CACHE DETAILS

 

Accessed:       Fri Jan  9 14:27:48 2009

Generation:     2

 

_mp_cb62af599b9ec7a553f07c92e369abb6 {

  FileName:     '/var/www/cobbler/svc/services.py'

  Instance:     1

  Generation:   1

  Modified:     Fri Dec 19 10:17:37 2008

  Imported:     Fri Jan  9 13:37:26 2009

}

 

</pre>

 

 

Sorry if this is a very simple syntax issue, but I’m new to cobbler (and never used cheetah).  It seems to me though, that my install is broken.  I had the same issues before I rebuilt 1.4 from srpms, so I don’t think that’s the issue.  Thanks.

-Jared