On Fri, Jun 10, 2011 at 11:14 AM, Jonathan Sabo <js...@criminal.org> wrote:
> On Thu, Jun 9, 2011 at 4:17 PM, Jonathan Sabo <js...@criminal.org> wrote:
>> I was getting the following exception trying to import rhel6 using the
>> latest cobbler code from git master.
>>
>> received on stderr:
>> adding distros
>> avoiding symlink loop
>> directory /var/www/cobbler/ks_mirror/rhel6-x68_64/images/pxeboot holds
>> multiple arches : ['x86_64', 'x86']
>> Exception occured: <type 'exceptions.TypeError'>
>> Exception value: 'NoneType' object is not iterable
>> Exception Info:
>>  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 93, in run
>>    rc = self._run(self)
>>   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
>> 227, in runner
>>    self.logger
>>   File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 756,
>> 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.6/site-packages/cobbler/modules/manage_import_redhat.py",
>> line 267, in run
>>    os.path.walk(self.path, self.distro_adder, distros_added)
>>   File "/usr/lib64/python2.6/posixpath.py", line 233, in walk
>>    walk(name, func, arg)
>>   File "/usr/lib64/python2.6/posixpath.py", line 233, in walk
>>    walk(name, func, arg)
>>   File "/usr/lib64/python2.6/posixpath.py", line 225, in walk
>>    func(arg, top, names)
>>   File 
>> "/usr/lib/python2.6/site-packages/cobbler/modules/manage_import_redhat.py",
>> line 520, in distro_adder
>>    distros_added.extend(adtl)
>>
>> !!! TASK FAILED !!!
>>
>> This should fix this.
>>
>> diff --git a/cobbler/modules/manage_import_redhat.py
>> b/cobbler/modules/manage_import_redhat.py
>> index 7b611c9..3a482bd 100644
>> --- a/cobbler/modules/manage_import_redhat.py
>> +++ b/cobbler/modules/manage_import_redhat.py
>> @@ -517,7 +517,8 @@ class ImportRedhatManager:
>>                 pae_initrd = None
>>
>>             for adtl in adtls:
>> -                distros_added.extend(adtl)
>> +                if adtl:
>> +                    distros_added.extend(adtl)
>>
>>     def add_entry(self,dirname,kernel,initrd):
>>
>
> Don't apply this...  Something else is going on.  Still looking into
> why this is failing for me.
>

This was caused from messing up the name of the distro I was
importing...  I had x68_64 instead of x86_64.
_______________________________________________
cobbler-devel mailing list
cobbler-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler-devel

Reply via email to