[Spacewalk-list] Cobbler template error when using the kickstart template wizard

Tim Tedford ttedford at renesys.com
Mon May 9 15:13:37 UTC 2011


Could this problem be related to running Spacewalk on Scientific Linux? I
have been through everything that I can think to check, and have found no
reason for this behavior.

The kickstart template output in "/var/lib/rhn/kickstarts/wizard" has no
instanced of a $SNIPPET() having more than one argument, but there is one
line that seems odd:

%pre$kickstart_start$SNIPPET('pre_install_network_config')

All of the other $SNIPPET lines are alone on their lines. What generates the
files in /var/lib/rhn/kickstarts/wizard?

Thanks for any help you can provide.

Tim


On Thu, May 5, 2011 at 3:06 PM, Tim Tedford <ttedford at renesys.com> wrote:

> Hello everyone.
>
> I have a new Spacewalk 1.4 installation on Scientific Linux 6.0. When I
> create a new kickstart profile, I am receiving the following error on the
> profile's "Kickstart Details/Details" page:
>
> There are errors in your kickstart template. Please check the template
> errors<https://spacewalk.psm1.renesys.com/rhn/kickstart/KickstartFileDownload.do?ksid=9> to
> determine the problem with the template.
>
> The error output from the template errors page is below. This is a
> kickstart profile using a new Scientific Linux 6.0 Distribution and Base
> Channel.
>
> Any ideas of what could be causing this, or how I could fix it?
>
> Thanks,
> Tim Tedford
>
> # *** 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.
> #
> #
> # SNIPPET() takes exactly 2 arguments (3 given)
> #   File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 141, in render
> #     data_out = t.respond()
> #
> #   File "cheetah_DynamicallyCompiledCheetahTemplate_1304541712_12_75250.py", line 248, in respond
> #
> #   File "cheetah_DynamicallyCompiledCheetahTemplate_1304541712_12_75250.py", line 109, in __errorCatcher7
> #
> #   File "<string>", line 1, in <module>
> #
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20110509/b7e4fe37/attachment.htm>


More information about the Spacewalk-list mailing list