Jonas Bygdén wrote:
> On Mon, Mar 8, 2010 at 17:23, Scott Henson <[email protected]
> <mailto:[email protected]>> wrote:
>
>     Excerpts from Jonas Bygdén's message of Mon Mar 08 07:14:37 -0500 2010:
>      > Hi!
>      >
>      > I'm going nuts.
>      >
>      > After upgrading our Spacewalk server to 0.8 (and hence cobbler to
>     2.0) we
>      > can't get the systems to set their ip-address statically any more.
>      >
>      > After checking, testing, editing, testing, checking, testing,
>     editing and
>      > more testing I'm 99% sure that I get the *profile* kickstart file
>     instead of
>      > the *system* kickstart file, but I don't understand why.
>      >
>      > The system kickstart file contains the
>      > 'post_install_network_config'-snippet, but the profile kickstart
>     doesn't,
>      > and the /root/cobbler.ks left on the system after install doesn't
>     include
>      > the code that should have been expanded from the snippet. AND of
>     course the
>      > system doesn't have the ip-address set to static.
>      >
>      > Anybody else with these problems?
>
>     So you are trying to use profiles to statically configure the network?
>     Where does the network information come from to statically configure
>     the network in the case of a profile based kickstart?
>     --
>     Scott Henson
>     Red Hat CIS Operator
>     WVU Alum BSAE/BSME
>
> No, then you totally misunderstood me.
>
> I *most definitely do not* want the profile kickstart file, but I don't
> understand why I get that instead of the system one.
>
> With older cobbler version (don't remember right now which version was
> in Spacewalk 0.6) I just created the systems and the kickstartfile was
> the default for that system. Now it seems that it's the profile one I
> get instead.
>
> Why? How do I get the system to kickstart using it's own file? And if
> the default in 2.0 is changed, where's that documented? Is there at all
> any in-depth documentation on the cobbler architecture and how cobbler
> works with Spacewalk (which template is used where, how to edit
> templates, where do I add snippets in a template etc.)?
>
> /Jonas
>
>

Jonas, I don't use spacewalk, so I can't help you with that, but the 
first thing I suggest you try is to see if your ks file is rendered 
properly for the system. You can do it using WebUI or wget command 
(something like
wget http://cobbler_server/cblr/svc/op/ks/system/system_name ) and look 
at the resulting file. kickstart file used in profile is not a real 
kickstart usually, but rather a template with some variables that should 
be rendered by Cheetah when the kickstart associated with particular 
system is generated. Some changes were made lately to cobbler code and 
as a result snippets that are not rendered properly are not rendered at 
all. It was covered on development list. As a result you might see some 
parts of the ks file for the system not rendered (and resemble ks 
template associated with profile). If your post-install-network-config 
snippet is not rendered for whatever reason, you will not see it in 
expanded ks file for the system, but rather just a line 
$SNIPPET('post-install-network-config'). That might cause the problem 
you have.

Hope that helps,

Leon
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to