Re: [et-mgmt-tools] cobbler

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

 



Rick Vinyard wrote:
Upgrade from FC-6 to F-7.

On 6/7/07, *Michael DeHaan* <mdehaan@xxxxxxxxxx <mailto:mdehaan@xxxxxxxxxx>> 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


[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