[Spacewalk-list] Cobbler kickstarting in a Static IP setting
Velayutham, Prakash
Prakash.Velayutham at cchmc.org
Fri Jun 22 13:50:56 UTC 2012
I am using the Cobbler boot ISO disk created using "cobbler buildiso". What I keep having issues with is that when I use any of the pre/post scripts in https://www.redhat.com/archives/spacewalk-list/2012-March/msg00198.html, I get "Internal Server Error" in the Spacewalk interface when I try to view the kickstart file. Also, in the cobbler logs (/var/log/cobbler/cobbler.log), I see the following error:
Fri Jun 22 09:46:23 2012 - INFO | REMOTE find_items(profile); criteria({'uid': 'MTM0MDMwMTMzMS4yNjgxNjc2NjEuMzM4NA'}); sort(None); user(?)
Fri Jun 22 09:46:23 2012 - INFO | find_items; ['profile']
Fri Jun 22 09:46:23 2012 - INFO | REMOTE generate_kickstart; user(?)
Fri Jun 22 09:46:23 2012 - INFO | generate_kickstart
Fri Jun 22 09:46:23 2012 - INFO | Exception occured: <class 'Cheetah.Parser.ParseError'>
Fri Jun 22 09:46:23 2012 - INFO | Exception value:
#end found, but nothing to end
Line 112, column 1
Line|Cheetah Code
----|-------------------------------------------------------------
109 |done
110 |#end raw
111 |#end if
112 |
^
113 |echo "NETWORKING=yes
114 |HOSTNAME=$HOSTNAME
115 |GATEWAY=$GATEWAY" > /tmp/network
Fri Jun 22 09:46:23 2012 - INFO | Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 1944, in _dispatch
return method_handle(*params)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 994, in generate_kickstart
return self.api.generate_kickstart(profile,system)
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 645, in generate_kickstart
return self.kickgen.generate_kickstart_for_profile(profile)
File "/usr/lib/python2.6/site-packages/cobbler/kickgen.py", line 297, in generate_kickstart_for_profile
return self.generate_kickstart(profile=g)
File "/usr/lib/python2.6/site-packages/cobbler/kickgen.py", line 275, in generate_kickstart
data = self.templar.render(raw_data, meta, None, obj)
File "/usr/lib/python2.6/site-packages/cobbler/templar.py", line 128, in render
t = Template(source=raw_data, errorCatcher="Echo", searchList=[search_table], compilerSettings={'useStackFrame':False})
File "DynamicallyCompiledCheetahTemplate.py", line 55, in __init__
File "_etc_cobbler_cheetah_macros.py", line 55, in __init__
File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line 1257, in __init__
self._compile(source, file, compilerSettings=compilerSettings)
File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line 1551, in _compile
keepRefToGeneratedCode=True)
File "/usr/lib/python2.6/site-packages/cobbler/template_api.py", line 127, in compile
return Cheetah.Template.Template.compile(*args, **kwargs)
File "/usr/lib64/python2.6/site-packages/Cheetah/Template.py", line 740, in compile
compiler.compile()
File "/usr/lib64/python2.6/site-packages/Cheetah/Compiler.py", line 1657, in compile
self._parser.parse()
File "/usr/lib64/python2.6/site-packages/Cheetah/Parser.py", line 1489, in parse
self.eatDirective()
File "/usr/lib64/python2.6/site-packages/Cheetah/Parser.py", line 1613, in eatDirective
directiveParser()
File "/usr/lib64/python2.6/site-packages/Cheetah/Parser.py", line 1764, in eatEndDirective
self.popFromOpenDirectivesStack(directiveName)
File "/usr/lib64/python2.6/site-packages/Cheetah/Parser.py", line 2644, in popFromOpenDirectivesStack
raise ParseError(self, msg="#end found, but nothing to end")
Fri Jun 22 09:46:23 2012 - INFO | REMOTE find_items(profile); criteria({'uid': 'MTM0MDMwMTMzMS4yNjgxNjc2NjEuMzM4NA'}); sort(None); user(?)
Fri Jun 22 09:46:23 2012 - INFO | find_items; ['profile']
Fri Jun 22 09:47:00 2012 - DEBUG | get_items; ['distro']
Not sure what is causing this, as I thought #raw fragments are supposed to work.
Thanks,
Prakash
On Jun 21, 2012, at 3:04 PM, J.W. slone wrote:
How are you doing your install?
Are you pointing to you spacewalk server at boot command?
Example boot: linux ks=http://1.2.3.4/ks/cdf/org/1/mode/IP of your new system you are trying to build
This is assuming your configuration on your spacewalk server is already complete
From: "Velayutham, Prakash" <Prakash.Velayutham at cchmc.org<mailto:Prakash.Velayutham at cchmc.org>>
To: "<spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>" <spacewalk-list at redhat.com<mailto:spacewalk-list at redhat.com>>
Sent: Thursday, June 21, 2012 10:15 AM
Subject: Re: [Spacewalk-list] Cobbler kickstarting in a Static IP setting
Hello,
Thanks. That worked like a charm now. Must be one of the settings in my Wizard that caused it to fail before.
Anyways, I sporadically keep getting "Internal Server Error" when I make a change to some portions of the pre/post scripts. I think in the backend the system auto-adds #raw and #end raw tags in wrong places which is causing these errors. Have you seen these?
Thanks,
Prakash
On Jun 20, 2012, at 4:47 PM, Paul Robert Marino wrote:
Building a boot iso ththie cobble build iso and the just the boot options edit in method 2 in your list have always worked for me
On Jun 20, 2012 3:17 PM, "Velayutham, Prakash" <Prakash.Velayutham at cchmc.org<mailto:Prakash.Velayutham at cchmc.org>> wrote:
Hi,
I am trying to kickstart a new system using Spacewalk/Cobbler, but can't use DHCP. I have tried the following suggestions that are out there in the google world, but can't get it to work.
1. http://www.redhat.com/archives/spacewalk-list/2010-April/msg00193.html
2. https://www.redhat.com/archives/spacewalk-list/2012-March/msg00198.html
Can anyone help?
Thanks,
Prakash
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list
_______________________________________________
Spacewalk-list mailing list
Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>
https://www.redhat.com/mailman/listinfo/spacewalk-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20120622/9938ac10/attachment.htm>
More information about the Spacewalk-list
mailing list