Suggestion for snippet naming consistency
by Dave Hatton
Hi,
Just a small suggestion.
Could we decide on and stick to a consistent naming scheme for snippets?
I would suggest
<snippet name>_main
<snippet name>_post
<snippet name>_pre
because snippets sort together when looking in the directory and you can
tell from _main, _post or _pre where to run them from in the .ks.
At the moment we have a real mix of names.
What does the panel think?
Dave
15 years, 2 months
Unmanage tftp
by Gennadiy Nerubayev
Hi all,
This is probably a somewhat unusual question, but is there a way to have
cobbler not reconfigure the pxelinux.cfg/default file whenever it needs to?
Commenting out the tftp options in settings didn't help (I'm guessing they
are default). The reason is that I use cobbler only for xen guest installs
(at least for now), and something else manages the pxe stuff.
Thanks!
-Gennadiy
15 years, 2 months
[PATCH] keep_ssh_host_keys and logging-snippets
by Jasper Capel
All,
Patches for the following stuff:
* Teach keep_ssh_host_keys about LVM, so this should work in most cases
now
* Logging for %pre and %post, very useful if you're writing your own
snippets.
* And added those snippets to setup.py and cobbler.spec, so they're
actually available for our end-users.
git://bender.newnewyork.nl/cobbler
http://bender.newnewyork.nl/git/gitweb.cgi?p=cobbler/.git;a=summary
branches: capel-devel and capel-master
(The network's a bit unreliable at the moment, if it doesn't work, try
again in a few moments)
-Jasper
15 years, 2 months
Re: Using koan --replace-self problem w/ F10 and 11 - but not 9
by Scot Floess
I just wanted to let y'all know...
Changing the kernel option to /var/www/cobbler/ks_mirror/CentOS-5.2-i386/images/pxeboot/vmlinuz did, in fact, fix my problem.
Fedora initially complained with a retry dialog box...but selecting that...started the install as I expected...
So its working for me...
I really, want to thank everyone for helping me out! I would have never figured it out...
----- Original Message -----
From: "Scot Floess" <sfloess(a)redhat.com>
To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
Sent: Wednesday, March 11, 2009 12:35:20 PM GMT -05:00 US/Canada Eastern
Subject: Re: Using koan --replace-self problem w/ F10 and 11 - but not 9
Oh wow... I get it :)
Yeah - my home network is full of top-of-the-line machines - circa 2000 ;) Hee - none of them support PAE :)
Again, thanks y'all for all your help!
----- Original Message -----
From: "Michael DeHaan" <mdehaan(a)redhat.com>
To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
Sent: Wednesday, March 11, 2009 12:18:32 PM GMT -05:00 US/Canada Eastern
Subject: Re: Using koan --replace-self problem w/ F10 and 11 - but not 9
Scot Floess wrote:
> So, for my CentOS 5.2, I see the following entries:
>
> Kernel: /var/www/cobbler/ks_mirror/CentOS-5.2-i386/images/pxeboot/vmlinuz
> Initrd:
> /var/www/cobbler/ks_mirror/CentOS-5.2-i386/images/pxeboot/initrd.img
>
> For Fedora 10, I see:
>
> Kernel:
> /var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/vmlinuz-PAE
> Initrd:
> /var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/initrd.img
>
> I also see that the file
> /var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/vmlinuz exists...
>
> So do I need to change Kernel for Fedora 10 to be
> var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/vmlinuz ???
>
> I'd try it - but am not at home where my machines are :) Oh heck,
> I'll definitely try it tonight for sure :D
>
>
Yes you can cobbler distro edit to fix that and you should be good to go.
The import code is, I think, just globbing against "vmlinuz*" so it's
getting the first one it finds, when it probably should create two
distros and not one in this instance.
I'm guessing your machine can't do PAE and that's why you have the problem.
--Michael
>
> ----- Original Message -----
> From: "Ronald J. Yacketta" <yacketrj(a)potsdam.edu>
> To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
> Sent: Wednesday, March 11, 2009 11:54:23 AM GMT -05:00 US/Canada Eastern
> Subject: Re: Using koan --replace-self problem w/ F10 and 11 - but not 9
>
>
> Just a thought, check the distro entry cobbler import created. I had a
> similar problem the other day and noticed that the import used
> initrd-PAE.img vice initrd.img. Once I made the change normal PXE
> installs started to work with F10.
>
> -Ron
> Scot Floess wrote:
>
> All:
>
> I've tried to figure out this problem for the last 2 weeks...just
> off and on when I had free time at home...
>
> I am running Cobbler 1.4.2 on CentOS 5.2...
>
> Basically this is the scenario: I downloaded the Fedora 10 DVD
> ISO and imported it into Cobbler. I stepped onto 2 different
> machines and tried to use koan --replace-self for the Fedora 10
> distro I imported... Yes, I created a system, etc :)
>
> Anyway, I get a dialog box on both machines stating something
> about trouble (sorry not sitting in front of the machines at the
> moment) talking to the cobbler server - the URL displayed looks to
> be correct. In looking at virtual console 2 or 3, I see the
> following displayed:
>
> "no network devices in choose network device!"
>
> After some mucking around, I thought I'd try both Fedora 11 and 9
> - basically doing the same process I did for 10 (download the ISO,
> import, etc)...
>
> With Fedora 11 I got the same result as 10... For Fedora 9 - it
> worked!
>
> I thought - OK, let me try using buildiso - see if, on the off
> chance, it worked... Nope - same problem...
>
> Finally, I decided to grab the boot.iso from Fedora 10 - to see if
> I could do an NFS install - that worked!
>
> At this point, I'm not sure what is causing this problem...or if
> anyone has seen this issue? I had been using Cobbler 1.4.1 - but
> jumped up to 1.4.2...
>
> Any and all help - is greatly appreciated!
>
> Flossy
>
>
> --
> Make It So Number One
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>
>
>
> _______________________________________________ cobbler mailing list
> cobbler(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>
> --
> Make It So Number One
> ------------------------------------------------------------------------
>
> _______________________________________________
> cobbler mailing list
> cobbler(a)lists.fedorahosted.org
> https://fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
--
Make It So Number One
_______________________________________________
cobbler mailing list
cobbler(a)lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler
--
Make It So Number One
15 years, 2 months
koan + centos 5.2 problem
by James Cammarata
Hey all, running into a problem trying to do a koan install of Centos 5.2:
koan --server=hades --virt --profile=centos5.2-i386
- looking for Cobbler at http://hades/cobbler_api
- reading URL: http://192.168.1.109/cblr/svc/op/ks/profile/centos5.2-i386
install_tree: http://192.168.1.109:80/cblr/links/centos5.2-i386
libvirtd (pid 15656) is running...
- using qemu hypervisor, type=qemu
- adding disk: /opt/qemu//Wed_Mar_11_22_26_15_2009-disk0 of size 5
libvir: QEMU error :
exceptions.ValueError
Could not find an installable distribution at
'http://192.168.1.109:80/cblr/links/centos5.2-i386/'
File "/usr/lib/python2.4/site-packages/koan/app.py", line 188, in main
k.run()
File "/usr/lib/python2.4/site-packages/koan/app.py", line 293, in run
self.virt()
File "/usr/lib/python2.4/site-packages/koan/app.py", line 581, in virt
return self.net_install(after_download)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 500, in
net_install
after_download(self, profile_data)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 579, in
after_download
self.virt_net_install(profile_data)
File "/usr/lib/python2.4/site-packages/koan/app.py", line 1041, in
virt_net_install
virt_type = self.virt_type
File "/usr/lib/python2.4/site-packages/koan/qcreate.py", line 182, in
start_install
guest.start_install()
File "/usr/lib/python2.4/site-packages/virtinst/Guest.py", line 811, in
start_install
self._prepare_install(meter)
File "/usr/lib/python2.4/site-packages/virtinst/FullVirtGuest.py", line
242, in _prepare_install
distro = self.os_distro)
File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line
239, in prepare
self._prepare_kernel_and_initrd(guest, distro, meter)
File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line
209, in _prepare_kernel_and_initrd
distro = distro)
File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line
122, in acquireKernel
progresscb=progresscb, distro=distro, scratchdir=scratchdir)
File "/usr/lib/python2.4/site-packages/virtinst/DistroManager.py", line
101, in _storeForDistro
raise ValueError, _("Could not find an installable distribution at
'%s'" % baseuri)
In my httpd log, I see the following:
[Wed Mar 11 22:26:15 2009] [error] [client 192.168.1.109] File does not
exist: /var/www/cobbler/links/centos5.2-i386/Server
[Wed Mar 11 22:26:15 2009] [error] [client 192.168.1.109] File does not
exist: /var/www/cobbler/links/centos5.2-i386/Client
[Wed Mar 11 22:26:15 2009] [error] [client 192.168.1.109] File does not
exist: /var/www/cobbler/links/centos5.2-i386/RedHat
Is this something I'm doing wrong? Being Centos, those directories don't
exist (just CentOS), but I'd be really surprised if I'm the first one to
try using koan to build a CentOS vm...
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
15 years, 2 months
New mini feature: A very simple hardlink command
by Michael DeHaan
New feature on both the devel and master branches...
Command: "cobbler hardlink"
Calls hardlink (if installed) to hardlink content in
/var/www/cobbler/ks_mirror and /var/www/cobbler/repo_mirror to remove
space used by duplicate RPMs.
(If it makes sense to add more directories to hardlink, we can do so,
but I explicitly did not have this run against tftpboot since the copy
code in utils /already/ is coded up to do hardlinking)
This is basically a shortcut around remembering the right commands to
"/usr/sbin/hardlink" -- It doesn't touch the cobbler config at all.
It's a nice thing about Unix that no more code was required.
I've also surfaced this over the API (api.hardlink) and will be adding
it to the remote API shortly.
--Michael.
15 years, 2 months
Re: Using koan --replace-self problem w/ F10 and 11 - but not 9
by Scot Floess
So, for my CentOS 5.2, I see the following entries:
Kernel: /var/www/cobbler/ks_mirror/CentOS-5.2-i386/images/pxeboot/vmlinuz
Initrd: /var/www/cobbler/ks_mirror/CentOS-5.2-i386/images/pxeboot/initrd.img
For Fedora 10, I see:
Kernel: /var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/vmlinuz-PAE
Initrd: /var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/initrd.img
I also see that the file /var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/vmlinuz exists...
So do I need to change Kernel for Fedora 10 to be var/www/cobbler/ks_mirror/Fedora-10-i386/images/pxeboot/vmlinuz ???
I'd try it - but am not at home where my machines are :) Oh heck, I'll definitely try it tonight for sure :D
----- Original Message -----
From: "Ronald J. Yacketta" <yacketrj(a)potsdam.edu>
To: "cobbler mailing list" <cobbler(a)lists.fedorahosted.org>
Sent: Wednesday, March 11, 2009 11:54:23 AM GMT -05:00 US/Canada Eastern
Subject: Re: Using koan --replace-self problem w/ F10 and 11 - but not 9
Just a thought, check the distro entry cobbler import created. I had a similar problem the other day and noticed that the import used initrd-PAE.img vice initrd.img. Once I made the change normal PXE installs started to work with F10.
-Ron
Scot Floess wrote:
All:
I've tried to figure out this problem for the last 2 weeks...just off and on when I had free time at home...
I am running Cobbler 1.4.2 on CentOS 5.2...
Basically this is the scenario: I downloaded the Fedora 10 DVD ISO and imported it into Cobbler. I stepped onto 2 different machines and tried to use koan --replace-self for the Fedora 10 distro I imported... Yes, I created a system, etc :)
Anyway, I get a dialog box on both machines stating something about trouble (sorry not sitting in front of the machines at the moment) talking to the cobbler server - the URL displayed looks to be correct. In looking at virtual console 2 or 3, I see the following displayed:
"no network devices in choose network device!"
After some mucking around, I thought I'd try both Fedora 11 and 9 - basically doing the same process I did for 10 (download the ISO, import, etc)...
With Fedora 11 I got the same result as 10... For Fedora 9 - it worked!
I thought - OK, let me try using buildiso - see if, on the off chance, it worked... Nope - same problem...
Finally, I decided to grab the boot.iso from Fedora 10 - to see if I could do an NFS install - that worked!
At this point, I'm not sure what is causing this problem...or if anyone has seen this issue? I had been using Cobbler 1.4.1 - but jumped up to 1.4.2...
Any and all help - is greatly appreciated!
Flossy
--
Make It So Number One
_______________________________________________
cobbler mailing list cobbler(a)lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
_______________________________________________ cobbler mailing list cobbler(a)lists.fedorahosted.org https://fedorahosted.org/mailman/listinfo/cobbler
--
Make It So Number One
15 years, 2 months
Using koan --replace-self problem w/ F10 and 11 - but not 9
by Scot Floess
All:
I've tried to figure out this problem for the last 2 weeks...just off and on when I had free time at home...
I am running Cobbler 1.4.2 on CentOS 5.2...
Basically this is the scenario: I downloaded the Fedora 10 DVD ISO and imported it into Cobbler. I stepped onto 2 different machines and tried to use koan --replace-self for the Fedora 10 distro I imported... Yes, I created a system, etc :)
Anyway, I get a dialog box on both machines stating something about trouble (sorry not sitting in front of the machines at the moment) talking to the cobbler server - the URL displayed looks to be correct. In looking at virtual console 2 or 3, I see the following displayed:
"no network devices in choose network device!"
After some mucking around, I thought I'd try both Fedora 11 and 9 - basically doing the same process I did for 10 (download the ISO, import, etc)...
With Fedora 11 I got the same result as 10... For Fedora 9 - it worked!
I thought - OK, let me try using buildiso - see if, on the off chance, it worked... Nope - same problem...
Finally, I decided to grab the boot.iso from Fedora 10 - to see if I could do an NFS install - that worked!
At this point, I'm not sure what is causing this problem...or if anyone has seen this issue? I had been using Cobbler 1.4.1 - but jumped up to 1.4.2...
Any and all help - is greatly appreciated!
Flossy
--
Make It So Number One
15 years, 2 months
xen vm and bonding bug
by James Cammarata
I'm testing some kickstart stuff on a Xen system and noticed the following:
eth0: static, with ip and mac, bridge virbr0
eth1: bond slave to bond0, mac set, bridge xenbr0
eth2: bond slave to bond0, mac set, bridge xenbr0
bond0: static, ip set, no mac, no bridge
Results in a xen vm with the following network line:
vif = [ "mac=00:16:3E:4C:C9:F8,bridge=xenbr0",
"mac=00:16:3E:4C:C9:F7,bridge=xenbr0",
"mac=00:16:3E:4C:C9:F6,bridge=virbr0",
"mac=00:16:3e:16:f5:10,bridge=virbr0" ]
So, it would seem that there is a bug which causes bonded interfaces to
have a vm nic created for them, which should be excluded. I'm running off
the devel tree, so this should be very close to the bleeding edge.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
15 years, 2 months
Hardlinks and repo snapshot capability
by Michael DeHaan
I'm looking into adding some simple stuff to do repo hardlinking as such:
When the command "cobbler hardlink" is run, automatically hardlink
contents together for files in /var/www/ks_mirror and
/var/www/repo_mirror for duplicated content.
When the command "cobbler repo snapshot --name=foo --newname=bar" is
run, hardlink all files from foo into bar and create the new repo object
'bar'.
My logic for the first case so far is:
- Get the list of all files in the directories in question, their
inode numbers, and their checksums. Hardlink all files with matching
checksums.
- This should be slow as heck.
- Possibly limit the scan to just RPMs and attempt to cache the
filename+mtime to the checksums so we know what we don't have to rescan
- Should we bother with ISO's and anything that is not an RPM?
Probably not, they aren't likely to conflict. Yes? No?
- This should hardlink distro trees together, repo trees together,
and repos to trees. It should also be possible to just scan the trees
or just the repos, though I'm not sure it would be worth it.
My logic on the second case is:
- Just do blind hardlinks of every file. If someone wants to add
or remove files from the snapshot later, that's ok.
This assumes /var/www/cobbler/ks_mirror and /var/www/cobbler/repo_mirror
for the initial pass at an implementation.
Comments? Ideas?
--Michael
15 years, 2 months