On Tue, Mar 5, 2013 at 12:22 AM, Zack Perry <span dir="ltr"><<a href="mailto:zack.perry@sbcglobal.net" target="_blank">zack.perry@sbcglobal.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
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.<br>
<br>
Upon importing Fedora 17 x86_64, I immediately noticed that the distro object has a new attribute:<br>
<br>
(A) 2.4.0 beta2<br>
<br>
[root@cobbler ~]# cobbler distro report --name=fedora17-x86_64<br>
Name : fedora17-x86_64<br>
Architecture : x86_64<br>
TFTP Boot Files : {}<br>
Breed : redhat<br>
Comment :<br>
Fetchable Files : {}<br>
Initrd : /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/initrd.img<br>
Kernel : /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/vmlinuz<br>
Kernel Options : {}<br>
Kernel Options (Post Install) : {}<br>
Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/fedora17-x86_64'}<br>
Management Classes : []<br>
OS Version : fedora17<br>
Owners : ['admin']<br>
Red Hat Management Key : <<inherit>><br>
Red Hat Management Server : <<inherit>><br>
Template Files : {}<br>
<br>
(B) 2.4.0 beta 3<br>
<br>
[root@sl0 ~]# cobbler distro report --name=fedora17-x86_64<br>
Name : fedora17-x86_64<br>
Architecture : x86_64<br>
TFTP Boot Files : {}<br>
Breed : redhat<br>
Comment :<br>
Fetchable Files : {}<br>
Initrd : /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/initrd.img<br>
Kernel : /var/www/cobbler/ks_mirror/fedora17-x86_64/images/pxeboot/vmlinuz<br>
Kernel Options : {'repo': '$tree'}<br>
Kernel Options (Post Install) : {}<br>
Kickstart Metadata : {'tree': 'http://@@http_server@@/cblr/links/fedora17-x86_64'}<br>
Management Classes : []<br>
OS Version : fedora17<br>
Owners : ['admin']<br>
Red Hat Management Key : <<inherit>><br>
Red Hat Management Server : <<inherit>><br>
Template Files : {}<br>
<br>
<br>
The Kerneal Options now has {'repo': '$tree'} which now causes koan to fail. See below the virt-install output by koan:<br>
<br>
- ['virt-install', '--connect', 'qemu:///system', '--name', 'zalb0', '--ram', '512', '--vcpus', '1', '--autostart', '--vnc', '--virt-type', 'kvm', '--machine', 'pc', '--extra-args=ks=<a href="http://192.168.123.2/cblr/svc/op/ks/system/zalb0" target="_blank">http://192.168.123.2/cblr/svc/op/ks/system/zalb0</a> ksdevice=link repo=$tree lang= kssendmac ', '--location', '<a href="http://192.168.123.2/cblr/links/fedora17-x86_64/" target="_blank">http://192.168.123.2/cblr/links/fedora17-x86_64/</a>', '--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']<br>
<br>
Note that the unsubstituted repo=$tree after the '--extra-args'.<br>
<br>
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.</blockquote><div><br></div>
<div>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:</div><div><br></div><div>commit a93739f15771228e3e23bc9ad07cc3d6e532f5a1</div>
<div>Author: James Cammarata <<a href="mailto:jimi@sngx.net">jimi@sngx.net</a>></div><div>Date: Fri Nov 2 21:50:50 2012 -0500</div><div><br></div><div> Kernel options are now evaluated as templates for variable substitution</div>
<div> Also fixed up the post_install_kernel_options snippet for grub2 systems where grubby doesn't work well</div><div><br></div><div>That's the commit for master, here's the commit hash for it in the cobbler-2.4.0-beta3 tag:</div>
<div><br></div><div><div>commit 4cc72e09dbf9328e5b773a95e1d27f7ea155d18e</div><div>Author: James Cammarata <<a href="mailto:jimi@sngx.net">jimi@sngx.net</a>></div><div>Date: Fri Nov 2 21:50:50 2012 -0500</div><div>
<br></div><div> Kernel options are now evaluated as templates for variable substitution</div><div> Also fixed up the post_install_kernel_options snippet for grub2 systems where grubby doesn't work well</div></div>
<div><br></div></div>