[et-mgmt-tools] Re: cobbler trouble.

Michael DeHaan mdehaan at redhat.com
Thu Nov 30 15:09:13 UTC 2006


> Hello,
>
>  I have a problem with cobbler, and there are the backtrace and
> /var/lib/cobbler content:
>
> [root at akc-xen ~]# cobbler list
> Traceback (most recent call last):
>  File "/usr/bin/cobbler", line 19, in ?
>    sys.exit(app.main())
>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 354, 
> in main
>    BootCLI(sys.argv).run()
>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 79, 
> in run
>    self.curry_args(self.args[1:], self.commands['toplevel'])
>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line
> 289, in curry_args
>    commands[args[0]](args[1:])
>  File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 105, 
> in list
>    print item.printable()
>  File "/usr/lib/python2.4/site-packages/cobbler/settings.py", line
> 67, in printable
>    buf = buf + "kernel options  : %s\n" % 
> self._attributes['kernel_options']
> KeyError: 'kernel_options'
>
> [root at akc-xen ~]# ls -l /var/lib/cobbler/
> total 408
> -rw-r--r-- 1 root root    225 Nov 29 14:06 distros
> -rw-r--r-- 1 root root 374146 Oct 31 08:01 elilo-3.6-ia64.efi
> -rw-r--r-- 1 root root    228 Nov 29 14:06 profiles
> -rw-r--r-- 1 root root    113 Nov 29 14:06 settings
> -rw-r--r-- 1 root root    156 Nov 29 14:06 systems
> [root at akc-xen ~]#

Anton,

By contents of /var/lib/cobbler, I was hoping to see the contents of the 
files.    From the above stacktrace, it looks as though I really only 
need to see /var/lib/cobbler/settings though.

I can't say for sure what happened from the above info, though my guess 
is the "kernel_options' field in /var/lib/cobbler was removed by hand 
editing, or the file is otherwise no longer valid YAML.   

Here is what a default /var/lib/cobbler/settings looks like, prior to 
modifying the server fields and so forth to customize it to a particular 
environment.

---
bootloaders:
    ia64: /var/lib/cobbler/elilo-3.6-ia64.efi
    standard: /usr/lib/syslinux/pxelinux.0
default_kickstart: /etc/cobbler/default.ks
dhcpd_bin: /usr/sbin/dhcpd
dhcpd_conf: /etc/dhcpd.conf
httpd_bin: /usr/sbin/httpd
kernel_options: append devfs=nomount ramdisk_size=16438 lang= text 
ksdevice=eth0
koan_path: ''
manage_dhcp: 0
next_server: '127.0.0.1'
server: '127.0.0.1'
tftpboot: /tftpboot
tftpd_bin: /usr/sbin/in.tftpd
tftpd_conf: /etc/xinetd.d/tftp
webdir: /var/www/cobbler

--Michael




More information about the et-mgmt-tools mailing list