Running Cobbler 2.4.1 I observe a template eval failure when I reference
the "preseed_late_default" script (this file is packaged with Cobbler and
I'm using it unmodified.)
Here's the error detail from /var/log/cobbler/cobbler.log:
Wed Jun 25 21:34:46 2014 - INFO | REMOTE generate_script, name is
> preseed_late_default; user(?)
> Wed Jun 25 21:34:46 2014 - INFO | generate_script
> Wed Jun 25 21:34:46 2014 - ERROR |
> # *** 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.
> #
> #
> # need more than 1 value to unpack
> # File "/usr/lib/python2.7/dist-packages/cobbler/templar.py", line 208,
> in render_cheetah
> # data_out = t.respond()
> #
> # File
> "cheetah_DynamicallyCompiledCheetahTemplate_1403732086_31_85730.py", line
> 127, in respond
> #
> # File
> "cheetah_DynamicallyCompiledCheetahTemplate_1403732086_31_85730.py", line
> 70, in __errorCatcher1
> #
> # File "<string>", line 1, in <module>
> #
> # File "/usr/lib/python2.7/dist-packages/cobbler/template_api.py", line
> 170, in SNIPPET
> # result = BuiltinTemplate.SNIPPET(self, file)
> #
> # File "DynamicallyCompiledCheetahTemplate.py", line 88, in SNIPPET
> #
> # File "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line
> 1615, in _handleCheetahInclude
> # self._CHEETAH__cheetahIncludes[_includeID].respond(trans)
> #
> # File
> "cheetah_DynamicallyCompiledCheetahTemplate_1403732086_39_57405.py", line
> 368, in respond
> #
> Wed Jun 25 21:34:46 2014 - INFO | Exception occured: <class '
> cobbler.cexceptions.CX'>
> Wed Jun 25 21:34:46 2014 - INFO | Exception value: 'Error templating file,
> check cobbler.log for more details'
I dug further and was able to isolate the problem to the
"post_install_network_config_deb" snippet (again this is a Cobbler-provided
file which I'm using unmodified.) If I exclude that snippet from the
preseed_late_default script then the error disappears.
I've had no luck in discerning what about the
post_install_network_config_deb is causing the template eval to choke.
Any help here would be most appreciated.
Russ