[PATCH] fix timezone annoyance in cobbler-web
by Jörgen Maas
Hi,
The timezone information used by cobbler-web was hardcoded in the
settings.py file.
I changed that so it uses the system's timezone instead.
https://github.com/jmaas/cobbler/commit/4dc029f6016c5163c49d86e137c864b07...
diff --git a/web/settings.py b/web/settings.py
index fc2d791..9199578 100644
--- a/web/settings.py
+++ b/web/settings.py
@@ -16,8 +16,8 @@ DATABASE_PASSWORD = ''
DATABASE_HOST = ''
DATABASE_PORT = ''
-# this is not used by cobbler-web
-TIME_ZONE = 'America/NewYork'
+# Force Django to use the systems timezone
+TIME_ZONE = None
# Language section
# TBD.
Grtz,
Jörgen Maas
12 years, 10 months
(no subject)
by Jonathan Underwood
This patch to keep_ssh_host_keys ensure that all mdraid devices are
unmounted and deactivated after they've been searched for ssh host
keys. This prevents anaconda from bombing out when it subsequently
tries to repartition/erase/whatever those partitions.
This patch is against the stable branch, but should be applied to the
stable and devel branches.
12 years, 10 months
[PATCH] Fix issue with importing distro's on new cobbler box
by Jonathan Sabo
I was getting the following exception trying to import rhel6 using the
latest cobbler code from git master.
received on stderr:
adding distros
avoiding symlink loop
directory /var/www/cobbler/ks_mirror/rhel6-x68_64/images/pxeboot holds
multiple arches : ['x86_64', 'x86']
Exception occured: <type 'exceptions.TypeError'>
Exception value: 'NoneType' object is not iterable
Exception Info:
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line 93, in run
rc = self._run(self)
File "/usr/lib/python2.6/site-packages/cobbler/remote.py", line
227, in runner
self.logger
File "/usr/lib/python2.6/site-packages/cobbler/api.py", line 756,
in import_tree
return manager.run(pkgdir,mirror_url,mirror_name,network_root,kickstart_file,rsync_flags,arch,breed,os_version)
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_import_redhat.py",
line 267, in run
os.path.walk(self.path, self.distro_adder, distros_added)
File "/usr/lib64/python2.6/posixpath.py", line 233, in walk
walk(name, func, arg)
File "/usr/lib64/python2.6/posixpath.py", line 233, in walk
walk(name, func, arg)
File "/usr/lib64/python2.6/posixpath.py", line 225, in walk
func(arg, top, names)
File "/usr/lib/python2.6/site-packages/cobbler/modules/manage_import_redhat.py",
line 520, in distro_adder
distros_added.extend(adtl)
!!! TASK FAILED !!!
This should fix this.
diff --git a/cobbler/modules/manage_import_redhat.py
b/cobbler/modules/manage_import_redhat.py
index 7b611c9..3a482bd 100644
--- a/cobbler/modules/manage_import_redhat.py
+++ b/cobbler/modules/manage_import_redhat.py
@@ -517,7 +517,8 @@ class ImportRedhatManager:
pae_initrd = None
for adtl in adtls:
- distros_added.extend(adtl)
+ if adtl:
+ distros_added.extend(adtl)
def add_entry(self,dirname,kernel,initrd):
12 years, 10 months
missing manage_rsync option from config/settings
by Jonathan Sabo
It would be nice to have the manage_rsync option in the settings file.
diff --git a/config/settings b/config/settings
index 8b1d62e..49ba9a8 100644
--- a/config/settings
+++ b/config/settings
@@ -197,6 +197,9 @@ manage_dhcp: 0
# the choice of DNS mangement engine is in /etc/cobbler/modules.conf
manage_dns: 0
+# set to 1 to enable Cobbler's RSYNC management features.
+manage_rsync: 0
+
# if using BIND (named) for DNS management in /etc/cobbler/modules.conf
# and manage_dns is enabled (above), this lists which zones are managed
# See the Wiki (https://fedorahosted.org/cobbler/wiki/ManageDns) for more info
12 years, 10 months
MongoDB backend for Cobbler
by James Cammarata
I'm decided to go ahead and write this. I got a working module up with
about 30 minutes of effort, so I was wondering if others might be
interested in it. During the writing, I did discover the serializer
code is a bit broken, as it will only allow CouchDB or the catalog
serializers - if you write a custom backend currently and follow the
documentation on the wiki it will NOT work. Half of the effort in
writing this was figuring out why my serializer wouldn't load...
Why mongo?
1) Ease of use and development. Not caring about schemas makes life
easy, and cobbler already enforces fields with its object loaders.
Also backups/restores are VERY easy with the provided utilities, so
you can do hot backups without shutting down cobblerd.
2) It's readily available, and so is pymongo. It should be a simple
package install for all of the OSes we can import.
3) JSON! Part of the reason it took me 30 minutes to write, it's all
already JSON internally (or should be, unless you're stuck with an
ancient install of cobbler).
My goals are:
1) DB storage for "scalability" reasons. I read mpdehaan's blog post
and it kind of irritated me to think cobbler's supposed lack of
scalability was hindering its adoption anywhere. Mongo is fast,
especially when you index things properly, so for those that have 10's
of thousands of objects this should make things much quicker.
2) Allowing storage of settings in the DB. This will require some
work, but ultimately I think it would be nice to allow editing of
settings from the web gui, and to be able to change settings on the
fly without bouncing cobblerd. Sharing settings between cobblerd
instances would also be nice, though there are some gotchas, but it
would allow you to load balance them very nicely I think.
3) Easy import from existing JSON files in config/*.
I would most likely add a "cobbler settings" command, which would
allow the modification of settings from the CLI. I also found that if
you insert objects directly into the database, cobblerd doesn't pick
that up since it maintains an internal cache of objects (the same is
true if you manually copy JSON files into config/ now), so I was
thinking of adding a "cobbler reload" command too which would cause a
sync up between the data store and cobblerd's cache.
Finally, I was planning on making this an optional RPM, like
cobbler-extra-backends or something like that, so the dependency tree
for a basic install wouldn't grow too much. We could move the
experimental CouchDB serializer there too - not sure if anyone even
uses that or not.
Anyway, let me know if you guys think this is worth pursuing or if
there's much interest in even adding support for something like this.
12 years, 10 months
some design help for cobbler project
by Greg Swift
We've been working on cleaning up the HTML and css for cobbler's web
interface lately. We've gotten to a good functional point, and one of
the things we've discussed is the lack of a favicon. If anyone would
like to help out with this we've submitted the ticket 184 in the
design-team's tracker.
On a related note, if anyone is interested in working with us on a new
stylesheet. While this cleanup came with some style changes as I'm not
a designer I just tried adding polish to the existing rather than
re-doing the whole thing. If anyone has an interest in that, I can
create an additional ticket.
thanks
greg "xaeth" swift
on behalf of scott henson of the cobbler project
(cross posted to cobbler-devel list so all are in the loop)
12 years, 11 months
Extra debugging log in tftp.py
by Douglas Kilpatrick
I accidentally left in an unneeded logging.warning() line in tftpd.py.
https://github.com/kilpatds/cobbler/commits/master
commit 43e38fabed4011f64964741d3f7b138c24299cfc
Author: Douglas Kilpatrick <dkilpatrick(a)verisign.com>
Date: Mon Jun 13 14:58:25 2011 -0400
Remove left-over debugging log message
diff --git a/scripts/tftpd.py b/scripts/tftpd.py
index beecf82..fb0b0af 100755
--- a/scripts/tftpd.py
+++ b/scripts/tftpd.py
@@ -390,8 +390,6 @@ class Request:
self.templar = templar
# Sanitize input more
-
- logging.warn("Testing: %s,%s",rrq_packet.filename,self.filename)
# Strip out \s
self.filename = self.filename.replace('\\','')
# Look for elements starting with ".", and blow up.
Doug
--
Doug Kilpatrick
kilpatds(a)oppositelock.org
12 years, 11 months