resolv.conf.save ??
by Tom Brown
what creates this file as i am trying to manipulate my resolv.conf with
a snippet but after a while looking into why it seemed to not be working
it seems that changes get wiped out by whatever creates resolv.conf.save -
I am doing manipulation at the very end of the ks post so i would have
thought all cobbler internal stuff would have finished by then ?
thanks
15 years, 1 month
new repo add arg --mirror-list
by Gunter Woytowitz
I would like to use a mirror list URL that returns a list of possible
sources for repo updates instead of having to specify a single source
URL.
Here's what I do now using the --mirror arg to get this functionality
# Grab the first URL returned from the mirror list
FIRST_URL=`wget
'http://mirrors.fedoraproject.org/mirrorlist?repo=updates-eleased-f10&ar
ch=i386' -O- 2>/dev/null | grep -v "^#" | head -n1`
cobbler repo add --clobber --name=fc10-i386-updates --mirror=$FIRST_URL
cobbler reposync --only="fc10-i386-updates"
This is what I would like to do using the new --mirror-list arg
cobbler repo add --clobber --name=fc10-i386-updates
--mirror-list="http://mirrors.fedoraproject.org/mirrorlist?repo=updates-
eleased-f10&arch=i386"
cobbler reposync --only="fc10-i386-updates"
cobbler reposync --only="fc10-i386-updates" // Each call to reposync
updates the .origin/fc10-i386-update.repo file with a potentially new
URL
cobbler reposync --only="fc10-i386-updates" // Each call to reposync
updates the .origin/fc10-i386-update.repo file with a potentially new
URL
Can this be done some other way already? If not, could this be added?
15 years, 1 month
using non local mirrors at install time
by Tom Brown
Hi
I add some repo's to a profile so that they can be used by using
--mirror=http://foo/5/x86_64 --mirror-locally=0 and these are associated
with the required profile.
However you cant run a reposync on them as cobbler dies with
CX: 'rsync:// urls must be mirrored locally, yum cannot access them
directly'
- reposync failed, tries left: 0
reposync failed, retry limit reached, aborting
which is fair enough however i cant seem to use these repo's during an
install and when a box is built the cobbler.repo file contains
# error: could not read repo source
/var/www/cobbler/repo_mirror/CentOS-5.2-x86_64-base/config.repo
am i trying to do something silly?
thanks
15 years, 1 month
memdisk not allowing certain images to boot
by Pete Eby
Hi everyone,
We recently have deployed Cobbler and its working very well for us. I am
having some trouble getting some images to work correctly with memdisk
though and was hoping I might be able to get some advice.
For example, I have tried adding the image using the following methods:
cobbler image add --name=UltraPro --file=/tftpboot/hw/ultrapro.img
--image-type=memdisk
cobbler image add --name=UltraPro --file=/tftpboot/hw/ultrapro.img
--image-type=direct
cobbler distro add --name=UltraPro --kernel=/tftpboot/memdisk
--initrd=/tftpboot/hw/ultrapro.img
(I assume this one is incorrect the the above methods are the way to go.)
In all cases, the kernel loads but it appears that right when it goes to
execute the program, it just hangs at a black screen.
I thought it might be the version of memdisk, so I downloaded
syslinux-3.73 and compiled a new memdisk - though that did not seem to
do anything.
I do have memdisk working fine with a memtest.img, but when trying to
use several other .img files (Such as this UltraPro img of a floppy, and
various others) I am getting this issue.
Thanks for any input, I appreciate it.
Cheers,
Pete Eby
15 years, 1 month
having the bug where the web app corrupts the repo "environment" field? Fix coming.
by Michael DeHaan
This actually wasn't a YAML bug, it was a bug in the "flatten" code,
where we didn't tell the "blender" it was a hash. So if you fix it
back, the web app /will/ break it again, but the command line will not.
I don't expect anyone to really understand the explanation for that one :)
Anyway, it will be fixed in 1.6.0 just the same -- stay tuned for that
tomorrow.
(Pushed to devel & master git already)
--Michael
15 years, 1 month
Setting up Repositories
by Rodrique Heron
Hello-
Simple question, I want to mirror a repo, do I have get granular and point
to the architecture? So I want to mirror centos updates from:
http://mirrors.rit.edu/centos/5.2/updates/, under this path we have:
SRPMS
i386
x86_64
Can I just do this?
cobbler repo add
--mirror=http://mirrors.rit.edu/centos/5.2/updates/--name=centos5-updates
Will it mirror all everything list above?
Thanks
15 years, 1 month
Speedups from file reading and writing
by Michael DeHaan
Ok, recently Scott Henson, John Eckersberg, and I were trying to speed
up cobbler ... a lot. We got a lot of good things done, including
cutting the sync time in half. One thing we also achieved is we found
out, that using the python profiler, even though the new yaml
implementation is more robust (good, that's the most important thing!),
it's also slow... even with libyaml installed. That all being said,
the old implementation was also slow. We want /fast/.
Some quick benchmarks on my end show that saving objects using
simplejson instead of PyYAML result in 10-12 second times to edit 200
objects versus 28 seconds.
As a result of this, I'm going to go ahead and add "serializer_catalog2"
to the distribution, though I should warn you ... there's no upgrade path.
The way to replicate from catalog to catalog2 is to edit modules.conf on
a /new/ cobbler machine and cobbler replicate the data to it (since the
wire protocol is exactl y the same).
Simplejson offers two output modes -- one is a "pretty printed" mode,
this mode is maybe 30% slower. It depends how cleanly readable we need
the output to be, but the answer is "not really", since we can always
get a pretty printed version of a data structure someone pastebins using
ipython if absolutely needed. I am in favor of not using the pretty
printed version.
Just for kicks, I think I'll benchmark cPickle again -- shelve (which
uses things like berkley DB) tends to have issues.
We may make the JSON implementation the new default in 1.8, we'll see.
--Michael
15 years, 1 month
Failing to view remove system
by Rodrique Heron
Hello All-
I am running cobbler-1.4.3-4.el5 on centos 5.2, I have one system defined
that causing the web interface of cobbler to display this message when
trying to view SYSTEMS.
Mod_python error: "PythonHandler index"
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/mod_python/apache.py", line
299, in HandlerDispatch
result = object(req)
File "/var/www/cobbler/web/index.py", line 130, in handler
content = func( **form )
File "/usr/lib/python2.4/site-packages/cobbler/webui/CobblerWeb.py",
line 313, in system_list
(page, results_per_page, pages) =
self.__compute_pagination(page,limit,"system")
File "/usr/lib/python2.4/site-packages/cobbler/webui/CobblerWeb.py",
line 288, in __compute_pagination
total_size = self.remote.get_size(collection_type)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1096, in __call__
return self.__send(self.__name, args)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1383, in __request
verbose=self.__verbose
File "/usr/lib64/python2.4/xmlrpclib.py", line 1147, in request
return self._parse_response(h.getfile(), sock)
File "/usr/lib64/python2.4/xmlrpclib.py", line 1286, in _parse_response
return u.close()
File "/usr/lib64/python2.4/xmlrpclib.py", line 744, in close
raise Fault(**self._stack[0])
I tried removing the system from th CLI, but get usage output instead
of the system being removed
# cobbler system list
nixutil-vm-01
# cobbler system remove nixutil-vm-01
usage:
======
cobbler system add
cobbler system copy
cobbler system dumpvars
cobbler system edit
cobbler system find
cobbler system getks
cobbler system poweroff
cobbler system poweron
cobbler system list
cobbler system reboot
cobbler system remove
cobbler system rename
cobbler system report
# cobbler system list
nixutil-vm-01
Any ideas?
Thanks
15 years, 1 month