Seeking feedback from build ISO users
by Jörgen Maas
Hi all,
I'm currently working on some patches regarding the cobbler buildiso feature.
Now i'm wondering who is using the netboot iso and the profiles as
provided in the boot menu, instead of the system records in the menu?
Could you also describe your use case, e.g. why are you using this
feature?
Any feedback would be greatly appreciated!
Thanks
--
Grtz,
Jörgen Maas
--
Grtz,
Jörgen Maas
12 years, 5 months
cobbler replicate issues
by Ronald J. Yacketta
Trying to replicate from cobbler 2.0.3.1 to cobbler 2.0.11 and keep
running into the following:
cobbler replicate --master=_MASTER_SERVER_ --distros=* --profiles=*
--systems=* --sync-all
...
Updating Objects Newer On Remote
Linking Distro f14-i386
Exception occured: exceptions.NameError
Exception value: global name 'base' is not defined
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 95,
in run
rc = self._run(self)
File "/usr/lib/python2.4/site-packages/cobbler/remote.py", line 210,
in runner
self.logger
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 782, in
replicate
sync_all = sync_all
File "/usr/lib/python2.4/site-packages/cobbler/action_replicate.py",
line 342, in run
self.link_distros()
File "/usr/lib/python2.4/site-packages/cobbler/action_replicate.py",
line 193, in link_distros
print _("- symlink creation failed: %(base)s, %(dest)s") % { "base"
: base, "dest" : dest_link }
!!! TASK FAILED !!!
distro report on the 2.0.3.1 shows
cobbler distro report --name=f14-i386
Name : f14-i386
Architecture : i386
Breed : redhat
Comment :
Initrd : /mnt/iso/f14/images/pxeboot/initrd.img
Kernel : /mnt/iso/f14/images/pxeboot/vmlinuz
Kernel Options : {}
Kernel Options (Post Install) : {}
Kickstart Metadata : {}
Management Classes : []
OS Version : fedora14
Owners : ['admin']
Red Hat Management Key : <<inherit>>
Red Hat Management Server : <<inherit>>
Template Files : {}
I had to modify codes.py to add fedora14 and fedora15 and restart cobbler
Thoughts?
-Ron
12 years, 5 months
Re: cobbler Digest, Vol 38, Issue 24
by schuurma
Hello to all.
I'm/we are using hardlinks to create snapshots van rpm downloads...
We pull daily the rpm's from the internet.
For deploying Fedora we use 3 stages:
1) incoming (repo_mirror) # from the internet, changes daily
2) testing (knmi_test) # copy'd once from incoming to testing
and then frozen !!! this is hardlink'd
3) production (knmi_all) # after acceptance the testing mirror is
copied once to the production repo.
I think cobbler needs some kind of system to make it possible to deploy
"OTAP" --- *Ontwikkeling Test Acceptatie en Productie*,
or *Development, Testing, Acceptance and Production*, (*DTAP*)
For that we must be able to revert back from Production tot
Acceptance/Testing fase...
With kind regards,
~remke
On 08/31/2011 02:00 PM, cobbler-request(a)lists.fedorahosted.org wrote:
> Send cobbler mailing list submissions to
> cobbler(a)lists.fedorahosted.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://fedorahosted.org/mailman/listinfo/cobbler
> or, via email, send a message with subject or body 'help' to
> cobbler-request(a)lists.fedorahosted.org
>
> You can reach the person managing the list at
> cobbler-owner(a)lists.fedorahosted.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of cobbler digest..."
>
>
> Today's Topics:
>
> 1. Re: repo management and snapshots (Gerhardus Geldenhuis)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 30 Aug 2011 14:25:11 +0100
> From: Gerhardus Geldenhuis <gerhardus.geldenhuis(a)gmail.com>
> Subject: Re: repo management and snapshots
> To: cobbler mailing list <cobbler(a)lists.fedorahosted.org>
> Message-ID:
> <CAATm_0rnhkUFRXT8=hz4vVoyRM7O_AGX8ZBtpeQ+mymCAZ3DhA(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thanks for the response.
> I was also thinking about a sym link or hard link approach to save disk
> space. There is a cobbler hard link command mentioned on some of the online
> docs but this is not mentioned in the man page that I was reading but might
> be due to the version I am using. See this hard link flag made me wonder if
> there were already a solution in place. If I put some more thought into
> this... would this be something that is useful other people and could
> potentially be implemented more generically?
>
> Regards
>
> On Tue, Aug 30, 2011 at 12:17 PM, Christian Horn <chorn(a)fluxcoil.net> wrote:
>
>> Hi,
>>
>> On Tue, Aug 30, 2011 at 12:08:44PM +0100, Gerhardus Geldenhuis wrote:
>>> I looked around through the documentation but could not get a description
>> of
>>> how to do "repo" snapshots. I might have missed it or not have a full
>> grasp
>>> or understanding yet but would appreciate anyone sharing thoughts on how
>> to
>>> do it.
>>>
>>> Very simply I want to be able using only cobbler to create a snapshot of
>> a
>>> repository and called it for example RH5.6-Feb which should contain the
>> base
>>> repo plus all updates that has been releases up until that point. I want
>> to
>>> be able to then create monthly snapshots for example and when I build a
>>> server build it against one of these snapshots. If you can already do
>> this
>>> in cobbler I would appreciate some guidance or if not if anyone could
>> share
>>> how they achieve this with cobbler.
>> I think this is not implemented, you should be able to do it yourself for
>> repos that you host (have locally as files):
>> - 'cp -r /part/repo /part/reposnapshot'
>> - 'cobbler repo copy ...' to make the snapshot known to cobbler
>>
>>
>>> You can do this in spacewalk but I am
>>> not sure how much is spacewalk and how much is cobbler and I am keen to
>> not
>>> re-invent the wheel. For various reasons at the moment unfortunately I
>> can't
>>> use spacewalk to manage this so the solution has to be native to cobbler.
>> Cobbler is maintaining the repo just as a whole, spacewalk knows about the
>> packages inside. That way a clone of a channel in spacewalk (what you call
>> snapshot) happens mainly in the database, without creating copies of files.
>>
>> I think you could be fine with the cobbler approach. This one needs more
>> diskspace, yet that could be reduced in creating hardlinks for files that
>> exist in multiple repos.
>>
>>
>> Christian
>> _______________________________________________
>> cobbler mailing list
>> cobbler(a)lists.fedorahosted.org
>> https://fedorahosted.org/mailman/listinfo/cobbler
>>
>
>
12 years, 6 months
repo management and snapshots
by Gerhardus Geldenhuis
Hi
I looked around through the documentation but could not get a description of
how to do "repo" snapshots. I might have missed it or not have a full grasp
or understanding yet but would appreciate anyone sharing thoughts on how to
do it.
Very simply I want to be able using only cobbler to create a snapshot of a
repository and called it for example RH5.6-Feb which should contain the base
repo plus all updates that has been releases up until that point. I want to
be able to then create monthly snapshots for example and when I build a
server build it against one of these snapshots. If you can already do this
in cobbler I would appreciate some guidance or if not if anyone could share
how they achieve this with cobbler. You can do this in spacewalk but I am
not sure how much is spacewalk and how much is cobbler and I am keen to not
re-invent the wheel. For various reasons at the moment unfortunately I can't
use spacewalk to manage this so the solution has to be native to cobbler.
Best Regards
--
Gerhardus Geldenhuis
12 years, 7 months
Debian one more time..
by Duffie Cooley
Hey all I am interested in getting debian working on cobbler. I am happy
to test and answer any questions that I can. I just moved from a CentOS
house to a Debian house and REALLY miss my cobbler setup.
What I have done so far.
I have a debian host running cobbler 2.1.0 from the debian repo. I went
into /usr/lib/python2.7/dist-packages/cobbler and copied all the .py
to .py.orig. Then I uncommented all of the debian specific stuff in
actions-import and codes. Then I pycompile and rerun my import. Now when
I run an import command I get the following output.
root@pxetest:~# cobbler import --path=/mnt/debtest --name=debtest
--breed=debian --arch=x86_64
task started: 2011-08-23_151323_import
task started (id=Media import, time=Tue Aug 23 15:13:23 2011)
Found a debian/ubuntu compatible signature: pool
running: rsync -a
'/mnt/debtest/' /var/www/cobbler/ks_mirror/debtest-x86_64/
--exclude-from=/etc/cobbler/rsync.exclude --quiet
received on stdout:
received on stderr:
adding distros
avoiding symlink loop
avoiding symlink loop
associating repos
associating kickstarts
*** TASK COMPLETE ***
This tells me at least that I have uncommented the stuff correctly as it
recognizes a pool sig. However, I am not seeing any distros repos or
profiles created in cobbler. Cobbler list shows nothing. I am pretty
sure there must be something I am missing somewhere. I can't seem to
find it.
pastebin of actions-import.py
http://nopaste.linux-dev.org/?18227
codes.py
http://nopaste.linux-dev.org/?18228
Thanks for your help.
Duffie Cooley
dcooley(a)nicira.com
12 years, 7 months
cobbler & kickstart files
by Tim Kendall
Hi,
I'm just starting to use cobbler with the aim of re-imaging some desktops
and servers to Centos 6, now it is out.
I'm confused as to the location of kickstart files. Using the web
interface and the command line I have successfully made a profile
Centos6-i386 with a kickstart file specified in
/var/lib/cobbler/kickstarts (and I have tried elsewhere). The .ks file is
found in "Kickstart Templates" on the web interface.
However it is not accessible via "View kickstart" in the profile:
http://192.168.70.239/cblr/svc/op/ks/profile/Centos6-i386 Not found
with the target machine displaying the same error.
192.168.70.239 is the correct IP for the cobbler server but nothing exists
below /cblr/ apart from ks_mirror/, images/ and rendered/.
So the error is not surprising, but how to get cobbler to see the .ks
file? I had thought (from using cobbler before) that
/cblr/svc/op/ks/profile/ pointed to /var/lib/cobbler/ in human-readable
terms.
Thanks for help in advance
Tim Kendall
--------------------------------------------------------------------------------
Tim Kendall
Le114, Leighton Building
Jeremiah Horrocks Institute
University of Central Lancashire
Preston PR1 2HE
12 years, 7 months
Setting up new Cobbler server from existing one
by petermity
If I have an existing Cobbler server all set up, is there an easy
way to copy all of the distros, profiles, and other Cobbler
aspects from it to a freshly created unit?
Could I just copy /etc/cobbler, /var/www/cobbler, and
/var/lib/cobbler to the new machine and then do cobbler sync?
12 years, 7 months
Allow multiple snippets directories
by petermity
Please allow multiple directories to be listed for "snippetsdir".
I like keeping my snippet files separate from the default Cobbler
ones.
Initially I added a symlink from the default snippets directory
to my snippets. But then I have to specify the directory path
for each snippet, and the hierarchy search method for per_profile
etc. doesn't work under that directory.
Then I changed the settings to point to my snippets directory
instead of the default, and copied Cobbler's default snippets to
my directory. Now I don't need to specify a path to snippets,
and the hierarchy works. But then everything is mixed up, and if
Cobbler's snippets change in a later release, it's easy to forget
to update them.
That's why it would be nice to be able to use a PATH or LIB style
method to allow multiple directories to be specified for
snippets. Then they don't need to be mixed up, yet the hierarchy
search could work in all directories.
12 years, 7 months
How to clear "cobbler status"?
by petermity
The "cobbler status" command is handy to see when builds are
running/finished. However, the display can be cluttered by units
that finished building (or hung/failed) days/weeks ago, even if
the Cobbler server is rebooted. Is there a way to start fresh?
Related: is there a wget command or some other method to tell
Cobbler that a failure occurred in the %post section? Something
analogous to the $kickstart_done, maybe a $kickstart_failed?
12 years, 7 months
cobbler python api
by Thomas Ewert
Hi from Munich,
have a prob with the cobbler python api.
in a cgi script I am searching for all profiles:
CODE: -----------------------------
print "<select name=\"profil\">"
print "<option>Profil wählen<option>"
for cob_sys in h.profiles():
prof = cob_sys.name
print "<option>" + prof + "</option>"
print "</select>"
-----------------------------------------------
The prob is that I get a DEBUG messages , also printed. How can I stop that
debug messages , shown in the browser.
Thanks for help.
BR
Tom
--
Thomas Ewert
Birkenweg 11
82291 Mammendof
0178 8855 733
Thomas.Ewert(a)googlemail.com
12 years, 7 months