[et-mgmt-tools] cobbler sync crashes
Michael DeHaan
mdehaan at redhat.com
Mon Aug 27 15:10:35 UTC 2007
Matt Hyclak wrote:
> On Mon, Aug 27, 2007 at 10:33:51AM -0400, Michael DeHaan enlightened us:
>
>> drew einhorn wrote:
>>
>>> I installed 0.6.0 and now cobbler sync dies with:
>>>
>>> File "/usr/lib/python2.4/site-packages/cobbler/action_sync.py", line
>>> 466, in load_snippet_cache
>>> snip_file = open(snip)
>>> IOError: [Errno 21] Is a directory
>>>
>>>
>> At first guess, it looks like you have a subdirectory in your
>> /var/lib/cobbler/snippets directory where I wasn't expecting any.
>>
>> The short term solution is to not put subdirectories there (cobbler
>> won't read them). I'll fix 0.6.1 to ignore potential subdirectories.
>>
>>
>
> Might be worth emulating some other things that have directories that are
> read, but only read files with a particular ending - e.g.
> partition_select.snip and ignore all other files/directories. That way it's
> easy to disable a particular snippet by renaming it to something else.
>
> Matt
>
>
If a kickstart references "SNIPPET::bar" all you need to do currently to
disable it is to rename
"bar" to something not named "bar".
Searching subdirectories (and possibly even namespacing them) is
reasonable though.
--Michael
More information about the et-mgmt-tools
mailing list