Getting 'profile-kickstart' instead of 'system-kickstart'
by Jonas Bygdén
Hi!
I'm going nuts.
After upgrading our Spacewalk server to 0.8 (and hence cobbler to 2.0) we
can't get the systems to set their ip-address statically any more.
After checking, testing, editing, testing, checking, testing, editing and
more testing I'm 99% sure that I get the *profile* kickstart file instead of
the *system* kickstart file, but I don't understand why.
The system kickstart file contains the
'post_install_network_config'-snippet, but the profile kickstart doesn't,
and the /root/cobbler.ks left on the system after install doesn't include
the code that should have been expanded from the snippet. AND of course the
system doesn't have the ip-address set to static.
Anybody else with these problems?
Any pointers?
/Jonas
14 years, 2 months
Cobbler Install Gentoo?
by Bill
I'm new to Cobbler and have it installing CentOS with no problems. I'm
curious if anyone has gotten Cobbler to install Gentoo. If so, would you
share your documentation?
Thank you,
Bill
14 years, 2 months
how to disable creation of rsyncd.conf on 2.0.3.1
by Mark Ellerby
Hi,
The Cobbler distribution we have running is now 2.0.3.1. Since the
upgrade from 1.6.6 I have found that our /etc/rsyncd.conf now gets
over-written by cobbler.
I notice the file rsync.template which explains: make your changes
in /etc/cobbler/rsyncd.template, as /etc/rsyncd.conf will be
overwritten.
Could you please tell me how to get Cobbler to stop doing this. We use
our rsyncd for important sysadmin on our network and we can't just
abandon it in favour of the cobbler-generated one (which we don't need,
as far as I can see).
Might I also suggest that it seems somewhat 'cavalier' to me, to
introduce this policy which simply trashes a configuration file which
gets in Cobbler's way. And, without an obvious way of disabling this
behaviour.
Thanks,
Mark
--
Mark Ellerby Department of Computer Science
Systems Administrator University of Sheffield
Tel. 0114 2221856 Regent Court, 211 Portobello
Email: M.Ellerby(a)dcs.shef.ac.uk Sheffield, S1 4DP
14 years, 2 months
Issue with try / except from a recipe
by Mykel Alvis
Disclaimer:
----------------
-- I apologize if this has been previously dealt with
-- I fully understand that the advanced snippet mechanism can handle
this more simply.
-- I'm just trying to determine if I've made a mistake or if cobbler's
rendering of cheetah won't do what I think it will and/or should.
Setup:
--------------------
I've been using the recipes and included snippets to get better at
using cheetah inside cobbler.
I attempted to use a recipe for including packages by name on the wiki
at https://fedorahosted.org/cobbler/wiki/KickstartSnippets#PackageSelectionb...
This didn't appear to work for me for some reason, so I reformatted to
the following as a test:
#set $hostname = "X"
#if $hostname == None
-- None
#else
#set $hostpart = $getVar('$hostpart', None)
#if $hostpart == None
#set $hostpart = $hostname.split('.')[0]
#end if
#set $sourcefile = "/var/lib/cobbler/packages/" + $hostpart
ABOUT TO TRY
#try
#for $b in $hostname
$b
#end for
INSIDE TRY
-- $sourcefile
#include $sourcefile
#except
INSIDE EXCEPT
-- No $sourcefile
#end try
#end if
I included the snippet in a kickstart file and got the following result
ABOUT TO TRY
X
INSIDE TRY
-- /var/lib/cobbler/packages/X
# Unable to read /var/lib/cobbler/packages/X
Since the file /var/lib/cobbler/packages/X doesn't exist, I would
expect the result to be something like
ABOUT TO TRY
X
INSIDE TRY
-- /var/lib/cobbler/packages/X
INSIDE EXCEPT
-- No /var/lib/cobbler/packages/X
Pre-Questions:
------------------------
I thought this worked in the past. Did it previously work and now the
recipe on the wiki simply invalid?
-- This appears to be true. I cannot get the #except block to fire for
a missing #include. It just reports that the file is missing and
moves along.
Does Cheetah's #include not produce an exception on failure?
-- executing 'cheetah fill ...' from the command line DOES fire an
exception on the failed include
-- inside cobbler the except doesn't seem to fire (just reports
failure), but any other exception (like calling an invalid method call
on the rendered $b above) DOES fire the exception.
The only conclusion I can reach is that cobbler behaves differently
than "cheetah fill" with regard to #include, which is reasonable but
unexpected.
The REAL Question:
--------------------------
Is it at all possible to detect when cobbler tries to import a missing
file with a cheetah #include ?
Any information about this (or even better, about how my reasoning is
flawed) would be greatly appreciated.
Thanks,
Mykel
14 years, 2 months
Configuration issues
by Thomas S Hatch
I just updated a test system running fedora 11 from cobbler 1.6.6 to cobbler
2.0.3.1 and came across something rather unsettling, I hope it can
be repaired by updating my understanding of cobbler.
One of my distro configurations points to a kernel image which is now
unavailable, I can replace the kernel image, but what unsettles me is that
cobbler won't start, and if I wanted to alter the configuration I would need
to communicate with a running cobbler server.
I while I am going to agree that a mis-configured server should not start,
my problem is that cobbler is configured through access to the running
server. Now I need to repair the paths manually or remove all of the json
files which referenced my distro while crossing my fingers that I don't
disturb the cobbler internals somehow.
I am going to recommend that the behavior be such that
a mis-configured element would raise a warning or log message rather than
preventing the service from being reconfigured. From a design perspective,
since the decision has been made to ensure a working configuration through
the api, then the api should not prevent repairing a configuration. This
is especially true because of the disparate external circumstances in which
the configuration can be compromised.
-Tom Hatch
14 years, 2 months
XMLRPC changes?
by Thomas S Hatch
I have an application which was using xmlrpc to communicate with cobbler,
after upgrading to cobbler 2 the xmlrpc no longer works. Was there a change
in the xmlrpc with cobbler 2.0?
-Tom Hatch
14 years, 2 months
how can i set eth1 info with cobbler command?
by yinyin
Hi,
I can set the eth1 info with cobbler web, but how can i do it with
"cobbler system add..." command?
and is there any method to set the gateway of eth1?
with cobbler report command, I can get the info like this:
system : cu02
profile : f12
comment :
created : Wed Mar 31 19:58:36 2010
gateway : 192.168.8.254
hostname : cu02.hpc.com
image :
kernel options : {}
kernel options post : {}
kickstart : <<inherit>>
ks metadata : {}
mgmt classes : []
modified : Thu Apr 1 13:39:20 2010
name servers : []
name servers search : []
netboot enabled? : True
owners : ['admin']
redhat mgmt key : <<inherit>>
redhat mgmt server : <<inherit>>
server : <<inherit>>
template files : {}
virt cpus : <<inherit>>
virt file size : <<inherit>>
virt path : <<inherit>>
virt ram : <<inherit>>
virt type : <<inherit>>
power type : ipmitool
power address :
power user :
power password :
power id :
interface : eth0
mac address : 00:0E:04:B7:50:4A
bonding :
bonding_master :
bonding_opts :
is static? : True
ip address : 192.168.8.2
subnet : 255.255.255.0
static routes : []
dns name :
dhcp tag :
virt bridge : xenbr0
interface : eth1
mac address : E0:CB:4E:B9:EB:89
bonding :
bonding_master :
bonding_opts :
is static? : True
ip address : 192.168.18.2
subnet : 255.255.255.0
static routes : []
dns name :
dhcp tag :
virt bridge : xenbr0
Thanks.
maillistofyinyin(a)gmail.com
14 years, 2 months