[1.6.3+ Regression] Unicode handling on Fedora 9 and a quick fix
by Jeff Schroeder
We were hit by the now infamous "unicode bug" when upgrading to 1.6.3
and found an additional bug. On our only Fedora 9 test server, the
repositories always put a 'u' in front of the name.
root(a)cobbler1.els01: Updates # cobbler profile report
--name=Fedora-10-x86_64 | grep "repos.*uFed"
repos : ['uFedora-10-Updates-x86_64', 'uFedora-10-Extras-x86_64']
Upgrading to 1.6.4 did not work. We tried looking for differences in
the json (not fun compared to yaml), in the permissions, in the code
(rpm -V), etc. No luck.
I tracked it down to Fedora 10 using
python-simplejson-2.0.3-2.fc10.x86_64 and Fedora 9 using
python-simplejson-1.8.1-1.fc9.x86_64. A quick mock build of the fedora
10 src.rpm + rpm -U and we were in business. My humble suggestion
would be we check for a non-working version of python-simplejson and
loudly complain to the user it might not work. This is a fatal error
as it breaks repositories and profiles on affected configurations.
What does everyone else think? Is this a sane methodology?
--
Jeff Schroeder
Don't drink and derive, alcohol and analysis don't mix.
http://www.digitalprognosis.com
14 years, 12 months
[PATCH] fix for generic edit system page
by James Cammarata
Was missing the list of profiles, causing saves to fail. Pushed to my
github:
commit 13e00ac0e5ade5d949c58a6177b84f2b0fb0ec68
Author: James Cammarata <jimi(a)sngx.net>
Date: Mon May 11 19:15:45 2009 -0500
Fix for django generic system edit, was missing list of profiles
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
14 years, 12 months
[PATCH] add subnet records to dhcpd.conf based on network objects
by Vreman, Peter
To follow-up the dhcp.template code I wrote in "RE: delete system does not sync dhcpd".
Attached is a patch that adds the basic support to add the subnet configuration section to the dhcpd.conf using the network objects.
After this patch is applied you can use the default delivered dhcpd.template and only use cobbler commands to generate a working dhcpd configuration.
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
14 years, 12 months
delete system does not sync dhcpd
by Vreman, Peter
I got a question from a colleague that did not want DHCP. I removed the system as there is no way to disable the DHCP only. But the dhcpd.conf was not regenerated until a manual sync is called.
Two questions:
- Can the dhcpd sync be called implicitly after a system delete?
- Is it possible to add an option to keep systems in Cobbler but disable them from DHCP?
Regards,
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
14 years, 12 months
Extending Built-In Config Management
by Michael DeHaan
It might be interesting to be able to define built-in config management
scripts that instead of writing files, instead copy themselves to /tmp
and run themselves.
Proposed syntax:
cobbler profile edit --name=foo
--template-files="/opt/templates/etc/foo.conf=/etc/foo.conf
!/opt/templates/script.py"
Thoughts?
Obviously we are not trying to write a full CMS, though for some folks,
this would be enough.
The bonus is that "koan --update-files" could be used to rerun those
scripts at any time, keeping the systems up-to-date with server-side
defined policy.
Seems quite easy to do.
Koan would download the script to something like
/var/spool/koan/tempfilename, chmod it, and then execute the scripts.
Obviously it's a sledgehammer to be used with caution, but it could be
nice to have... and we could also make sure each executable script gets
run in %post.
--Michael
14 years, 12 months
[PATCH] finish up generic edit support for webui
by James Cammarata
I've finished adding support for network objects, images, and repos, and
modified urls.py to use the new generic edit code by default.
Patches are all pushed up to my github:
commit 2e7f679ae99ea522683dd660f7ef50aff8e902da
Author: James Cammarata <jimi(a)sngx.net>
Date: Thu May 7 20:42:42 2009 -0500
Commented out all specific edit lines except for ksfiles/snippets in
urls.py
commit a31e023d1ef2fefd3f66388c7c1cae8844264f7b
Author: James Cammarata <jimi(a)sngx.net>
Date: Thu May 7 20:31:54 2009 -0500
Generic image editing for webui
commit be576cbb347c6c626c27041f9e60c8bf88d35371
Author: James Cammarata <jimi(a)sngx.net>
Date: Thu May 7 20:02:52 2009 -0500
Generic editing of repos for webui
commit 799cfb7381b9e83123658fb1229b80eff33df5c6
Author: James Cammarata <jimi(a)sngx.net>
Date: Thu May 7 16:50:14 2009 -0500
Added generic edit support for network objects
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
15 years
(no subject)
by Michael DeHaan
Probably a question for Peter ...
Anyone looking at making the various list pages support batch deletion
(like systems) and removing the "in page" stuff for deletion and
renames? (So that things are consistent WRT systems?)
I thought this was part of the previous patch series but I don't see it
when looking at the app.
Anyway, let me know, I will play around if no one else is taking a look.
--Michael
15 years
[PATCH] Add option to flatten results returned by remote get_item() for django generic edits
by James Cammarata
Since the generic edit view was changed to use the remote function
get_item() instead of the more specific get_distro(), etc., we needed to be
able to flatten the results like the specific functions do.
The patch has been pushed up to my github, details below:
commit 1ca24054a2d3f7a8f0a0b533014225648c4939b1
Author: James Cammarata <jimi(a)sngx.net>
Date: Thu May 7 01:37:14 2009 -0500
Add option to flatten results returned by get_item()
Fixed django generic edit to use new flatten option
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
15 years
F11 moves (ISC) dhcpd.conf, question about cross-OS support for non-Fedora/RH?
by Michael DeHaan
It's now /etc/dhcp/dhcpd.conf, rather than /etc/dhcpd.conf.
As a result of this move, we now have a settings file that must be
changed for F11 and later. I could move this /out/ of settings, of
course, and try to make the app know where to put it (it's actually
easy) but I'm wondering what paths other OS's are using?
My current proposal is:
if os.path.isdir("/etc/cobbler/dhcp"):
path = /etc/cobbler/dhcp/dhcpd.conf
else:
path = /etc/cobbler/dhcpd.conf
Basically while the idea of having paths in settings is good for
supporting multiple OS's, I also would prefer people don't have to
configure this.
Alternatively, I could figure out a nice way to generate different
tarballs for different OS's, but I'd like to avoid this.
--Michael
15 years