[cobbler] 2.4.0 beta 3 now has Kernel Options: {'repo': '$tree'}?

James Cammarata jimi at sngx.net
Tue Mar 5 13:39:54 UTC 2013


On Tue, Mar 5, 2013 at 12:22 AM, Zack Perry <zack.perry at sbcglobal.net>wrote:

> I have been using 2.4.0beta2 for a while successfully. Wishing to keep up
> with cobbler's evoluation, this evening I decided to try (in a fresh SL 6.3
> KVM guest) 2.4.0 beta 3.
>
> Upon importing Fedora 17 x86_64, I immediately noticed that the distro
> object has a new attribute:
>
> (A) 2.4.0 beta2
>
> [root at cobbler ~]# cobbler distro report --name=fedora17-x86_64
> Name                           : fedora17-x86_64
> Architecture                   : x86_64
> TFTP Boot Files                : {}
> Breed                          : redhat
> Comment                        :
> Fetchable Files                : {}
> Initrd                         :
> /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/initrd.img
> Kernel                         :
> /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/vmlinuz
> Kernel Options                 : {}
> Kernel Options (Post Install)  : {}
> Kickstart Metadata             : {'tree': 'http://@@http_server@
> @/cblr/links/fedora17-x86_64'}
> Management Classes             : []
> OS Version                     : fedora17
> Owners                         : ['admin']
> Red Hat Management Key         : <<inherit>>
> Red Hat Management Server      : <<inherit>>
> Template Files                 : {}
>
> (B) 2.4.0 beta 3
>
> [root at sl0 ~]# cobbler distro report --name=fedora17-x86_64
> Name                           : fedora17-x86_64
> Architecture                   : x86_64
> TFTP Boot Files                : {}
> Breed                          : redhat
> Comment                        :
> Fetchable Files                : {}
> Initrd                         :
> /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/initrd.img
> Kernel                         :
> /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/vmlinuz
> Kernel Options                 : {'repo': '$tree'}
> Kernel Options (Post Install)  : {}
> Kickstart Metadata             : {'tree': 'http://@@http_server@
> @/cblr/links/fedora17-x86_64'}
> Management Classes             : []
> OS Version                     : fedora17
> Owners                         : ['admin']
> Red Hat Management Key         : <<inherit>>
> Red Hat Management Server      : <<inherit>>
> Template Files                 : {}
>
>
> The Kerneal Options now has {'repo': '$tree'} which now causes koan to
> fail. See below the virt-install output by koan:
>
> - ['virt-install', '--connect', 'qemu:///system', '--name', 'zalb0',
> '--ram', '512', '--vcpus', '1', '--autostart', '--vnc', '--virt-type',
> 'kvm', '--machine', 'pc', '--extra-args=ks=
> http://192.168.123.2/cblr/svc/op/ks/system/zalb0 ksdevice=link repo=$tree
> lang= kssendmac ', '--location', '
> http://192.168.123.2/cblr/links/fedora17-x86_64/', '--arch', 'x86_64',
> '--os-variant', 'fedora17', '--disk',
> 'path=/dev/vg/zalb0,size=5,bus=virtio,driver_type=raw', '--network',
> 'bridge=br0,model=virtio,mac=00:16:3e:14:13:99', '--network',
> 'bridge=virbr1,model=virtio,mac=00:16:3e:3f:9c:ed', '--wait', '0',
> '--noautoconsole']
>
> Note that the unsubstituted repo=$tree after the '--extra-args'.
>
> I checked the man page but didn't see any clues as to where to set the
> tree parameter.  cobbler system dumpvars also shows this unsubstituted
> parameter.  I would be appreciative of any hints.


This was added due to the new requirement of fedora to set that parameter.
I'll take a look at the koan code to see where the issue is. I thought I
had added code to expand that:

commit a93739f15771228e3e23bc9ad07cc3d6e532f5a1
Author: James Cammarata <jimi at sngx.net>
Date:   Fri Nov 2 21:50:50 2012 -0500

    Kernel options are now evaluated as templates for variable substitution
    Also fixed up the post_install_kernel_options snippet for grub2 systems
where grubby doesn't work well

That's the commit for master, here's the commit hash for it in the
cobbler-2.4.0-beta3 tag:

commit 4cc72e09dbf9328e5b773a95e1d27f7ea155d18e
Author: James Cammarata <jimi at sngx.net>
Date:   Fri Nov 2 21:50:50 2012 -0500

    Kernel options are now evaluated as templates for variable substitution
    Also fixed up the post_install_kernel_options snippet for grub2 systems
where grubby doesn't work well
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.fedorahosted.org/pipermail/cobbler/attachments/20130305/46afd76e/attachment.html>


More information about the cobbler mailing list