That was it, and it's fixed.<br><br>Thanks.<br><br><div><span class="gmail_quote">On 6/8/07, <b class="gmail_sendername">Michael DeHaan</b> <<a href="mailto:mdehaan@redhat.com">mdehaan@redhat.com</a>> wrote:</span>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Rick Vinyard wrote:<br>> Upgrade from FC-6 to F-7.<br>><br>> On 6/7/07, *Michael DeHaan* <
<a href="mailto:mdehaan@redhat.com">mdehaan@redhat.com</a><br>> <mailto:<a href="mailto:mdehaan@redhat.com">mdehaan@redhat.com</a>>> wrote:<br>><br>> Rick Vinyard wrote:<br>> > Tried cobbler rpms
0.4.8-1 and 0.4.7-5 with identical results.<br>> ><br>> > $ mount -o loop F-7-x86_64-DVD.iso tmpmount<br>> > $ cobbler import --name=F-7-x86_64 --mirror=tmpmount<br>> > Traceback (most recent call last):
<br>> > File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py", line<br>> > 636, in main<br>> > BootCLI(sys.argv).run()<br>> > File "/usr/lib/python2.5/site-packages/cobbler/cobbler.py",
<br>> line 37,<br>> > in __init__<br>> > self.api = api.BootAPI()<br>> > File "/usr/lib/python2.5/site-packages/cobbler/api.py", line<br>> 41, in<br>> > __init__
<br>> > self.deserialize()<br>> > File "/usr/lib/python2.5/site-packages/cobbler/api.py", line<br>> 171, in<br>> > deserialize<br>> > return self._config.deserialize()
<br>> > File "/usr/lib/python2.5/site-packages/cobbler/config.py",<br>> line 158,<br>> > in deserialize<br>> > if not serializer.deserialize(x):<br>> > File "/usr/lib/python2.5/site-packages/cobbler/serializer.py",
<br>> line<br>> > 69, in deserialize<br>> > datastruct = yaml.load(data).next() # first record<br>> > File "/usr/lib/python2.5/site-packages/cobbler/yaml/load.py",<br>
> line<br>> > 83, in next<br>> > self.nestedDocs.nestToNextLine()<br>> > File<br>> "/usr/lib/python2.5/site-packages/cobbler/yaml/stream.py", line<br>> > 131, in nestToNextLine
<br>> > indentation = indentLevel(line)<br>> > File<br>> "/usr/lib/python2.5/site-packages/cobbler/yaml/stream.py", line<br>> > 6, in indentLevel<br>> > while n < len(line) and line[n] == ' ':
<br>> > TypeError: object of type 'NoneType' has no len()<br>> > $<br>> ><br>><br><br>For some reason your /var/lib/cobbler/settings is completely blank --<br>that's probably where the parse error was. I'm not sure how something
<br>could get into the<br>settings object that couldn't be serialized back...<br><br>/var/lib/cobbler/settings is created when you first run "cobbler check"<br>after install.<br><br>To put this file back:<br>
<br># rm /var/lib/cobbler/settings<br># cobbler check<br><br>and then edit the file again.<br><br>I just ran a F7 import again as a sanity check and it worked fine for me.<br><br>And yes, (to preempt the question) this settings file (unlike the other
<br>data files in /var/lib/cobbler) is something that really should be<br>packaged in the RPM as config/noreplace and put under /etc/cobbler.<br>This will be dealt with in a future release.<br><br>--Michael<br><br>_______________________________________________
<br>et-mgmt-tools mailing list<br><a href="mailto:et-mgmt-tools@redhat.com">et-mgmt-tools@redhat.com</a><br><a href="https://www.redhat.com/mailman/listinfo/et-mgmt-tools">https://www.redhat.com/mailman/listinfo/et-mgmt-tools
</a><br></blockquote></div><br>