updated to 2.2.1 - can't import RHEL6.2

Michael DeHaan michael.dehaan at gmail.com
Wed Dec 14 01:52:28 UTC 2011


Will take a look, but make sure you file a ticket here:  http://github.com/cobbler/cobbler

Without getting too deep into code -- The exception isn't trying anything related to ESX, it's that distro was null.    That's what needs to be fixed :) 

-- Michael


On Tuesday, December 13, 2011 at 1:05 PM, Rainer Duffner wrote:

> Hi,
> 
> I updated my install to the latest version in epel-testing.
> 
> I'm not sure if this would have worked before, but I tried importing
> RHEL6.2:
> 
> cobbler import --path=/mnt --name=RHEL6.2 --arch=x86_64
> 
> it starts working on it, but at the end I get this:
> ...
> sent 3515473856 bytes received 70326 bytes 12577975.61 bytes/sec
> total size is 3514763663 speedup is 1.00
> 
> received on stderr: 
> adding distros
> creating new distro: RHEL6.2-x86_64
> Exception occured: exceptions.AttributeError
> Exception value: 'NoneType' object has no attribute 'os_version'
> Exception Info:
> File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 93,
> in run rc = self._run(self)
> File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 232,
> in runner self.logger
> File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 759, in
> import_tree return
> manager.run(pkgdir,mirror_url,mirror_name,network_root,kickstart_file,rsync_flags,arch,breed,os_version)
> File
> "/usr/lib/python2.4/site-packages/cobbler/modules/manage_import_redhat.py",
> line 267, in run os.path.walk(self.path, self.distro_adder,
> distros_added) File "/usr/lib/python2.4/posixpath.py", line 298, in
> walk walk(name, func, arg) File "/usr/lib/python2.4/posixpath.py", line
> 298, in walk walk(name, func, arg) File
> "/usr/lib/python2.4/posixpath.py", line 290, in walk func(arg, top,
> names) File
> "/usr/lib/python2.4/site-packages/cobbler/modules/manage_import_redhat.py",
> line 511, in distro_adder
> adtls.append(self.add_entry(dirname,kernel,initrd)) File
> "/usr/lib/python2.4/site-packages/cobbler/modules/manage_import_redhat.py",
> line 582, in add_entry self.distros.add(distro,save=True) File
> "/usr/lib/python2.4/site-packages/cobbler/collection.py", line 316, in
> add self.lite_sync.add_single_distro(ref.name (http://ref.name)) File
> "/usr/lib/python2.4/site-packages/cobbler/action_litesync.py", line 76,
> in add_single_distro self.sync.pxegen.make_pxe_menu() File
> "/usr/lib/python2.4/site-packages/cobbler/pxegen.py", line 299, in
> make_pxe_menu self.make_actual_pxe_menu() File
> "/usr/lib/python2.4/site-packages/cobbler/pxegen.py", line 396, in
> make_actual_pxe_menu profile=None, distro=None, arch=image.arch,
> image=image) File "/usr/lib/python2.4/site-packages/cobbler/pxegen.py",
> line 582, in write_pxe_file elif distro.os_version.startswith("esxi"):
> 
> !!! TASK FAILED !!!
> 
> I have no ESX-images imported, so I'm a bit baffled why this would show
> up.
> 
> 
> Any ideas?
> 
> Best Regards
> Rainer
> 
> _______________________________________________
> cobbler mailing list
> cobbler at lists.fedorahosted.org (mailto:cobbler at lists.fedorahosted.org)
> https://fedorahosted.org/mailman/listinfo/cobbler
> 
> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://fedorahosted.org/pipermail/cobbler/attachments/20111213/686e3357/attachment.html 


More information about the cobbler mailing list