cobbler with no local mirroring?
by Matthew Miller
I know, installation server with batteries included... but we've got this
connection to the power grid already up and running and would like to use
that but still use cobbler. :)
Basically, we've got a mirror server already. It has plenty of resources,
and it's set up to automatically sync and so on. I'd therefore like to avoid
duplicating effort (and wasting disk space) in cobbler, and point entirely
at that remote mirror. The "Non-Import (Manual) Workflow" with
--mirror-locally=N seems to get us part way there, but we still need to do
things like "distro add" pointing to local kernel/initrd files
This can't be that uncommon of a use case, can it? I must be missing
something. Is there a secret way to distro add (or better yet "cobbler
import") with the equivalent of --mirror-locally=N?
Thanks!
(Oh, related question: if one is doing --mirror-locally=N, does cobbler
reposync do anything?)
--
Matthew Miller mattdm(a)mattdm.org <http://mattdm.org/>
13 years, 9 months
cobbler profile add --parent doesn't seem to inherit distro properly (v2.0.3)
by Msquared
Hi!
I have a (CentOS 5.4) machine that's running Cobbler 2.0.3, which was
upgraded from Cobbler 1.6.x. Now I can't create any sub-profiles that work.
My first problem was that "--inherit" doesn't seem to exist in Cobbler 2,
but it looks like "--parent" has taken its place.
Now onto the main problem.
With Cobbler 1.6.x, I could create a sub-profile like so:
cobbler profile add \
--name=core-vm \
--inherit=centos-5-4-xen-x86_64 \
--kickstart=/var/lib/cobbler/kickstarts/sample.ks \
--repos="centos-5-x86_64-base centos-5-x86_64-extras centos-5-x86_64-updates epel-5-x86_64" \
--name-servers=192.168.1.254 \
--name-servers-search=mydomain.com.au \
--virt-ram=768 \
--virt-file-size=12 \
--virt-path=vgvirt
After the upgrade to Cobbler 2, I tried to create a similar sub-profile,
like so:
cobbler profile add \
--name=core-vm-test \
--parent=centos-5-4-xen-x86_64 \
--kickstart=/var/lib/cobbler/kickstarts/sample.ks \
--repos="centos-5-x86_64-base centos-5-x86_64-extras centos-5-x86_64-updates epel-5-x86_64" \
--name-servers=192.168.1.254 \
--name-servers-search=mydomain.com.au \
--virt-ram=768 \
--virt-file-size=12 \
--virt-path=vgvirt
The sub-profile appears to have been created OK, but in the WUI the new
sub-profile has an empty Distro:
Name Distro Actions
centos-5-4-x86_64 centos-5-4-x86_64 Edit ...
centos-5-4-xen-x86_64 centos-5-4-xen-x86_64 Edit ...
core-vm <<inherit>> Edit ...
core-vm-test Edit ...
rescue-centos-5-4-x86_64 centos-5-4-x86_64 Edit ...
When I try to use koan to create a VM based on the new sub-profile, it
fails:
[root@kane ~]# koan --virt --server=cobbler --system=testserv3 --static-interface=eth0
- looking for Cobbler at http://cobbler/cobbler_api
- reading URL: http://192.168.1.11/cblr/svc/op/ks/system/testserv3
install_tree: http://192.168.1.11/cblr/links/centos-5-4-xen-x86_64
libvirtd (pid 3593) is running...
downloading initrd initrd.img to /var/lib/xen/initrd.img
url=http://cobbler/cobbler/images/~/initrd.img
- reading URL: http://cobbler/cobbler/images/~/initrd.img
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/koan/utils.py", line 130, in urlread
fd = urllib2.urlopen(url)
File "/usr/lib64/python2.4/urllib2.py", line 130, in urlopen
return _opener.open(url, data)
File "/usr/lib64/python2.4/urllib2.py", line 364, in open
response = meth(req, response)
File "/usr/lib64/python2.4/urllib2.py", line 471, in http_response
response = self.parent.error(
File "/usr/lib64/python2.4/urllib2.py", line 402, in error
return self._call_chain(*args)
File "/usr/lib64/python2.4/urllib2.py", line 337, in _call_chain
result = func(*args)
File "/usr/lib64/python2.4/urllib2.py", line 480, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 404: Not Found
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/koan/app.py", line 1024, in get_distro_files
utils.urlgrab(initrd,initrd_save)
File "/usr/lib/python2.4/site-packages/koan/utils.py", line 161, in urlgrab
data = urlread(url)
File "/usr/lib/python2.4/site-packages/koan/utils.py", line 143, in urlread
raise InfoException, "Couldn't download: %s" % url
InfoException: "Couldn't download: http://cobbler/cobbler/images/~/initrd.img"
error downloading files
[root@kane ~]#
It looks like its missing the distro component of the path to the initrd
image: http://cobbler/cobbler/images/~/initrd.img
I'm sure there should be a distro name where the '~' is.
If I create a VM based on the original sub-profile (created with Cobbler
1.6.x), then it works fine. I can even create a copy of a sub-profile, and
use that as the basis for a system; that system will also install fine.
Any ideas where to start with this?
Is this a regression, or have I missed something that's different with
Cobbler 2?
Regards, Msquared...
13 years, 11 months
Cobbler update for F13?
by Ronald J. Yacketta
Hello all!
Just checking in to see if / when there will be an update for cobbler to
support the pending F13 release
-Ron
13 years, 11 months
Including python in kickstarts
by Chris Sarginson
Hi,
Has anyone got any documentation, hints or samples of python inside a kickstart? Specifically I need to connect to a MySQL db when displaying the kickstart to pull some information from a database that will be used to configure the servers settings, and I'm having some trouble getting to grips with it.
Cheers
Chris
13 years, 11 months
Creating and using Custom YUM Repos with Cobbler?
by lists@truthisfreedom.org.uk
Hi all,
I'm using cobbler with Puppet and so far it's going really well using
cobbler for class management.
I've run into an issue whereby I need to install custom RPMS on boot
using cobbler and the only way I can currently find to do this is to
setup a custom repo (using mrepo or similar) then put that as a mirror
in cobbler and let cobbler "import" the files and the repo.
Is there any way to have cobbler perform the initial creation of the
repo and then publish packages straight into the repo that is managed by
cobbler?
If that's not clear, let me know and I'll do my best to explain further!
Thanks in advance,
Matt.
13 years, 11 months
New profile and kickstart
by Marcelo Garcia
Hi
I created a new profile[1] to make a minimal install using a kickstart.
When I boot up the client, I see the profile, but after a while the
installation fails because it could not find the kickstart file in
"http://127.0.0.1/cblr/svc/op/ks/profile/centos_64_minimal".
(1) Which URL is this? (2) Why is looking for a kickstart with the name
of the profile if I specified the name of the kickstart file:
"minimal-ks.cfg"?
Thanks
Marcelo
[1]
[root@tannat ~]# cobbler profile add --name="centos_64_minimal"
--distro=CentOS-5.4-x86_64
--kickstart=/var/lib/cobbler/kickstarts/minimal-ks.cfg
13 years, 12 months
Cobbler and Solaris
by mark@proseconsulting.co.uk
BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }
We're considering Cobbler for the provisioning of RHEL and Solaris
hosts. The RHEL bit is easy. However, the question has arisen - how
easy would it be to set-up Cobbler so that it could produce the
necessary Solaris x86 PXE stuff, and JumpStart configuration (the
latter for both x86 and SPARC).
A quick trawl of the web reveals sparse discussion of this subject,
and a statement on 24th Feb 2009 from icontender "I think it would be
really difficult to add direct solaris support. The jumpstart
architecture is really advanced and is able to do many things that
Kickstart cannot." Mind you, that comment related to JET, which is a
JumpStart add-on that we wouldn't be using.
Has any work been put into this in Cobbler yet? Do you know of
anyone who is using Cobbler in this way? What are your general
thoughts on the future of Cobbler for non-Linux platforms?
Thanks in advance for any advice you can offer me on the above.
Best regards,
Mark Bannister.
Developer of the PROSE Progarmming Language
w: http://prose.sourceforge.net [1]
Links:
------
[1] http://prose.sourceforge.net/
14 years
Message in syslog
by Marcelo Garcia
Hi
Everyday if found the following message in my logwatch:
error: stat of /var/log/cobbler/tasks/*.log failed: No such file or
directory
Is this a problem or just a annoyance?
I'm using CentOS-5.4 (amd64), with cobbler-2.0.3.1-3.el5.
Thanks
Marcelo
14 years
Re: Updated menu.c32
by Steven L. Seed
I'm experiencing this same problem with menu.c32 and localboot. In
your posting, you mention changing the real mode segments. I'm not
familiar with this. Can you explain?
Updated menu.c32
Vreman, Peter - Acision peter.vreman atacision.com
Tue Mar 3 15:39:55 UTC 2009
Previous message: Updated menu.c32
Next message: 'cobbler import' error: local variable 'datestamp'
referenced before assignment
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> I've had this problem in the past, on RHEL4.2 systems. Updating to
the
> syslinux provided by at least 4.4 I think was the solution in my
case.
> Peter, when you file your bug, could you also be sure to include
the OS
> version and the previous syslinux version (if you remember it)?
The bug I'm having is not menu.c32 related as I thought. The problem
is that only localboot is not working. All other network-boot entries
are working.
It is a generic HP Proliant-pxelinux problem, see also http://www.gossamer-threads.com/lists/syslinux/users/8742
.
I have tested with the latest syslinux pxelinux.0. When I change the
real mode segments to 5000h-6000h-7000h then I can can also use the
localboot.
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.
=•=•=•=•=•=•=•=
Steven.Seed(a)disneyanimation.com
=•=•=•=•=•=•=•=
Steven.Seed(a)disneyanimation.com
14 years