[et-mgmt-tools] cobbler
Rick Vinyard
rick.vinyard at gmail.com
Mon Jun 11 14:36:10 UTC 2007
That was it, and it's fixed.
Thanks.
On 6/8/07, Michael DeHaan <mdehaan at redhat.com> wrote:
>
> Rick Vinyard wrote:
> > Upgrade from FC-6 to F-7.
> >
> > On 6/7/07, *Michael DeHaan* <mdehaan at redhat.com
> > <mailto:mdehaan at redhat.com>> wrote:
> >
> > Rick Vinyard wrote:
> > > Tried cobbler rpms 0.4.8-1 and 0.4.7-5 with identical results.
> > >
> > > $ mount -o loop F-7-x86_64-DVD.iso tmpmount
> > > $ cobbler import --name=F-7-x86_64 --mirror=tmpmount
> > > Traceback (most recent call last):
> > > File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line
> > > 636, in main
> > > BootCLI(sys.argv).run()
> > > File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py",
> > line 37,
> > > in __init__
> > > self.api = api.BootAPI()
> > > File "/usr/lib/python2.5/site-packages/cobbler/api.py", line
> > 41, in
> > > __init__
> > > self.deserialize()
> > > File "/usr/lib/python2.5/site-packages/cobbler/api.py", line
> > 171, in
> > > deserialize
> > > return self._config.deserialize()
> > > File "/usr/lib/python2.5/site-packages/cobbler/config.py",
> > line 158,
> > > in deserialize
> > > if not serializer.deserialize(x):
> > > File "/usr/lib/python2.5/site-packages/cobbler/serializer.py",
> > line
> > > 69, in deserialize
> > > datastruct = yaml.load(data).next() # first record
> > > File "/usr/lib/python2.5/site-packages/cobbler/yaml/load.py",
> > line
> > > 83, in next
> > > self.nestedDocs.nestToNextLine()
> > > File
> > "/usr/lib/python2.5/site-packages/cobbler/yaml/stream.py", line
> > > 131, in nestToNextLine
> > > indentation = indentLevel(line)
> > > File
> > "/usr/lib/python2.5/site-packages/cobbler/yaml/stream.py", line
> > > 6, in indentLevel
> > > while n < len(line) and line[n] == ' ':
> > > TypeError: object of type 'NoneType' has no len()
> > > $
> > >
> >
>
> For some reason your /var/lib/cobbler/settings is completely blank --
> that's probably where the parse error was. I'm not sure how something
> could get into the
> settings object that couldn't be serialized back...
>
> /var/lib/cobbler/settings is created when you first run "cobbler check"
> after install.
>
> To put this file back:
>
> # rm /var/lib/cobbler/settings
> # cobbler check
>
> and then edit the file again.
>
> I just ran a F7 import again as a sanity check and it worked fine for me.
>
> And yes, (to preempt the question) this settings file (unlike the other
> data files in /var/lib/cobbler) is something that really should be
> packaged in the RPM as config/noreplace and put under /etc/cobbler.
> This will be dealt with in a future release.
>
> --Michael
>
> _______________________________________________
> et-mgmt-tools mailing list
> et-mgmt-tools at redhat.com
> https://www.redhat.com/mailman/listinfo/et-mgmt-tools
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/et-mgmt-tools/attachments/20070611/669d9d6e/attachment.htm>
More information about the et-mgmt-tools
mailing list