Cobbler 2.0 reposync
by Adam Stephens
We use cobbler to mirror a select set of packages from EPEL. After upgrading
to 2.0, the locally generated repo is invalid. If I run createrepo after
cobbler's reposync it creates a valid repo and my systems are able to use
it.
Here is the error:
cobbler-EPEL-5Server-x86_64
| 3.4 kB 00:00
http://cobbler.sysops.oit.ohio.edu/cobbler/repo_mirror/EPEL-5Server-x86_64/r
epodata/9062aefcd21aea9c61635c508ea4babbd4db3359-primary.sqlite.bz2: [Errno
14] HTTP Error 404: Not Found
Thanks,
-adam
14 years, 8 months
2.0 spec file
by Derek T. Yarnell
Since the SRPM isn't working for me from (guessing it is F11 SHA256
stuff),
http://people.fedoraproject.org/~mdehaan/files/cobbler/testing/
# rpm -ivh cobbler-2.0.0-1.src.rpm
1:cobbler
########################################### [100%]
error: unpacking of archive failed on file /usr/src/redhat/SOURCES/
cobbler-2.0.0.tar.gz;4ab905d3: cpio: MD5 sum mismatch
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Can you post the spec file that you are building with? Or am I
unaware of another way around this.
Thanks,
derek
Derek Yarnell
UNIX Systems Administrator
University of Maryland
Institute for Advanced Computer Studies
14 years, 8 months
Documentation Change
by Christopher Dale
Just an FYI that the Fedora repo info for Koan is:
koan.noarch : Network provisioning tool for Xen and Bare Metal Machines
Should this also include KVM?
14 years, 8 months
Cobbler 2.0 WebUI error.
by Jeremy Rosengren
Upon connecting to http://<server>/cobbler_web, I'm seeing an error. I
couldn't find anything relevant in the mailing lists leading up to 2.0
release, so I've probably got something wacky in my setup. Can anyone shed
any light on what's going on here?
(Apologies in advance if copy-n-paste blows up the error page below. If it
does, I'll resend a copy that's not formatted.)
Thanks,
-- jeremy
AttributeError at /cobbler_web/
'NoneType' object has no attribute 'version'
Request Method:GETRequest URL:http://srvr/cobbler_web/Exception Type:
AttributeErrorException Value:
'NoneType' object has no attribute 'version'
Exception Location:/usr/share/cobbler/web/cobbler_web/views.py in index,
line 58Python Executable:/usr/bin/pythonPython Version:2.4.3Python
Path:['/usr/share/cobbler/web/',
'/usr/lib/python24.zip', '/usr/lib/python2.4',
'/usr/lib/python2.4/plat-linux2', '/usr/lib/python2.4/lib-tk',
'/usr/lib/python2.4/lib-dynload', '/usr/lib/python2.4/site-packages',
'/usr/lib/python2.4/site-packages/Numeric',
'/usr/lib/python2.4/site-packages/gtk-2.0']Server time:Sat, 19 Sep 2009
05:01:54 +0000
Traceback Switch to copy-and-paste view <http://srvr/cobbler_web/#>
- /usr/lib/python2.4/site-packages/django/core/handlers/base.py in
get_response
1. response = callback(request, *callback_args, **callback_kwargs) ...
▶ Local vars <http://srvr/cobbler_web/#>
- /usr/share/cobbler/web/cobbler_web/views.py in index
1. html = t.render(Context({ ...
▶ Local vars <http://srvr/cobbler_web/#>
14 years, 8 months
gPXE support
by Paul Company
Has anyone used gpxelinux.0 with cobbler?
Is there any discussion about supporting gpxelinux.0?
http://www.youtube.com/watch?v=GofOqhO6VVM
Google implemented a TCP/IP stack into gPXE, which allowed
gPXE to boot over HTTP, or a SAN (iSCSI or AoE) - gPXE also supports TFTP.
You can find precompiled gPXE images (roms) on http://rom-o-matic.net/
You can also "chainl load" gPXE if there's no direct support.
There's also something called gpxelinux.0 which is supposedly included
in syslinux but I can't find it.
gPXE frees you from the subnet (TFTP).
gPXE allows you to boot off of an arbitrary (HTTP) URL.
gPXE doesn't free you from DHCP.
Paul
14 years, 8 months
Trac missing a 2.0 version
by Jim Wildman
I know you don't expect any bugs ( :-) ) but it would be good to have a
2.x tag in Trac just in case.
----------------------------------------------------------------------
Jim Wildman, CISSP, RHCE jim(a)rossberry.com http://www.rossberry.com
"Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one."
Thomas Paine
14 years, 8 months
Sending email after a successful cobbler install
by Paul Company
I'm trying to modify cobbler so it sends out two emails after a
successful install.
Here's what I did to try to accomplish this - but it didn't work.
I get the first (default) email, but I don't get the second email.
Any ideas.
# vi /etc/cobbler/reporting/build_my_report_email.template
From: $from_addr
To: pcompany(a)mydomain.com
Subject: "Installed bar.baz.mydomain.com"
USER=($user)
NEWHOST=[$system_name]
:wq!
# vi /usr/lib/python2.4/site-packages/cobbler/modules/install_post_report.py
## I added the following to the bottom of this file, before the "return 0"
input_template = open("/etc/cobbler/reporting/build_my_report_email.template")
input_data = input_template.read()
input_template.close()
message = templar.Templar().render(input_data, None, None)
server_handle = smtplib.SMTP(smtp_server)
server_handle.sendmail(from_addr, "pcompany(a)mydomain.com", message)
server_handle.quit()
:wq!
14 years, 8 months
Dependency error when installing cobbler on RHEL 5.4
by Paul Company
I'm trying to install cobbler on RHEL 5.4 production machine.
# yum install cobbler --enablerepo=epel
Error: Missing Dependency: python = 2.4.3-24.el5_3.6 is needed by
package python-devel-2.4.3-24.el5_3.6.i386 (rhel-ops)
# rpm -qa | grep ^python-2
python-2.4.3-27.el5
So it's complaining that it needs version 2.4.3-24 and I have version 2.4.3-27.
Does anyone know of an issue with forcing this install.
I would think that it should work but I always worry when an install
complains/fails.
Paul
14 years, 8 months
cobbler and managing repostories
by Eric Doutreleau
i m using cobbler and i m wondering how people use the reposync fonction.
I have the following problem.
when i use cobbler reposync the updates are immediately available for
the machine to do the updates.
I would like to have a staging area where i can validate first the
update on a test machine and after pushing them
in the cobbler infrastructure.
Has someone already done some thing like that with cobbler?
14 years, 8 months
Cobbler support for a proposed 'reposync' feature: link instead of downloading, if possible.
by Ryan Lynch
I'm working on a yum-utils patch to the 'reposync' utility that might
have an interesting connection with Cobbler's YUM repo mirroring and
hardlink-creation functions.
My 'reposync' patch adds a command-line option ('--package-cache
<PATH>') in which it looks for any existing local RPM files. Before
trying to download an RPM file, 'reposync' checks whether a file
matching that name, size, and checksum already exists, locally. If
so, 'reposync' will hard link to the existing file instead of
downloading a new copy. Multiple '--package-cache' options will work
fine, if you want to check against multiple directories. The search
for existing RPMs is recursive, and it follows directory symlinks but
not file symlinks.
The patch also implements an option to create symlinks to RPMs in
cases where hard links won't work--for instance, when there are local
RPM files on a loopback-mounted ISO.
Cobbler couldn't integrate this without a little work, though, since
it don't think the 'cobbler reposync' action allows us to pass
arbitrary options to 'reposync', either globally or on a per-repo
basis. (Correct me if I'm wrong, here--I'm using whatever version is
packaged in the current stable F11 repos.) Right now, I'd like to add
a per-repo config directive that accepts one ore more strings; each
string gets expanded to a list of directories as if you'd ran `find
<STRING> -mindepth 1 -maxdepth 1 -type d`; for each directory PATH,
Cobbler passes a '--package-cache <PATH>' option to 'reposync'. I'd
also like to have a boolean flag for the symlink option.
The 'reposync' patch is currently in a working state, and I'd like to
see it accepted soon, but I can't really say if/when that will happen.
I posted a copy to the YUM mailing list, earlier tonight, if anyone
wants to take a look.
Assuming the 'reposync' patch is accepted, does this seem like an
appropriate functionality for Cobbler? I think it would augment the
existing 'hardlink' support nicely, since it lets us take advantage of
existing copies to save downloading time/bandwidth as well as storage
space. If there's a decent chance that Cobbler would accept it, I'd
probably start drafting a patch, soon.
Ryan B. Lynch
ryan.b.lynch(a)gmail.com
14 years, 8 months