Trouble Adding Distros: Internal Error Unknown Distro Name

Pete Eby relative.prime at gmail.com
Thu Jul 28 20:43:34 UTC 2011


It would appear this issue was only due to the initrd argument being
passed as `initrd` rather than `--initrd`  Cobbler distro add appears
to run, but the hard links are not created and the distro is not
added. Oops.

Only --name is a required option, but if --kernel or --initrd are
omitted, adding the distro basically silently fails it seems.

Pete


On Tue, Jul 26, 2011 at 9:57 AM, Pete Eby <relative.prime at gmail.com> wrote:
> Howdy,
>
> Though I've installed Cobbler several times in different environments,
> usually with little issue, I've run into a snag which I'm having
> trouble working out.
>
> I'm running cobbler-2.0.11-2.el6.noarch and (cobbler-web) from EPEL on
> RHEL 6.1 and I can't seem to be able to add a distro.
>
> When I run:
>
> cobbler distro add --breed=redhat --name=CentOS-5.6-32bit
> --kernel=/var/lib/tftpboot/distros/CentOS5.6-32bit/vmlinuz
> initrd=/var/lib/tftpboot/distros/CentOS5.6-32bit/initrd.img
>
> No error is sent to std out, but then when I do a cobbler distro list,
> no results are returned.
>
> Looking at the log I see:
>
> Tue Jul 26 09:22:50 2011 - INFO | REMOTE new_item(distro); user(<DIRECT>)
>    raise CX("internal error, unknown %s name %s" % (what,name))
>   File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
> 633, in get_item_handle
>    handle = self.get_item_handle(object_type, object_name)
>  File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 798,
> in xapi_object_edit
> Tue Jul 26 09:22:50 2011 - INFO | Exception Info:
> Tue Jul 26 09:22:50 2011 - INFO | Exception value: 'internal error,
> unknown distro name CentOS-5.6-32bit'
> Tue Jul 26 09:22:50 2011 - INFO | Exception occured: <class
> 'cobbler.cexceptions.CX'>
> Tue Jul 26 09:22:50 2011 - DEBUG | get_item; ['distro', 'CentOS-5.6-32bit']
> Tue Jul 26 09:22:50 2011 - DEBUG | REMOTE CLI Authorized; user(?)
>
> I've tried some variations, but get the above in all cases.
>
> Any suggestion would by much appreciated.
>
> Thank you,
> Pete
>


More information about the cobbler mailing list