Call for help: testing RPM packages
by Jörgen Maas
Hey all,
Just finished some work on packaging Cobbler for multiple distro's and
versions.
This work is targeted on 2.5.0 (master) which will be the 2.6.0 release
rather soonish.
There are currently packages for:
- CenOS 6
- RHEL 6
- Fedora 18, 19, 20
- openSUSE 12.3, 13.1, Factory
Please checkout out:
http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler-mas...
I suspect there needs a lot to be done polishing these packages!
Also, this should be a convenient way of testing Cobbler-next.
Any feedback is very much appreciated!
Thanks!
--
Jörgen Maas
10 years, 2 months
Creating host on cobbler using API
by pretish tripathi
Hello Everybody
Using the get_system, I can store the *host* information in a perl Hash, Now I would like to modify this Hash and use it to edit/create a new machine. Now after editing the Hash, if I get a system handle using get_system_handle, and pass that object to modify_system, is is possible to pass the entire system hash to modify_system ?
R
B
10 years, 2 months
Re: [cobbler-devel] ESXi 5.x boot.cfg issues
by Speagle , Andy
Ok,
In response to my own question... I figured it out. It doesn't look like a sync is calling "generate_bootcfg" at all... and instead this is just being handled in pxegen.write_templates instead. I modified that method to handle scraping the "real" boot.cfg to grab the modules. Here's a patch... though I'm a python hack. It works, but you may want to clean it up:
--- pxegen.py 2014-02-18 22:49:55.749451747 -0600
+++ pxegen.py.new 2014-02-18 22:50:33.479452153 -0600
@@ -814,6 +814,12 @@
blended = utils.blender(self.api, False, obj)
+ if obj.os_version.startswith("esxi5"):
+ realbootcfg = open(os.path.join(os.path.dirname(obj.kernel),'boot.cfg')).read()
+ bootmodules = re.findall(r'modules=(.*)',realbootcfg)
+ for modules in bootmodules:
+ blended['esx_modules'] = modules.replace('/','')
+
ksmeta = blended.get("ks_meta",{})
try:
del blended["ks_meta"]
Thanks,
Andy Speagle
From: Speagle , Andy
Sent: Tuesday, February 18, 2014 5:27 PM
To: 'cobbler-devel(a)lists.fedorahosted.org'
Subject: ESXi 5.x boot.cfg issues
Hi Jörgen,
I've been working on getting ESXi 5.x ISOs imported into Cobbler and this seems to work well. However, this doesn't work well for those cases where new or updated drivers or software has been injected into the ISO via VMware's PowerCLI mechanism for this. The reason for this is that the bootcfg*.template files have a hard-coded list of modules that are used to create the cobbler-boot.cfg file. This list of modules should instead be scraped from the real boot.cfg that's part of the ISO in order to cover the case where things have been injected into the stock ISO.
The only place this appears to be handled is by the "generate_bootcfg" method in pxegen.py ... but, I'm having some trouble getting this functionality to work.
I added this little bit of code to "generate_bootcfg" in pxegen.py ...
realbootcfg = open(os.path.join(os.path.dirname(distro.kernel),'boot.cfg')).read()
bootmodules = re.findall(r'modules=(.*)',realbootcfg)
for modules in bootmodules:
blended['esx_modules'] = modules.replace('/','')
And replaced the hard-coded modules in /etc/cobbler/pxe/bootcfg_esxi55.template with $esx_modules
But... something's not quite right, it's not seeing that I set blended['esx_modules'] ... so, perhaps the generate_bootcfg method isn't where this work is done...
Could you offer some insight, please?
Thanks,
Andy Speagle
10 years, 2 months
ESXi 5.x boot.cfg issues
by Speagle , Andy
Hi Jörgen,
I've been working on getting ESXi 5.x ISOs imported into Cobbler and this seems to work well. However, this doesn't work well for those cases where new or updated drivers or software has been injected into the ISO via VMware's PowerCLI mechanism for this. The reason for this is that the bootcfg*.template files have a hard-coded list of modules that are used to create the cobbler-boot.cfg file. This list of modules should instead be scraped from the real boot.cfg that's part of the ISO in order to cover the case where things have been injected into the stock ISO.
The only place this appears to be handled is by the "generate_bootcfg" method in pxegen.py ... but, I'm having some trouble getting this functionality to work.
I added this little bit of code to "generate_bootcfg" in pxegen.py ...
realbootcfg = open(os.path.join(os.path.dirname(distro.kernel),'boot.cfg')).read()
bootmodules = re.findall(r'modules=(.*)',realbootcfg)
for modules in bootmodules:
blended['esx_modules'] = modules.replace('/','')
And replaced the hard-coded modules in /etc/cobbler/pxe/bootcfg_esxi55.template with $esx_modules
But... something's not quite right, it's not seeing that I set blended['esx_modules'] ... so, perhaps the generate_bootcfg method isn't where this work is done...
Could you offer some insight, please?
Thanks,
Andy Speagle
10 years, 2 months
Cobbler Wiki
by Jörgen Maas
Hey all,
Just wanted to let you know that i (nearly) finished deleting all content
on the wiki which is also in the manual. Some missing pages have been moved
into the relevant manual (eg. release notes).
Now that the overlap between the manual and wiki has been removed we can
better focus on further improving the official documentation.Generic
documentation describing the Cobbler framework & features should go in the
manual whereas the wiki can be used by users to document how they use
Cobbler to solve specific problems.
I'd like to invite the community to document and share their use-cases,
experiences and solutions using Cobbler!
--
Grtz,
Jörgen Maas
10 years, 2 months
Cobbler 2.4.1 released
by Jörgen Maas
Hey all,
It has been quiet for way too long, so i decided to get the ball rolling
again and cut the release for Cobbler 2.4.1. This release contains mostly
bug fixes and minor enhancements to existing features.
Improved Features:
- Many distro_signatures updates
- Anamon logfile support has been extended
- Allow the use of systems without associated kickstart
- Koan now supports the qed disk driver
- Automatic cobbler_web restart after cobblerd restart
- Improved Puppet certificate management
- Cobbler replication now supports ssl
- Koan gained support for --proxy & --server options
- Xen guest provisioning in koan
- Added a Cobbler post install report ignorelist
- Authentication token expiration time is now configurable
- Autentication passthru is now again functional
- SELinux detection in koan
Bugfixes:
- Improved logging and exception handling in many places
- Several fixes for running Cobbler on OpenSUSE and SLES
- Better proxy handling in buildiso
- Concurrency/locking improvements
- Removed some hardcoded paths, making life easier for downstream
packagers
- Add missing (sub)commands to the CLI
- Several Makefile fixes
- Small improvements to cobbler-web
- Many fixes to koan
- Several WSGI related improvements
- Many more...
I'd like to invite everyone to help us out by targeting bugs in the 2.4
branch and/or develop new features on the master branch (which will be
released as 2.6.0 in a couple of weeks).
Cheers,
Jörgen
10 years, 2 months