[et-mgmt-tools] cobbler sync crashes

drew einhorn drew.einhorn at gmail.com
Mon Aug 27 15:33:50 UTC 2007


Actually I was going in an entirely different direction with the
subdirectory.

It's an RCS directory.  I've been using for years and never switched to cvs,
or svn.  It would be good if version control subdirectories were quietly
ignored.

On 8/27/07, Matt Hyclak <hyclak at math.ohiou.edu> wrote:
>
> On Mon, Aug 27, 2007 at 11:10:35AM -0400, Michael DeHaan enlightened us:
> > 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".
> >
>
> True. Just hope you don't have another snippet named "not bar". :-)
>
> > Searching subdirectories (and possibly even namespacing them) is
> > reasonable though.
> >
>
> Oooh, getting advanced on us. That might be interesting...
>
> Matt
>
> --
> Matt Hyclak
> Department of Mathematics
> Department of Social Work
> Ohio University
> (740) 593-1263
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>



-- 
Drew Einhorn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20070827/aba2a907/attachment.htm>


More information about the et-mgmt-tools mailing list