Re: cobbler sync crashes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




_______________________________________________
et-mgmt-tools mailing list
et-mgmt-tools@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/et-mgmt-tools

[Index of Archives]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux