PXE Install
by Adurotec
Totally new to cobbler and I am having an issue with my initial
installation of version 1.6.6 which is installed on Fedora11 x86_64.
I imported two CentOS 5.4 DVD iso's (i386 & x86_64), and setup a new box
for a pxe install and created a new profile with a custom kickstart file
so I could start my testing of cobbler. The server boots up and gets
the install menu which shows the default installs that were created when
I imported the ISO's plus the custom install I created. When I select
my custom install I see the kernel and initrd being installed but the
install which was supposed to be non-interactive fails to go
non-interactive.
I checked my apache logs and found the following:
1.
==> access_log <==
2.
10.200.2.122 - - [14/Feb/2010:15:22:34 +0000] "GET
/cblr/svc/op/ks/profile/mboxmail-CentOS-5.4-i386 HTTP/1.0" 200
1328 "-" "anaconda/11.1.2.195"
3.
10.200.2.73 - - [14/Feb/2010:15:22:57 +0000] "GET
/cblr/links/CentOS-5.4-i386/images/updates.img HTTP/1.0" 404 319
"-" "anaconda/11.1.2.195"
4.
10.200.2.73 - - [14/Feb/2010:15:22:57 +0000] "GET
/cblr/links/CentOS-5.4-i386/disc1/images/updates.img HTTP/1.0" 404
325 "-" "anaconda/11.1.2.195"
5.
10.200.2.73 - - [14/Feb/2010:15:22:57 +0000] "GET
/cblr/links/CentOS-5.4-i386/images/product.img HTTP/1.0" 404 319
"-" "anaconda/11.1.2.195"
6.
10.200.2.73 - - [14/Feb/2010:15:22:57 +0000] "GET
/cblr/links/CentOS-5.4-i386/disc1/images/product.img HTTP/1.0" 404
325 "-" "anaconda/11.1.2.195"
7.
8.
==> error_log <==
9.
[Sun Feb 14 15:22:57 2010] [error] [client 10.200.2.73] File does
not exist: /var/www/cobbler/links/CentOS-5.4-i386/images/updates.img
10.
[Sun Feb 14 15:22:57 2010] [error] [client 10.200.2.73] File does
not exist: /var/www/cobbler/links/CentOS-5.4-i386/disc1
11.
[Sun Feb 14 15:22:57 2010] [error] [client 10.200.2.73] File does
not exist: /var/www/cobbler/links/CentOS-5.4-i386/images/product.img
12.
[Sun Feb 14 15:22:57 2010] [error] [client 10.200.2.73] File does
not exist: /var/www/cobbler/links/CentOS-5.4-i386/disc1
13.
14.
==> access_log <==
15.
10.200.2.73 - - [14/Feb/2010:15:22:57 +0000] "GET
/cblr/links/CentOS-5.4-i386/images/stage2.img HTTP/1.0" 200
111767552 "-" "anaconda/11.1.2.195"
16.
10.200.2.73 - - [14/Feb/2010:15:23:13 +0000] "GET
/cblr/links/CentOS-5.4-i386//disc1/.discinfo HTTP/1.1" 404 317 "-"
"urlgrabber/3.1.0"
17.
18.
==> error_log <==
19.
[Sun Feb 14 15:23:13 2010] [error] [client 10.200.2.73] File does
not exist: /var/www/cobbler/links/CentOS-5.4-i386/disc1
This explains why the non-interactive install is failing, but what I
don't understand is, the server is requesting
/cblr/svc/op/ks/profile/mboxmail-CentOS-5.4-i386 (which is the link
found in the install menu for the profile selected) but then the server
requests /cblr/links/CentOS-5.4-i386/images/updates.img (which doesn't
exist) and /cblr/links/CentOS-5.4-i386/disc1/images/updates.img (which
also does not exist).
The /var/www/cobbler/links/CentOS-5/4-i386 is a sym link to
/var/www/cobbler/ks_mirror/CentOS-5.4-i386 which ultimately points to
the CentOS-5.4-i386 ISO that was imported into cobbler.
Is there some configuration change I need to make that didn't get set
correctly when I did the import?
Thanks in advance.
David
14 years, 2 months
Reposync
by Adurotec
When I ran the reposync command I noticed that not only where the repos
that I added to cobbler being sync'd but that the repos for the base OS
that cobber is installed on; in this case Fedora 11, are being sync'd as
well.
The repo packages are being put in /root/fedora/Packages.
Is this normal? How do I prevent this going forward since it is filling
up my /home partition rather quickly?
Thanks,
David
14 years, 2 months
Re: koan static-interface and gateway
by Hany Fahim
>
> Hi,
>
Currently I'm running cobbler-1.6.6 (from EPEL) on a set of servers and I
utilize koan to build Xen VMs. I make use of --static-interface with koan to
avoid having to run a DHCP server. Each VM has 2 interfaces defined in
cobbler; one "public" and one "management". I've been building CentOS 5.3
VMs happily via the management network for several months now. After
importing and configuring the VMs to be built from CentOS 5.4, I noticed
that the build process wouldn't get passed the first stage anymore and
errors out with, "There was an error configuring your network interface" on
the console. Doing some digging, I realized that when using
--static-interface, koan will pass a default gateway to the kernel
arguments, regardless of what network the interface is on. The management
network I build from is entirely private and has no default gateway. I'm
assuming something changed in CentOS 5.4 that disallows kickstart builds if
the network config is incorrect. I guess CentOS 5.3 was tolerant and chose
to ignore this value, but CentOS 5.4 refuses to build.
>
Here's what gets passed to libvirt when building:
10.10.1.0/24 is the management network
192.168.1.0/24 is the "public" network
>
<os>
> <type>linux</type>
> <kernel>/var/lib/xen/vmlinuz</kernel>
> <initrd>/var/lib/xen/initrd.img</initrd>
> <cmdline>ksdevice=eth1 lang= ip=10.10.1.11 ks=
http://10.10.1.5/cblr/svc/op/ks/system/<http://10.10.1.5/cblr/svc/op/ks/system/hanytest>vm1
netmask=255.255.255.0
text kssendmac gateway=192.168.1.1 </cmdline>
> </os>
>
Should koan be doing an extra check to determine if the gateway is on the
same network as the interface, and if not, ignore it entirely?
>
Thanks in advanced for your help
hany
14 years, 2 months
Repo priorities?
by Scot Floess
I've got some curious behaviour I cannot explain...
I have, amongst other repos, rpmforge and epel. rpmforge contains puppet 0.22 whereas epel has 0.24. In my kickstart I list puppet as one of the packages I'd like installed.
It appears that 0.22 is installed for me no matter if I "cobbler create repo" with or without a priority. I tried to make epel have a priority of 3 and rpmforge 99 - no luck.
Regardless of a VM or bare metal machine - 0.22 is installed for me :(
What's interesting - after the machine/VM comes up I can yum update and 0.24 is installed at that time.
I am running Cobbler 1.6.6.
Thanks ahead of time!
Flossy
--
Make It So Number One
14 years, 2 months
MadHatter: Using Cobbler for advanced configuration management
by Kelsey Hightower
Working on a new Cobbler module: MadHatter.
Snippet from the GitHub Wiki:
MadHatter aims to create an advanced configuration management module
for Cobbler with a feature set similar to Puppet, the open source CMS
from Reductive Labs. Unlike Puppet, MadHatter will forgo a
configuration language and instead opt for doing things the “Cobbler”
way.
Is this a fork?
No. MadHatter is a Cobbler module and patch set.
The goal is to reuse the existing Cobbler framework where possible. As
a Cobbler module, MadHatter will leverage the hooks and integration
points used by other external configuration management tools.
Proposed features:
- Ability to create and edit a module or class using the Cobbler API,
command line, or Web interface.
- Explicit resource execution order
- Possible new client: Coan - Configuration Over a Network
If you would like more details, please visit:
http://wiki.github.com/khightower/madhatter/
I welcome, all suggestions and feedback.
14 years, 2 months
Error mirroring Fedora repos
by George Porter
Hi everyone,
After getting cobbler up and running on Centos 5.4, I ran into the
following problem creating a local mirror of the Everything repo (so
the machines in my lab can access the local packages). Has anyone run
into this before? Thanks in advance,
George
Cobbler version: 2.0.2
Cobbler server: HP DL320G6, Xeon processor
What I was doing: trying to create a Fedora everything repo. I tried
with other mirror sites too--same error each time.
# cobbler repo add --arch=x86_64
--mirror=http://mirror.stanford.edu/fedora/linux/releases/12/Everything/x86_64/os/
--name=fc12-x86_64-everything
# cobbler reposync
task started: 2010-02-08_114724_reposync
task started (id=Reposync, time=Mon Feb 8 11:47:24 2010)
hello, reposync
run, reposync, run!
creating: /var/www/cobbler/repo_mirror/fc12-x86_64-everything/.origin/fc12-x86_64-everything.repo
running: /usr/bin/reposync -l -m -d
--config=/var/www/cobbler/repo_mirror/fc12-x86_64-everything/.origin/fc12-x86_64-everything.repo
--repoid=fc12-x86_64-everything
--download_path=/var/www/cobbler/repo_mirror -a x86_64
4.2 kB 00:00
6.1 MB 00:01 ETA 12 MB 00:01
2.7 MB --:-- ETA 12 MB 00:01
Traceback (most recent call last):
File "/usr/bin/reposync", line 291, in ?
main()
File "/usr/bin/reposync", line 179, in main
my.doSackSetup(rpmUtils.arch.getArchList(opts.arch))
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 464,
in doSackSetup
return self._getSacks(archlist=archlist, thisrepo=thisrepo)
File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 501,
in _getSacks
self.repos.populateSack(which=repos)
File "/usr/lib/python2.4/site-packages/yum/repos.py", line 260, in
populateSack
sack.populate(repo, mdtype, callback, cacheonly)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 176, in populate
db_fn = repo._retrieveMD(mydbtype)
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 1524,
in _retrieveMD
cache=self.http_caching == 'all')
File "/usr/lib/python2.4/site-packages/yum/yumRepo.py", line 827, in _getFile
raise Errors.NoMoreMirrorsRepoError, errstr
yum.Errors.NoMoreMirrorsRepoError: failure:
repodata/5cba24ab31a5e98f382ac49c9fffbe443749e889a777e0dbc4aa70d20104d20b-primary.sqlite.bz2
from fc12-x86_64-everything: [Errno 256] No more mirrors to try.
returned: 1
Exception occured: cobbler.cexceptions.CX
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 121, in die
raise CX(msg)
Exception occured: cobbler.cexceptions.CX
Exception value: 'cobbler reposync failed'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 119, in run
self.sync(repo)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 150, in sync
return self.yum_sync(repo)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 382, in yum_sync
utils.die(self.logger,"cobbler reposync failed")
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 129, in die
raise CX(msg)
reposync failed, tries left: 0
Exception occured: cobbler.cexceptions.CX
Exception value: 'reposync failed, retry limit reached, aborting'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 121, in die
raise CX(msg)
Exception occured: cobbler.cexceptions.CX
Exception value: 'reposync failed, retry limit reached, aborting'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 95, in run
rc = self._run(self)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line
242, in runner
name=None, nofail=False, logger=self.logger)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 635, in reposync
return reposync.run(name)
File "/usr/lib/python2.4/site-packages/cobbler/action_reposync.py",
line 128, in run
utils.die(self.logger,"reposync failed, retry limit reached, aborting")
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 129, in die
raise CX(msg)
!!! TASK FAILED !!!
14 years, 2 months
Problems installing on Centos 5.4
by George Porter
Hello everyone,
I've been using Cobbler 1.x on Centos 5.4 for awhile, and wanted to
move to 2.0. Starting with a bare-bones Centos 5.4 machine (installed
yesterday morning), I tried to 'yum install cobbler', but keep running
into the following error:
cobbler-2.0.2-2.el5.noarch from epel_testing has depsolving problems
--> Missing Dependency: python-netaddr is needed by package
cobbler-2.0.2-2.el5.noarch (epel_testing)
Error: Missing Dependency: python-netaddr is needed by package
cobbler-2.0.2-2.el5.noarch (epel_testing)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
Has anyone else run into this? Do you know where I can get
python-netaddr? I went to the code.google.com page for netaddr and
installed it manually, but yum/rpm doesn't pick up that manual install
so still fails.
Any thoughts would be appreciated.
Thanks,
George
14 years, 2 months
generate_kickstart errors
by Wong, Roland
Hello all:
Our cobbler instance has been working just fine until these exceptions
started showing up in /var/log/cobbler/cobblerd.log
As far as I can tell, none of the files in
/usr/lib/python2.4/site-packages/cobbler have been modified
Any insights?
2010-02-05 09:17:45,043 - api - generate_kickstart
2010-02-05 09:17:45,063 - api - Exception occured: exceptions.IOError
2010-02-05 09:17:45,063 - api - Exception value: [Errno 9] Bad file
descriptor
2010-02-05 09:17:45,063 - api - Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 1567,
in _disp
atch
return method_handle(*params)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 269,
in gener
ate_kickstart
return self.api.generate_kickstart(profile,system)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 516, in
generate
_kickstart
return self.kickgen.generate_kickstart_for_system(system)
File "/usr/lib/python2.4/site-packages/cobbler/kickgen.py", line 251,
in gene
rate_kickstart_for_system
traceback.print_exc()
File "/usr/lib64/python2.4/traceback.py", line 212, in print_exc
print_exception(etype, value, tb, limit, file)
File "/usr/lib64/python2.4/traceback.py", line 124, in
print_exception
_print(file, 'Traceback (most recent call last):')
File "/usr/lib64/python2.4/traceback.py", line 13, in _print
file.write(str+terminator)
14 years, 2 months
Cobbler + Preseed
by Stephen Nelson-Smith
Hi,
I'm using Cobbler on a CentOS 5 machine, using only the command line
tools - I don't use the web interface.
It's working perfectly for me for CentOS builds.
I've been asked to set it up to enable Ubuntu builds and preseeds - so
we can have a fully automated installation procedure for developer
workstations.
Normally I just provide the installer kernel image and initrd, and
then pass a kickstart, which installs over the network from a local
CentOS repo.
I want to do something similar with Ubuntu. I've dropped the kernel
image and initrd in place, and Cobbler finds these and launches the
installer. However, how do I get the preseed to be picked up? I
tried just passing it in as
--kickstart=/var/lib/cobbler/kickstarts/my.preseed, but that didn't
seem to have any impact at all.
How can I do this?
Thanks,
S.
--
Stephen Nelson-Smith
Technical Director
Atalanta Systems Ltd
www.atalanta-systems.com
14 years, 2 months
wget hangs syncing CentOS repos
by Andy Miller
Folks,
I've set up a Cobbler server to mirror CentOS 5.4. Everything seems OK,
except that when I do a reposync things hang.
Having a poke arround seems to indicate that reposync is trying to wget
comps.xml from the repos, but the CentOS repos don't have a comps.xml.
If I kill the wget, then the rest of the reposync seems to procede OK,
but this is kind of stops the reposync being an overnight task.
Any ideas how I can cure this?
Many Thanks
Andy Miller
--
The Miller Family
doneath(a)fmail.co.uk
14 years, 2 months