repo_config_stanza
by Corey Kovacs
Folks,
I upgraded my cobbler install from 2.0.11 to 2.2.1 and now
repo_config_stanza produces an empty file.
Also, it used to be that a RHEL5 kickstart had all of the sub repos
included. Now I get nothing but the base.
Has anyone else noticed this?
Corey
12 years, 8 months
Red Hat Bugzilla – Bug 746053: yum-rhn-plugin busted: Repository rhel-x86_64-server-5 is listed more than once in the configuration
by Dan White
Red Hat Enterprise 5.7 x86_64 kernel 2.6.18-274.3.1.el5
yum-rhn-plugin.noarch-0.5.4-22.el5_7.2
Running a cobbler-built local repository mirror for cobbler/PXE/Kickstarting
systems. There are third party repos and a custom repo of locally required
packages.
After an update that changed me from yum-rhn-plugin-0.5.4-22.el5 to
yum-rhn-plugin-0.5.4-22.el5_7.2, I started getting failure on any yum command
with the message "Repository rhel-x86_64-server-5 is listed more than once in
the configuration".
I found the following workarounds:
* disable yum-rhn-plugin by using "--disableplugin=rhnplugin" on the command
line
* downgrade to yum-rhn-plugin-0.5.4-22.el5 (yum-rhn-plugin-0.5.4-22.el5_7.1 has
the same issue) and put "exclude=yum-rhn-plugin" in /etc/yum.conf
It looks like an old bug crawled back into yum-rhn-plugin
Ref: <https://access.redhat.com/kb/docs/DOC-15495>
-----------------------------------------------------
Secondary question: Is there a way I can lock out the offending versions of yum-rhn-plugin from my local mirror until RH fixes the problem ?
I am trying removing the RPMs from the repo_mirror, put "exclude=yum-rhn-plugin" in /etc/yum.conf and trying a "cobbler reposync"
I will report back my results.
“Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.”
Bill Waterson (Calvin & Hobbes)
12 years, 8 months
SNIPPET Integration issues
by Idan Shinberg
Hello
I'm a heavy user of post Installation Code in the kickstart File.
Due to multiple profiles requirements , I've decided to devide my post
installation code into various cobbler SNIPPETS.
The problems I'm having is that whenever I try to use cheetah(python)
#if-else macros the snippet doesn't get translated at all.
( though If I put syntax errors and do cobbler profile getks it would
scream about parsing them.
For example:
my kickstart is centos.ks.inside , it has the following snippet :
$SNIPPET('add_mounts')
/var/lib/cobbler/snippets/add_mounts contains:
#if profile == 1
echo "nfs.servers:/mount_1 mount_1 nfs defaults 0 0" >> /etc/fstab
#end if
Using it results and issuing cobbler profile getks ... results in just
"$SNIPPET('add_mounts')" being written to stdout , instead of the
snippet content
however , if I remove the #if macro , I get :
echo "nfs.servers:/mount_1 mount_1 nfs defaults 0 0'
as desired ...
Cobbler Version : 2.0.11
OS-Version : CentOs 5.5
Kernel Version : 2.6.18-194.3.1
Python Version : 2.4.3
Any help is appreciated ...
Thanks
--
| Idan Shinberg | IT Manager | Superfish.com | idan(a)superfish.com
I discover products using Superfish visual search.
12 years, 8 months
cobbler replicate between versions
by Steven Goodliff
Hi,
I was trying to install cobbler on a new server and installed cobbler-2.2.1-1.el5 but hit a problem when trying to replicate against cobbler-2.0.11-2.el5,
In this file /usr/lib/python2.4/site-packages/cobbler/action_replicate.py commenting out the line below and replacing it with a small set of object types does the tick
""" OBJ_TYPES = [ "distro", "profile", "system", "repo", "image", "mgmtclass", "package", "file" ] """
OBJ_TYPES = [ "distro", "profile", "system", "repo", "image" ]
My python skills are non existant but it seems to do the job so far, the small set matches the same python file in the 2.0.11 version
Hope that helps someone.
Steve
The information contained in this email is confidential and may also be subject to legal privilege. It is intended only for the recipient(s) named above. If you are not named above as a recipient, you must not read, copy, disclose, forward or otherwise use the information contained in this email. If you have received this e-mail in error, please notify the sender (whose contact details are above) immediately by reply e-mail and delete the message and any attachments without retaining any copies. Gaming Technologies Solutions Limited is a company registered in England and Wales with the company number 5425266, the registered office is 55 Baker Street, London, W1U 7EU Virtue Fusion (Alderney) Ltd is a company registered in Alderney with the company number 1628, the registered office is Kington Lodge, Le Grand Val, Alderney, GY9 3XD, British Channel Islands
12 years, 8 months
A very basic question
by Kashif Mohammad
Hi
It may be very basic question. Probably I am getting some thing wrong. I have installed cobbler-2.2.1-1 on a fedora machine. Cobbler check is giving almost no error. But when I try to import
cobbler import --path=rsync://rsync.mirrorservice.org/download.fedora.redhat.com/pub/fedora/linux/releases/14/Fedora/x86_64/os/ --name=F14
task started: 2011-10-14_114038_import
task started (id=Media import, time=Fri Oct 14 11:40:38 2011)
scanning rsync://rsync.mirrorservice.org/download.fedora.redhat.com/pub/fedora/lin... for a redhat-based distro signature
*** TASK COMPLETE ***
It finishes in seconds and nothing is actually syncd.
Thanks
Kashif
12 years, 8 months
Cobbler read-only access with perl and XMLRPC
by Sean Carolan
Hello friends:
Could someone post a simple example of how to access the XMLRPC
interface using perl? I'm able to do this just fine with Python but
would also like to be able to do it with Perl as well. The example
given on this page uses a session token, which I'd like to avoid:
http://fedorahosted.org/cobbler/wiki/CobblerXmlrpc
<code>
#!/usr/bin/perl
use strict;
use XMLRPC::Lite;
# Build the connection
my $xmlrpc = XMLRPC::Lite -> proxy('https://x.x.x.x/cobbler_api_rw');
# Login to cobbler xmlrpm and get session token back.
my $token = $xmlrpc->login("cobbler-xmlrpc-user",
"cobbler-xmlrpc-pass")->result();
# Create new system object
my $object = $xmlrpc->new_system($token)->result();
$xmlrpc->modify_system($object, "name", "example", $token)->result();
$xmlrpc->modify_system($object, "profile", "F8-i386", $token)->result();
# Commit the system object
my $result = $xmlrpc->save_system($object, $token)->result();
</code>
Basically all I want to do is be able to pull distros, profiles,
systems, etc. into my Perl program. Forgive my ignorance on this
topic; my Python skills are a lot stronger, and I wasn't able to find
any documentation on using Perl with XMLRPC.
thanks
Sean
12 years, 8 months
[ANNOUNCE] Cobbler 2.2.0 released
by James Cammarata
Cobbler 2.2 has been tagged and released, with RPMS built and
available in EPEL-testing now. This release incorporates a ton of new
features:
* Import modules, which allowed easy integration of...
* Ubuntu and Debian support again!
* Better support for SuSE
* Support for FreeBSD
* Support for ESX 4+/ESXi
* Integration with the python TFTP server pytftpd
* "fetchable files" and "boot files" support for distros that need to
get more files from the TFTP server
* Faster sync using link cache
* Support for EFI grub booting
* Support for bridged interfaces
* WSGI instead of mod_python for the web interface.
* Lots of Web UI improvements
* A lot more I'm sure I missed when going through the change log
Bugfixes:
* Seriously way too many to list individually. Read the change log,
there were almost 1000 commits since the last release!
This will also start the new development period, in which we will
target a major release every 6 months. That means we should release
2.4 in April of 2012, with periodic updates to 2.2.x monthly for bug
fixes. February 6th of 2012 will mark the end of the development
period for 2.4, after which only bug fixes will be applied to the
master branch until 2.4 is released.
Thanks and enjoy!
12 years, 8 months
Use qcow2 format for virtual guests?
by Adam Huffman
Is there any way currently of specifying that new virtual guests
created with koan/cobbler should use the qcow2 disk format, instead of
raw images?
Adam
12 years, 8 months