[ANNOUNCE] Cobbler and Koan 1.4.3 released
by Michael DeHaan
The changelogs are as follows:
- Cobbler 1.4.3
- (BUGF) fix OMAPI support's (note: deprecated) usage of subprocess
- (BUGF) don't traceback on invalid cmd ("cobbler distro list --name=foo")
- (BUGF) fix import usage with --kickstart option (no more traceback)
- (BUGF) fix removal of images with child system objects
- (BUGF) make --rpmlist on repo use same parsing routes as the rest of
cobbler
- (BUGF) default value for server override should be <<inherit>> not
<inherit>
- (BUGF) ensure if virt bridge is set to "" it will apply the value from
settings
- (BUGF) cobbler check should say path to config file is /etc/cobbler,
not /var/lib
- (FEAT) enable cobblerweb username/pass logins when authing with spacewalk
- (BUGF) allow --kopts to take parameters that are shell quoted.
- (BUGF) allow kernel options to start with '-'
- (BUGF) prevent potential traceback when --template-file data isn't a hash
- (BUGF) set primary hostname manually in case Anaconda doesn't honor it
- (BUGF) anaconda doesn't honor nameserver always, set manually
- (BUGF) various post install network snippet fixes
- (BUGF) fix OMAPI support's (note: deprecated) usage of subprocess
- (SPEC) fix build for rawhide now that yaboot is included
- (BUGF) allow src and noarch arches for repo objects
- (BUGF) move to PyYAML for YAML implementation since it is better
maintained
- (BUGF) fixed web-interface editing of ownership
- (BUGF) fixed web-interface editing of management classes
- (BUGF) don't run full sync in import, sync makes the install system
unavailable for very short periods of time
- (FEAT) XMLRPC functions for searching objects, just like the Python
API has
- (BUGF) make "find repo" CLI command search repos, not systems
- Koan 1.4.3
- Fri Mar 06 2009 -- 1.4.3
- (SPEC) reduce python version requirements for EL2 (--replace-self only)
- (BUGF) fix traceback in import when using --kickstart option
- (BUGF) don't require ImageParser, allowing --virt to still work on
older EL
- (BUGF) manpage fixes (remove missing --virt-ram option from manpage)
- (BUGF) fixes for LVM partitions using hypens, and LVM selinux fixes
- Thu Feb 12 2009 Michael DeHaan <mdehaan(a)redhat.com> - 1.4.2
- (BUGF) make LVM storage work regardless of localization
- (BUGF) patch to make --update-files create directories if they don't exist
If you don't want to wait for Fedora's yum or EPEL testing, you can get
src rpms at: http://people.fedoraproject.org/~mdehaan/files/cobbler/
As always, thanks to everyone that helped with this release. Couldn't
do it without you.
My plan is to now merge devel (1.5.0) into master, relabel it 1.6, and
get it ready for release in the next few weeks.
All new features will still go to devel though this will be repurposed
as the 1.7 branch.
--Michael
15 years, 2 months
[PATCH] fix get_settings None
by Bill Peck
SSIA
>From d5b49196b24e0f10a1d27cff44bdad3089a9f435 Mon Sep 17 00:00:00 2001
From: Bill Peck <bpeck(a)redhat.com>
Date: Fri, 6 Mar 2009 12:15:09 -0500
Subject: [PATCH] fix get_settings to pass correct data to xmlrpc_hacks
---
cobbler/remote.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/cobbler/remote.py b/cobbler/remote.py
index d193571..836b69a 100644
--- a/cobbler/remote.py
+++ b/cobbler/remote.py
@@ -299,10 +299,9 @@ class CobblerXMLRPCInterface:
Return the contents of /etc/cobbler/settings, which is a hash.
"""
self._log("get_settings",token=token)
- results = self.api.settings()
+ results = self.api.settings().to_datastruct()
self._log("got settings")
- data = results.to_datastruct()
- self._log("my settings are: %s" % data)
+ self._log("my settings are: %s" % results)
return self.xmlrpc_hacks(results)
def get_repo_config_for_profile(self,profile_name,**rest):
--
1.6.0.6
15 years, 2 months
[PATCH] Add option to define a Spacewalk management server at the distro/profile/system level
by Robert Lazzurs
Hello everyone,
I have written a small patch to add the ability to define a
spacewalk/rhn management server at the distro/profile/system level
rather than just at the global level in the configuration file. This
was requested last weekend and I see it being useful for the case of
ISPs with shared cobbler systems where a customer however has full
control of their own spacewalk server.
This should inherit from the configuration file and all the way down
to the system unless the value has been defined.
I have tested this as much as I can without a spacewalk server here so
please let me know if you find any bugs :)
The patch has been pushed up to my github account on the lazzurs-devel
branch which can be found here:
http://github.com/lazzurs/cobbler/tree/lazzurs-devel
As this is my first time using github please let me know if there is
anything else I need to do.
Take care.
15 years, 2 months
[PATCH] Only write pxe targets for x86-based distros
by James Laska
---
cobbler/pxegen.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index 731d727..7ff0780 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -627,7 +627,7 @@ class PXEGen:
continue
distro = profile.get_conceptual_parent()
# xen distros can be ruled out as they won't boot
- if distro.name.find("-xen") != -1:
+ if distro.name.find("-xen") != -1 or distro.arch not in ["i386", "x86_64"]:
# can't PXE Xen
continue
contents = self.write_pxe_file(None,None,profile,distro,distro.arch,include_header=False)
--
1.6.0.6
15 years, 2 months
command 'cobbler repo find ' doesn't work
by Cai Kevin
Hi,
"cobbler repo find" command doesn't work
modules/cli_repo.py called wrong api (find_system) to complete the find job, (should be find_repo).
--
Best Regards
Kevin Cai
-----------------------------------------------------
Tell: 86-21-60951100 x 2236
2F&3F, Block 2, No. 252, SongHu Road, Shanghai, China
15 years, 2 months
[devel] Search in the webapp, about 90% done
by Michael DeHaan
I'm in the process of adding search in the web app.
What will happen is for each type of object there will be a search
page. For each search page there will be several (at least 3) drop
downs where you can pick fields that you want to search on. To the
right of each field there will be a text area that accepts wildcarded
strings or exact matches.
You pick which fields you want to search on, press search, and are taken
to the results that match the search.
For instance I could pick:
name: "k*" # any distro starting with k
kernel: "*/released/*" # any kernel filename with a subdirectory
containing released.
The intent is to make /all/ fields of the objects searchable, which
should be very nice to have.
I have this working for distributions presently for those that want to
experiment (devel branch latest), and will add the multi-field support
and populate the rest of the field choices in the next few days.
Given this rounds out 1.5 with a lot of nice new features (registration,
web search, anaconda monitoring, s390 support for new slice installs,
email trigger) my intent is to release 1.4.2 as soon as possible
(pending testing) probably Friday or Monday, and then start getting 1.5
into QA mode for a release in a couple of weeks.
--Michael
15 years, 2 months
[devel] new search APIs, web app search pending
by Michael DeHaan
Coming soon to the devel branch:
import xmlrpclib
s = xmlrpclib.Server("http://127.0.0.1/cobbler_api")
print s.find_distro({"name":"a*"},False) # get
all distro /names/ starting with a
print s.find_distro({"kernel":"/mnt*"},False ) # get
all distro /names/ with kernels living on /mnt
print s.find_system({"ip_address":"192.168.*.*"},True) # get /full
data/ for all systems with IPs matching these wildcards.
There will also be "find_profile, find_system, find_image, and
find_repo", so it will work just like the Python API.
You can also specify more than one criteria, in which case this works as
an AND query (both criteria must be met).
The very next step after this is to teach the web app how to search for
this data.
The wildcard search, as with the Python API already, and command such as
"cobbler system find", are fnmatch based, similar to Unix shell
patterns. They are not regular expressions.
--Michael
15 years, 2 months