I recently bestowed the virtues of cobbler unto a colleague who has, like many, decided it's the best thing since sliced bread. Good so far...
After he had been working with it for a while, he experienced a problem which was keeping his lower per_* snippets from overriding the top level counterparts.
For example, he has snippets/post_install and also snippets/per_system/post_install/mysystem01.
In both files he had (unbeknownst before the override) unescaped "$" chars. When the per_system post_install snippet was not applied, everything rendered correctly. However when a specific host was specified in order to get the overriding snippet, the rendering failed.
So, to recap, two copies of the same messed up snippet were in place. The top level one rendered correctly, the per_system one did not as cheetah choked on the unescaped "$" signs.
Is this a know bug/feature?
Corey
No, frankly both of them should have caused issues, the oddity is that the top-level one did not. Are you sure there weren't any #raw blocks in there?
On Tue, Sep 24, 2013 at 8:04 PM, Corey Kovacs corey.kovacs@gmail.comwrote:
I recently bestowed the virtues of cobbler unto a colleague who has, like many, decided it's the best thing since sliced bread. Good so far...
After he had been working with it for a while, he experienced a problem which was keeping his lower per_* snippets from overriding the top level counterparts.
For example, he has snippets/post_install and also snippets/per_system/post_install/mysystem01.
In both files he had (unbeknownst before the override) unescaped "$" chars. When the per_system post_install snippet was not applied, everything rendered correctly. However when a specific host was specified in order to get the overriding snippet, the rendering failed.
So, to recap, two copies of the same messed up snippet were in place. The top level one rendered correctly, the per_system one did not as cheetah choked on the unescaped "$" signs.
Is this a know bug/feature?
Corey
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Thanks James, I understand they should have both failed, that's the issue I am trying to sort out. I don't believe any #raw statements are present but I'll take a look tomorrow. Once I handed it over, the guy ran with it and is a huge fan as am I. So hardy thanks to all the contributors.
When I commented everything out of the snippet with a "$" things worked as expected. But again, it should have failed on both levels. Very odd indeed. An errant #raw would make sense though so I'll pour though the previous snippets to make sure something else isn't out of whack.
Thanks again
-C
On Tue, Sep 24, 2013 at 7:50 PM, James Cammarata jimi@sngx.net wrote:
No, frankly both of them should have caused issues, the oddity is that the top-level one did not. Are you sure there weren't any #raw blocks in there?
On Tue, Sep 24, 2013 at 8:04 PM, Corey Kovacs corey.kovacs@gmail.comwrote:
I recently bestowed the virtues of cobbler unto a colleague who has, like many, decided it's the best thing since sliced bread. Good so far...
After he had been working with it for a while, he experienced a problem which was keeping his lower per_* snippets from overriding the top level counterparts.
For example, he has snippets/post_install and also snippets/per_system/post_install/mysystem01.
In both files he had (unbeknownst before the override) unescaped "$" chars. When the per_system post_install snippet was not applied, everything rendered correctly. However when a specific host was specified in order to get the overriding snippet, the rendering failed.
So, to recap, two copies of the same messed up snippet were in place. The top level one rendered correctly, the per_system one did not as cheetah choked on the unescaped "$" signs.
Is this a know bug/feature?
Corey
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
cobbler mailing list cobbler@lists.fedorahosted.org https://lists.fedorahosted.org/mailman/listinfo/cobbler
Hi.
Is there any documentation on what the standard snippets that come with cobbler do, what inputs they need from cobbler, etc? I'm having trouble with snippets network_config and post_install_network_config. I've managed the get the former working (albeit not cleanly) but not the latter. The post install one is giving me grief about the only mkdir command in it. My cheetah and Python aren't that good enough yet to really find out all the details of what's going on in these snippets to fully resolve the issues I'm having.
Thank you.
Chris J.
Did you try rendering the full kickstart file cobbler profile getks --name=XYZ... cobbler system getks -name=XYZ...
It is easier to debug as it shows exactly what the post-install chroot environment will do.
Anthony
cobbler@lists.fedorahosted.org