disabling second nic and HP firmware cd...
by Corey Kovacs
Folks,
Is there a built in 'correct' way to ensure that my second nics are
not configured during build and left alone when using the network
config snippets delivered with cobbler?
RIght now, when the nodes finish building, the undefined second nic
tries to dhcp even though I've not given it a config.
I am getting around this by making the appropriate changes to
ifcfg-eth1 via two 'sed' lines but if there is a 'better' way I'd
rather do that than rely on a post config.
Also,
are people using the livecd boot method for booting HP firmware disks?
How about the SSTK?
Thanks
Corey
13 years, 3 months
partitioning
by Gavin Reid
Hi All , I am having problems with disk partitioning a section from my kickstart file follows
#get the number of hard disks and there names
set $(list-harddrives)
let numd=$#/2
drive1=$1
drive2=$3
# Default data and rootvg size
swapsize=8192
pv2size=1
pv1size=8196
if [ $numd = 1]; then # only one disk
cat <<=EOpart > /tmp/part-include
part /boot --fstype ext3 --size=100 --ondisk=$d1 --asprimary
part pv.100 --size $pv1size --ondisk=$d1 --asprimary
part pv.200 --size $pv2size --grow --ondisk=$d1 --asprimary
volgroup rootvg pv.100
volgroup datavg pv.200
logvol / --fstype ext3 --vgname=rootvg --size=8196 --name=rootvol
logvol /tmp --fstype ext3 --vgname=rootvg --size=548 --name=tmpvol
logvol swap --fstype swap --vgname=rootvg --size=$swapsize --name=swapvol
logvol /data --fstype ext3 --vgname datavg --size 1 --grow --name=nobackup
EOpart
else
cat <<=EOpart > /tmp/part-include
part /boot --fstype ext3 --size=100 --ondisk=$d1 --asprimary
part pv.100 --size $pv1size --ondisk=$d1 --asprimary
part pv.200 --size $pv2size --grow --ondisk=$d2 --asprimary
part pv.300 --size 1 --grow --ondisk$d1 --asprimary
volgroup rootvg pv.100
volgroup datavg pv.200 pv.300
logvol / --fstype ext3 --vgname=rootvg --size=8196 --name=rootvol
logvol /tmp --fstype ext3 --vgname=rootvg --size=548 --name=tmpvol
logvol swap --fstype swap --vgname=rootvg --size=$swapsize --name=swapvol
logvol /data --fstype ext3 --vgname datavg --size 1 --grow --name=nobackup
EOpart
fi
%include /tmp/part-include
yet the installer explodes at the include line ... it seem that the /tmp/part-include is not created ... any ideas or better methods of partitioning
13 years, 4 months
Failure during import
by Peter Loron
Hello, all. I have a Cobbler 2.003 install on CentOS 5.5 x86_64 in a VM
(VirtualBox) that I am trying to get to import a distro. I have the
CentOS 5.5 DVD mounted, and I issue this command:
cobbler import --name=CentOS55 --path=/mnt
The import goes fine until it hangs forever (or at least overnight) on
the "createrepo" step. The cobblerd service also shut down at this
point. The disto appears to be imported in the web ui, and I can select
it and start the PXE booted install, but it shortly stops with the
Kickstart error "Unknown Url method $tree".
Any pointers for fixing whatever is broken here?
Thanks!
-Pete
13 years, 6 months
Overriding the port for http_server on a per-host basis
by Georgi Georgiev
For a couple of hosts behind a couple of firewalls, we have to override
both the server and the port that the kickstart should download the RPMs
from. As these are virtual machines, with 2.0.4 it is quite easy to
override the "server" value to something like "10.68.1.128:10080" and an
ssh tunnel at 10.68.1.128 does the rest of the work. This works well,
because it generates a kickstart string like:
url --url=http://10.68.1.128:10080/cblr/links/Fedora-13-x86_64
The reason this works is that the http_port is ignored (we use the
default 80) and so the override string fits just fine as a workaround.
However, commit 236ad1ca9f30012cadf9f55b8acf8b23cc5de673 (it is in
2.0.5) broke this workaround with the following error halfway through
"cobbler sync":
Mon Sep 27 17:25:22 2010 - INFO | Exception occured: socket.gaierror
Mon Sep 27 17:25:22 2010 - INFO | Exception value: (-2, 'Name or service not known')
Mon Sep 27 17:25:22 2010 - INFO | 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 184, in runner
return self.remote.api.sync(self.options.get("verbose",False),logger=self.logger)
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 610, in sync
return sync.run()
File "/usr/lib/python2.4/site-packages/cobbler/action_sync.py", line 122, in run
self.pxegen.write_all_system_files(x)
File "/usr/lib/python2.4/site-packages/cobbler/pxegen.py", line 294, in write_all_system_files
self.write_pxe_file(f2,system,profile,distro,working_arch)
File "/usr/lib/python2.4/site-packages/cobbler/pxegen.py", line 565, in write_pxe_file
ipaddress = socket.gethostbyname_ex(blended["http_server"])[2][0]
Obviously, since our "server" includes a port, gethostbyname_ex is
failing to resolve "10.68.1.128:10080".
I don't mind making the commits myself (both for master and stable) but
I would like to know what the preferred solution would be. I can think
of two approaches:
a) Introduce a server_port setting for systems (to complement the
current "server" override) and we can then set that to 10080.
b) fix the calls to gethostbyname_ex so they only replace the hostname
with an IP, and leave anything after a trailing ":" intact
Thoughts?
--
(* Georgi Georgiev (* No man is an island if he's on at least (*
*) Sysadmin Head *) one mailing list. *)
(* -SBI Japannext- (* (*
13 years, 6 months
Select the PXE menu but didn't work
by 黃獻輝
hi all,
sorry for the new hand question,
After I boot the guest from Cobbler PXE server,
I can see Cobbler Boot Menu,
but when I select the OS like "CentOS-i386",
it didn't work,
My Cobbler version is 2.0.3.1 on CentOS 5.5,
and import the CentOS and Fedora iso to cobbler,
I check the "/tftpboot/pxelinux.cfg/default", my config like this :
LABEL CentOS-i386
kernel /images/CentOS-i386/vmlinuz
MENU LABEL CentOS-i386
append initrd=/images/CentOS-i386/initrd.img ksdevice=bootif lang= kssendmac text ks=http:
//192.168.20.2/cblr/svc/op/ks/profile/CentOS-i386
ipappend 2
I do very few steps, so I have no idea what's wrong,
any suggestion will very thakful, please!!
klein
13 years, 7 months
failure to re-koan Centos 5.5
by Chris Munns
Saw this covered slightly back in May
(https://fedorahosted.org/pipermail/cobbler/2010-May/005623.html), but
haven't seen any resolution in any place that I've looked.
What is happening is that if we attempt to koan --replace-self a Centos
5.5 system ( on physical hardware, not a xen or kvm instance), it hangs
during reformatting of the drives. The drives are single SSDs, and are
not exposed as a RAID disk or anything else.
From my kickstart I do have the following that should be relevant:
# Partition clearing information
clearpart --all --initlabel
# Clear the Master Boot Record
zerombr
#autopart this
autopart
NOTE: these 3 lines aren't all next to each other like this, but are in
their relevant sections of the kickstart
The first time this is run on a brand new system, the following
formatting happens:
....
13:34:25 INFO : formatting swap as swap
13:34:25 INFO : formatting / as ext3
13:34:25 INFO : Format command: ['/usr/sbin/mke2fs',
'/dev/VolGroup00/LogVol00', '-i', '4096', '-j']
13:34:58 INFO : formatting /boot as ext3
13:34:58 INFO : Format command: ['/usr/sbin/mke2fs', '/tmp/sda1',
'-i', '4096', '-j']
13:34:58 DEBUG : starting mpaths
...
it then continues on and all is well.
if we go to koan --replace-self this host. With no changes to the
kickstart at all. We see the following:
....
00:12:52 DEBUG : DiskSet.skippedDisks: []
00:12:52 DEBUG : done starting mpaths. Drivelist: ['sda']
00:12:52 DEBUG : adding drive sda to disk list
00:12:53 INFO : formatting swap as swap
00:12:53 INFO : formatting / as ext3
00:12:53 INFO : Format command: ['/usr/sbin/mke2fs',
'/dev/VolGroup00/LogVol00', '-i', '4096', '-j']
Then it hangs. Watching the screen during this time produces random
text that looks Greek. The whole system hangs and ctrl-alt-del doesn't
work, it requires a power reset.
We just started moving onto Centos 5.5, so I'm more willing to put my
money into anaconda changes, or something else hit by anaconda than I am
cobbler, but I figured it was worth while to ask here. Anyone else seen
anything like this?
Thanks,
- Chris
13 years, 7 months
fence_ilo issues?
by Jeremy Hansen
Is there anything I should know about the fence_ilo power module? I'm trying to get this functioning and I'm running into problems. It seems unable to properly authenticate with the ilo.
fence_ilo -D debug -v -a blah-ilo -l good -p times -o off
results in
Unable to connect/login to fencing device
The username and password seem to work fine just using firefox directly to the ilo, although using "links" from a host on the same network has problems authenticating with the same username and password.
This feels like an ilo issue but I was hoping someone else had a similar experience.
Also, the -D and -v options to fence_ilo seem to do nothing.
Thanks
-jeremy
13 years, 7 months
importing images
by Tim Dunphy
Hey guys,
I am attmepting to import images into my cobbler config as per this tutorial
http://magazine.redhat.com/2007/08/10/cobbler-how-to-set-up-a-network-boo...
[root@virtCent14:~]#cobbler import –name=CentOS-55 –mirror=/mnt/DVD
task started: 2010-09-21_153402_import
task started (id=Media import, time=Tue Sep 21 15:34:02 2010)
Exception occured: cobbler.cexceptions.CX
Exception value: 'import failed. no --path specified'
Exception Info:
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 122, in die
raise CX(msg)
Exception occured: cobbler.cexceptions.CX
Exception value: 'import failed. no --path specified'
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
224, in runner
self.logger
File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 657,
in import_tree
return importer.run()
File "/usr/lib/python2.4/site-packages/cobbler/action_import.py",
line 93, in run
utils.die(self.logger,"import failed. no --path specified")
File "/usr/lib/python2.4/site-packages/cobbler/utils.py", line 130, in die
raise CX(msg)
!!! TASK FAILED !!!
I was wondering if I could get some help with this command. Much obliged!
13 years, 7 months
Alternative backends for cobbler?
by lists@truthisfreedom.org.uk
Hi all,
I'm putting together a change management system and as Cobbler already has an
inventory of our systems, I'd like to use it as the "node" backend.
The issue I have is that Cobbler doesn't appear to support any other backend
than it's default (and I'm still digging through the codebase to find out
exactly what that is!) so unless I have a nasty hack that dumps all server
information from cobbler into the change management backend every five minutes,
I'm struggling to work out how to read the data in a "friendly" manner.
Is anyone aware of a way to change the default backend to something like MySQL
or similar?
Thanks,
Matt
13 years, 7 months
cobbler check issues
by Tim Dunphy
hello,
I am having a few final issues with cobbler check under Centos55
Linux virtCent14 2.6.18-194.11.3.el5xen #1 SMP Mon Aug 30 17:42:28 EDT
2010 i686 i686 i386 GNU/Linux
SELinux seems to be ignoring my command to enable rsync:
[root@virtCent14:~]#cobbler check
The following are potential configuration items that you may want to fix:
1 : Must enable the cobbler import and replicate commands, run:
setsebool -P rsync_disable_trans=1
[root@virtCent14:~]#setsebool -P rsync_disable_trans=1
[root@virtCent14:~]
[root@virtCent14:~]#tail -f /var/log/messages
Sep 20 00:22:40 virtCent14 setsebool: The rsync_disable_trans policy
boolean was changed to 1 by root
[root@virtCent14:~]#cobbler check
The following are potential configuration items that you may want to fix:
1 : Must enable the cobbler import and replicate commands, run:
setsebool -P rsync_disable_trans=1
==================================================================================
And I am having trouble setting the cobbler content variables for
SELinux as well:
2 : you need to set some SELinux content rules to ensure cobbler
serves content correctly in your SELinux environment, run the
following: /usr/sbin/semanage fcontext -a -t public_content_t
"/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t
"/var/www/cobbler/images/.*"
[root@virtCent14:~]#/usr/sbin/semanage fcontext -a -t public_content_t
"/tftpboot/.*" && /usr/sbin/semanage fcontext -a -t public_content_t
"/var/www/cobbler/images/.*"
/usr/sbin/semanage: File context for /tftpboot/.* already defined
3 : you need to set some SELinux rules if you want to use cobbler-web
(an optional package), run the following: /usr/sbin/semanage fcontext
-a -t httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"
[root@virtCent14:~]#/usr/sbin/semanage fcontext -a -t
httpd_sys_content_rw_t "/var/lib/cobbler/webui_sessions/.*"
libsepol.context_from_record: type httpd_sys_content_rw_t is not defined
libsepol.context_from_record: could not create context structure
libsemanage.validate_handler: invalid context
system_u:object_r:httpd_sys_content_rw_t:s0 specified for
/var/lib/cobbler/webui_sessions/.* [all files]
libsemanage.dbase_llist_iterate: could not iterate over records
/usr/sbin/semanage: Could not add file context for
/var/lib/cobbler/webui_sessions/.*
I'd appreciate some help as to how to proceed!
Thanks!!
Tim
13 years, 7 months