Tom Georgoulias wrote:
> I discovered a problem with our cobbler server this morning and am 
> having a hard time tracking down the root cause.  I would like to know 
> if/how I could get more debugging output from the "cobbler sync" command.
>   

In each successive version of cobbler, sync does less and less. 
Kickstarts are now generated on demand (with each request to the URL)
so sync does not generate them.

If you'd like to view the rendered kickstart, with 1.2.4, the easiest 
way is just:

cobbler system getks --name=foo

You might already know this so I'll continue below :)
> We use a single kickstart cheetah template for all of our profiles and 
> source in the correct parition scheme for a system based on some 
> hardware configs that are part of our ksmeta data.
>
> ## PARTITIONING:
> #if $getVar("hardware","none") == "none"
> ## Default:
> SNIPPET::partition_select
> #else if $getVar("hardware", "None") == "8832sem"
> SNIPPET::PART.8832sem
> #else if $getVar("hardware", "None") == "8832"
> SNIPPET::PART.8832
> #else if $getVar("hardware", "None") == "8843sem"
> SNIPPET::PART.8843sem
> #else if $getVar("hardware", "None") == "8843"
> SNIPPET::PART.8843
> #else if $getVar("hardware", "None") == "8853sem"
> SNIPPET::PART.8853sem
>
> In the case of the 8843sem and 8853sem, the letters "sem" are inserted 
> into the ks.cfg right after the contents of the PART.8853sem snippet 
> file.  This isn't the case for the 8832sem.
>   


Older versions evaluate snippets /before/ going through Cheetah, while 
1.2.X has the very nice feature of doing that all in one pass, thanks to 
Dan G's patches. You say below you're using 0.8.3, which has a known bug 
of matching snippets in a non-greedy manner, which means it matched 
earlier, on the short part of the string. I'm fairly certain 1.2.4 will 
not do this.

0.8 is approximately from Feburary, and there are a /lot/ of nice 
features added (see CHANGELOG) so I would highly recommend you upgrade.

http://git.fedorahosted.org/git/?p=cobbler;a=blob_plain;f=CHANGELOG;hb=ccde0b3a3f234e256407c9f45f33b2ac4b79df6e

We support the stable releases until the new one comes out, so currently 
1.3 is in development and we'll do maintainance fixes on 1.2, and 
possibly answer questions about 1.0, but 0.8 is a bit too old to help with.

Definitely upgrade -- there are some changes, so see the "What's New In 
1.0" page on the Wiki and if you're using the web app, folllow the new 
setup instructions. The upgrade should go very smoothly.

> Also, I've quadruple checked the contents of the PART.8853sem and 
> PART.8843sem files and "sem" isn't hidden anywhere, so I'm sure its 
> happening in the logic above.
>
> If I make a symlink named "PART.8853semSL" and point it back to the 
> 8853sem file, everything works.
>
> We are using cobbler-0.8.2-1 at this time, so I hope we aren't so out of 
> date that everyone has forgotten how cobbler used to work!  ;)
>
> Any help or tips are appreciated.
>
> Thanks,
> Tom
> _______________________________________________
> cobbler mailing list
> [email protected]
> https://fedorahosted.org/mailman/listinfo/cobbler
>   

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

Reply via email to