Cobbler 2.0 web issue.
by Jeremy Rosengren
Attempting to access the management page gives me the error pasted below.
I'm running CentOS 5.3 with a stock /etc/cobbler/modules.conf file except
that I'm using authn_configfile.
Thanks!
-- jeremy
Mod_python error: "PythonAuthenHandler cobbler_web.views"
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
287, in HandlerDispatch
log=debug)
File "/usr/lib/python2.4/site-packages/mod_python/apache.py", line
464, in import_module
module = imp.load_module(mname, f, p, d)
File "/usr/share/cobbler/web/cobbler_web/views.py", line 16, in ?
import cobbler.item_distro as item_distro
File "/usr/lib/python2.4/site-packages/cobbler/item_distro.py", line 95, in ?
FIELDS = [
File "/usr/lib/python2.4/site-packages/cobbler/codes.py", line 67,
in get_all_os_versions
results = utils.uniquify(results)
AttributeError: 'module' object has no attribute 'uniquify'
14 years, 8 months
System configuration files are being zeroed by Cobbler
by Chris O'Regan
Cobbler version 1.6.5
I was building a system with Cobbler yesterday when kickstart failed.
While investigating, I noticed that the Cobbler daemon was down and
would not re-start. Since this had happened once before, I was able to
narrow it down quickly. The configuration file of the system being built
was zero bytes. I deleted it and was able to restart Cobbler.
I stepped through my kickstart and compared it with the newly built
system. The fault occurred near the very end of the %post section where
I call $kickstart_done which translates into:
wget "http://XXX.encs.concordia.ca/cblr/svc/op/nopxe/system/YYY" -O /dev/null
wget "http://XXX.encs.concordia.ca/cblr/svc/op/ks/system/YYY" -O /root/cobbler.ks
wget "http://XXX.encs.concordia.ca/cblr/svc/op/trig/mode/post/system/YYY" -O /dev/null
I don't know which of these failed, but I suspect it's the "nopxe"
trigger since it would be writing to this system's configuration file.
I've been using this setup quite a bit and I have run into this problem
only once before. It's not a problem with disk space -- there's about
100G free. I wasn't accessing cobbler at the time either. There isn't
much in the cobbler logs, either, just a message in install.log stating
the start time for this system. Nothing in either cobbler.log or
cobblerd.log.
I'm planning to upgrade to the latest 1.6.X release soon; not sure if I
am ready to switch to just 2.0.X yet.
--
Chris O'Regan <chris(a)encs.concordia.ca>
Senior Unix Systems Administrator, Academic IT Services
Faculty of Engineering and Computer Science
Concordia University, Montreal, Canada
14 years, 8 months
2.2 Open Roadmap Discussion
by Michael DeHaan
With 2.0 released, it's time to talk about what folks think would be
interesting for 2.2.
Reminder: this includes things that *you* would want to work on, as
well as things that I'll be doing.
Some initial things from my list that I want to do:
* look into built-in capabilities for easier management of more than one
Cobbler server (details TBD)
* continual web app improvements
* upgrade the 2.0 task engine to be able to stop tasks + better view
task status from the command line
* bring back detailed multi-format,custom-field reporting and also
surface it in the web app in a variety of formats
Trac also has a very large list of RFEs (and some minor bugfixes that
are needed)... some of which are quite easy for folks to knock out if
they are looking for something to do.
--Michael
14 years, 8 months
[ANNOUNCE] Cobbler 2.0 Released!
by Michael DeHaan
Hello everyone,
It is not Released! It Escapes! Cobbler 2.0 is here!
Cobbler 2.0 represents a great amount of work by numerous individuals
here to make a Cobbler that is not only 0.4 points better than the
previous version, but also much more ready to handle an increasingly
larger development community. It is the Cobbler release that is most
different than other cobbler releases, but also (as always) allows an
upgrade from previous versions. A tremendous thanks to all who made it
possible, for I could not do it without you.
What can you look forward to? 2.0 brings an all (now seperate,
optional, and much shinier and more usable) new cobbler-web RPM, a
blinding fast XMLRPC-backed replacement for the command line (even for
insanely large configurations you'll never wait for it to crank through
your cobbler configuration), and overhauled/smarter multi-server
replication feature, and a new core that makes it infinitely easier for
new contributors to go in and add things to Cobbler. For programmers,
you can now do everything over XMLRPC that you previously needed the
Python API to do -- thanks to a new background task engine, everything
is now remoteable. (Look forward to upgrades to this task engine in
future releases, though API compatibility will remain intact!). While
Cobbler-Web is one feature everyday users will quickly take note of,
much of this release is geared towards making it easier to integrate
cobbler with other applications and make it easier to work on Cobbler
for everyone in the cobbler community.
And it's out now:
http://people.fedoraproject.org/~mdehaan/files/cobbler/testing/
This will all be pushed to the Fedora and EPEL mirrors shortly. For
those using EPEL (for Red Hat Enterprise Linux 4 and 5, and derived
distributions), you should note that EPEL now has a much better concept
of a "testing" repo that works like Fedora's does now. Rather than
having content be promoted automatically based on time, we can choose
when to move things to stable. As a result, when Cobbler 2.0 is
available via the mirrors, we'll initially have it in the "testing"
repos for both Fedora and EPEL. Based on user feedback, we can
decide when we're ready to move it to the main repo and upgrade
everyone. The more feedback we get, the sooner we can make that
decision, so please help pound on it. As with previous releases, we'll
presumably have several dot releases for fixes and minor improvements as
we consider what goes into the next version.
You can take a note of what's new (and also some upgrade instructions
you might want to read over) on the Wiki:
https://fedorahosted.org/cobbler/wiki/WhatsNewInTwoOh
Please share any comments you have here, and happy Cobbler'ing!
Once again, a huge thanks to everyone who contributed ideas, testing,
code, and/or feedback to this release. You are much appreciated!
--Michael
14 years, 8 months
cobbler replicate --full-data-sync broken
by Paul Company
I'm trying to replicate from cobbler1 (my master server) to cobbler2
(a non-master server).
The problem seems to be that
cobbler1:/var/lib/cobbler/config/distros.d/5Server-x86_64.json
is not being rsync'ed over to cobbler2.
Some background information:
I created the distro on cobbler1 by doing the following:
# mkdir -p /usr/distros/5Server-x86_64
# cd /usr/distros/5Server-x86_64
# wget http://myrepo/mrepo/5Server-x86_64/disc1/images/pxeboot/vmlinuz
# wget http://myrepo/mrepo/5Server-x86_64/disc1/images/pxeboot/initrd.img
# cobbler distro add --name=5Server-x86_64 \
--kernel=/usr/distros/5Server-x86_64/vmlinuz \
--initrd=/usr/distros/5Server-x86_64/initrd.img \
--ksmeta="tree=http://myrepo/mrepo/5Server-x86_64"
I don't use "cobbler import" because it copies over the entire
distribution content and I have limited HDD space.
Is there a workaround for this issue?
If I copy /var/lib/cobbler/config/distros.d/5Server-x86_64.json to
cobbler2 everything looks good,
but manually copying things over defeats the purpose of the replicate command.
The error I'm getting is
"Failed to copy distro 5Server-x86_64, content not here yet."
cobbler1# cobbler list
distro 5Server-x86_64
profile 5Server-x86_64-profile
system 5Server-x86_64-system
repo 5Server-x86_64-all
repo 5Server-x86_64-dag
repo 5Server-x86_64-dag-all
repo 5Server-x86_64-epel
repo 5Server-x86_64-fastrack
repo 5Server-x86_64-int
repo 5Server-x86_64-ops
repo 5Server-x86_64-ops-test
repo 5Server-x86_64-os
repo 5Server-x86_64-prod
repo 5Server-x86_64-qa
repo 5Server-x86_64-stage
repo 5Server-x86_64-supplementary
repo 5Server-x86_64-updates
cobbler2# cobbler replicate --master=cobbler1 --full-data-sync
XMLRPC endpoint: http://cobbler1/cobbler_api
----- Copying Distros
----- Rsyncing Distribution Trees
- rsync -avz cobbler1:/var/www/cobbler/ks_mirror /var/www/cobbler
receiving file list ... done
sent 20 bytes received 86 bytes 70.67 bytes/sec
total size is 0 speedup is 0.00
Importing remote distro 5Server-x86_64.
Failed to copy distro 5Server-x86_64, content not here yet.
<------------------------ HERE'S THE PROBLEM!!!!!!!!!!!!!!!!!!
----- Rsyncing Package Mirrors
- rsync -avz cobbler1:/var/www/cobbler/repo_mirror /var/www/cobbler
receiving file list ... done
sent 20 bytes received 88 bytes 216.00 bytes/sec
total size is 0 speedup is 0.00
----- Rsyncing kickstart templates & snippets
- rsync -avz cobbler1:/var/lib/cobbler/kickstarts /var/lib/cobbler
receiving file list ... done
sent 20 bytes received 451 bytes 942.00 bytes/sec
total size is 56116 speedup is 119.14
- rsync -avz cobbler1:/var/lib/cobbler/snippets /var/lib/cobbler
receiving file list ... done
sent 20 bytes received 1365 bytes 2770.00 bytes/sec
total size is 42074 speedup is 30.38
----- Copying Repos
Importing remote repo 5Server-x86_64-all.
Copied repo 5Server-x86_64-all.
Importing remote repo 5Server-x86_64-dag.
Copied repo 5Server-x86_64-dag.
Importing remote repo 5Server-x86_64-dag-all.
Copied repo 5Server-x86_64-dag-all.
Importing remote repo 5Server-x86_64-epel.
Copied repo 5Server-x86_64-epel.
Importing remote repo 5Server-x86_64-fastrack.
Copied repo 5Server-x86_64-fastrack.
Importing remote repo 5Server-x86_64-int.
Copied repo 5Server-x86_64-int.
Importing remote repo 5Server-x86_64-ops.
Copied repo 5Server-x86_64-ops.
Importing remote repo 5Server-x86_64-ops-test.
Copied repo 5Server-x86_64-ops-test.
Importing remote repo 5Server-x86_64-os.
Copied repo 5Server-x86_64-os.
Importing remote repo 5Server-x86_64-prod.
Copied repo 5Server-x86_64-prod.
Importing remote repo 5Server-x86_64-qa.
Copied repo 5Server-x86_64-qa.
Importing remote repo 5Server-x86_64-stage.
Copied repo 5Server-x86_64-stage.
Importing remote repo 5Server-x86_64-supplementary.
Copied repo 5Server-x86_64-supplementary.
Importing remote repo 5Server-x86_64-updates.
Copied repo 5Server-x86_64-updates.
----- Copying Profiles
Importing remote profile 5Server-x86_64-profile
profile is missing distribution: 5Server-x86_64-profile, 5Server-x86_64
Failed to copy profile 5Server-x86_64-profile.
----- Copying Images
----- Rsyncing triggers
- rsync -avz cobbler1:/var/lib/cobbler/triggers /var/lib/cobbler
receiving file list ... done
sent 20 bytes received 525 bytes 363.33 bytes/sec
total size is 0 speedup is 0.00
----- Syncing
profile 5Server-x86_64-profile references a missing distro 5Server-x86_64
Note that the repos transferred as well as all the snippets and triggers.
It's just the distro that doesn't get transferred.
cobbler2# cobbler list
repo 5Server-x86_64-all
repo 5Server-x86_64-dag
repo 5Server-x86_64-dag-all
repo 5Server-x86_64-epel
repo 5Server-x86_64-fastrack
repo 5Server-x86_64-int
repo 5Server-x86_64-ops
repo 5Server-x86_64-ops-test
repo 5Server-x86_64-os
repo 5Server-x86_64-prod
repo 5Server-x86_64-qa
repo 5Server-x86_64-stage
repo 5Server-x86_64-supplementary
repo 5Server-x86_64-updates
14 years, 8 months
cobbler replicate question...
by Paul Company
Does "cobbler replicate --full-data-sync" have to run as root to work?
Or is there a way around it.
I ran it as a regular user and it complained about not being able to
set permissions.
$ cobbler replicate --master=cobbler-master --full-data-sync
XMLRPC endpoint: http://cobbler-master/cobbler_api
----- Copying Distros
----- Rsyncing Distribution Trees
- rsync -avz cobbler-master:/var/www/cobbler/ks_mirror /var/www/cobbler
pcompany@cobbler-master's password:
receiving file list ... done
rsync: failed to set permissions on "/var/www/cobbler/ks_mirror":
Operation not permitted (1)
ks_mirror/
rsync: failed to set permissions on "/var/www/cobbler/ks_mirror":
Operation not permitted (1)
sent 26 bytes received 92 bytes 15.73 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at
main.c(1298) [generator=2.6.8]
rsync failed
14 years, 8 months
Cobber broken
by Paul Company
I'm running cobbler 1.6.6 on RHEL 5.3
I have no idea what I did, but every time I run cobbler, I get
[Errno 21] Is a directory
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 83, in main
rc = BootCLI().run(sys.argv)
File "/usr/lib/python2.4/site-packages/cobbler/cobbler.py", line 45,
in __init__
self.api = api.BootAPI(is_cobblerd=False)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 110, in __init__
self.deserialize()
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 623, in
deserialize
return self._config.deserialize()
File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 211,
in deserialize
serializer.deserialize(self._distros)
File "/usr/lib/python2.4/site-packages/cobbler/serializer.py", line
135, in deserialize
rc = storage_module.deserialize(obj,topological)
File "/usr/lib/python2.4/site-packages/cobbler/modules/serializer_catalog.py",
line 176, in deserialize
datastruct = deserialize_raw(obj.collection_type())
File "/usr/lib/python2.4/site-packages/cobbler/modules/serializer_catalog.py",
line 133, in deserialize_raw
fd = open(old_filename)
It doesn't matter what I run:
# cobbler check
# /etc/init.d/cobblerd restart
# cobbler list
# cobbler help
whatever, I get this spew of python code.
Does anyone know what this error is trying to say?
Or better yet, how to recover from it?
Paul
14 years, 8 months
Support for 'virtualbox'?
by John Sanabria
Hi,
Is there a project working on support deployment of Virtualbox-based
virtual machines? I skimmed the cobbler's documentation page but I didn't
see any link to describe how cobbler supports the deployment of virtual
machines under Xen, qemu, KVM and some variants of VMWare.
Finally, is there some work toward formalize the deployment process
carried out by cobbler?
John
14 years, 8 months
Questions regarding pxe_just_once
by Paul Company
I'm running cobbler 1.6.6 on RHEL 5.3
I've read https://fedorahosted.org/cobbler/wiki/ModPythonDetails
It states:
The following URL, if pxe_just_once is enabled in settings, is called
via wget in post to prevent an infinite PXE boot loop.
http://server/cblr/svc/op/nopxe/system/$name_of_system
Reading /etc/cobbler/settings states that pxe_just_once toggles the
--netboot-enabled record in the cobbler system record.
How do I find the code that does the actual work?
What exactly gets modified to prevent an infinite PXE boot loop?
/etc/grub.conf ?
/tftpboot/ ?
Is there a url to set --netboot-enabled to True?
I know I can do this
# cobbler system edit --name=$name_of_system --netboot-enabled=True
but is there a way to do it through the web ui?
I find it very difficult to trace through mod_python invocations.
I've read /var/www/cobbler/svc/services.py but I still find it difficult to
follow things down to the code that actually does the work.
Thanks,
Paul
14 years, 8 months
Xen Questions
by Chris O'Regan
I have been tinkering with Cobbler/Koan to set up some virtual machines.
Works great but I have some questions.
First, what is the recommended way of building the host? In particular,
I need to add some kernel parameters to grub.conf in order for Xen to
play nicely with my serial console, however the entry for the Xen kernel
is different; it uses "module". Is this something that can be done by
Cobbler, or do I need to tweak my cfengine scripts? Here's an example:
title Scientific Linux SL (2.6.18-128.7.1.el5xen)
root (hd0,0)
kernel /boot/xen.gz-2.6.18-128.7.1.el5 com1=auto
module /boot/vmlinuz-2.6.18-128.7.1.el5xen ro root=LABEL=/ xencons=xvc console=xvc0 quiet crashkernel=128M@16M
module /boot/initrd-2.6.18-128.7.1.el5xen.img
Note that I have appended "com1=auto" to the "kernel" entry and inserted
"xencons=xvc console=xvc0" to the first "module" entry.
Second, I need to assign a mac address to each virtual machine and
create a corresponding entry on our DHCP server (not managed by
Cobbler). Any tips for doing this, particularly with respect to
generating a random mac address?
Thanks!
--
Chris O'Regan <chris(a)encs.concordia.ca>
Senior Unix Systems Administrator, Academic IT Services
Faculty of Engineering and Computer Science
Concordia University, Montreal, Canada
14 years, 8 months