On Wed, Apr 4, 2012 at 5:17 PM, James Cammarata <[email protected]> wrote:
> On Wed, Apr 4, 2012 at 9:20 AM,  <[email protected]> wrote:
>> Complete trace here.
>>
>> http://pastebin.com/HbadQx64

I actually just saw this when doing an import of both ESX and ESXi:

$ cobbler import --name=esxi-4.1u0 --path=/data/isos/esxi-4.1u0/
task started: 2012-04-05_000534_import
task started (id=Media import, time=Thu Apr  5 00:05:34 2012)
Found a vmware compatible signature: imagedd.bz2
adding distros
creating new distro: esxi-4.1u0-x86_64
creating new profile: esxi-4.1u0-x86_64
associating kickstarts
This is an ESXi4 distro - adding extra PXE files to boot-files list
!!! TASK FAILED !!!

Log entries:

Thu Apr  5 00:05:42 2012 - INFO | an exception occured while running
the import manager
Thu Apr  5 00:05:42 2012 - INFO | error was: Templar instance has no
attribute 'settings'
Thu Apr  5 00:05:42 2012 - INFO | No import managers found a valid
signature at the location specified

Never noticed it before, because the task still logs as successful and
there's no error code (what I was actually trying to fix).

Dug into it more, and saw there's a reference to Templar in the tftpd
manager that does not pass in a config:

80:        templater = templar.Templar()

Changed that to this:

        templater = templar.Templar(self.config)

And re-ran import:

$ cobbler import --name=esxi-4.1u0 --path=/data/isos/esxi-4.1u0/
task started: 2012-04-05_003159_import
task started (id=Media import, time=Thu Apr  5 00:31:59 2012)
Found a vmware compatible signature: imagedd.bz2
adding distros
creating new distro: esxi-4.1u0-x86_64
creating new profile: esxi-4.1u0-x86_64
associating kickstarts
This is an ESXi4 distro - adding extra PXE files to boot-files list
*** TASK COMPLETE ***

This fix will be merged into master tonight. You can hand-edit that
file for the time being, if you're not installing from the git repo.
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to