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, 2 months
F14 beta python-cheetah regression
by Chad Huneycutt
I am relaying this to the list in case anyone else gets bitten. I
can't take any credit for the solution; heffer on #cobbler had already
worked through this.
In my case, the symptom was that when I tried to generate kickstarts,
if there were any $SNIPPET macros in the kickstart template, I would
see the following behaviour:
[root@yoda-1 Cheetah]# cobbler system getks --name=jedi000
# *** ERROR ***
#
# There is a templating error preventing this file from rendering correctly.
#
# This is most likely not due to a bug in Cobbler and is something you can fix.
#
# Look at the message below to see what things are causing problems.
#
# (1) Does the template file reference a $variable that is not defined?
# (2) is there a formatting error in a Cheetah directive?
# (3) Should dollar signs ($) be escaped that are not being escaped?
#
# Try fixing the problem and then investigate to see if this message goes
# away or changes.
#
#
# SNIPPET() takes exactly 2 arguments (1 given)
# File "/usr/lib/python2.7/site-packages/cobbler/templar.py", line
121, in render
# data_out = t.respond()
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1288193687_92_18157.py",
line 258, in respond
#
# File "cheetah_DynamicallyCompiledCheetahTemplate_1288193687_92_18157.py",
line 84, in __errorCatcher3
#
# File "<string>", line 1, in <module>
#
heffer tracked it down to this Cheetah commit:
http://github.com/rtyler/cheetah/commit/43d7cbe361a3fe73dc20337e544144b8c...
If you remove the lines added by that commit, then things work better.
I don't pretend to understand this problem beyond that, though, so
either cobbler or cheetah may need to be further modified to
differently attack the problem that commit was addressing.
--
Chad M. Huneycutt
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
Cobbler -- "No DHCP or proxyDHCP offers"
by Frank
Hello All:
Someone from this list was so very kind several weeks ago to help me
installing Cobbler 2.003 on a VPS server account. It ha snow stopped
working, and I can;t figure out why so.
When looking at what happens at the server via KVM (I tried this with
several presently unused servers) I see that the server is set up to
look for Cobbler, but can't find it (sorry about my terminology):
-------------------
Intel(R) Boot Agent GE v.1.3.31 IBA GE Slot 00C8 v1331 PXE 2.1 Build 086
Copyright (C) 1997-2009, Intel Corporation
CLIENT MAC ADDRESS: 00 27 0E UW 37 CF GUID: 6400C22C A4A0 11DE ...
PXE-E51: No DHCP or proxyDHCP offers were received.
PXE-M0F: Exiting Intel Boot Agent.
Boot Failure
Press any key to continue
-------------------
The MAC Address above has been altered ... but I am in Cobbler I sure
entered the correct one, and the correct IP also.
Would it make any difference is the server already has a working OS
installed (which is the case in all servers I tried)?
Is there anyone who could possibly help me with this? I am willing to pay.
Also, would it make any different
Best wishes,
Frank
13 years, 4 months
Configuring an IB Interface at Bringup
by Paul Monday
I've searched the archives but will admit to being a bit of a n00b here
:( So apologies if this is covered. I'm using the Sun HPC distro but
it's not supported anymore. I've found adding an IB interface to deal
with IP over IB isn't working well for me. I configured the system with
a single ethernet port that I boot off of (diskless), it works well
{'eth0': {'bonding': '',
'bonding_master': '',
'bonding_opts': '',
'dhcp_tag': '',
'dns_name': 'pga-n0',
'ip_address': '10.10.10.20',
'mac_address': '00:xx:yy:zz:aa:bb',
'static': 'True',
'static_routes': [],
'subnet': '255.255.255.0',
'virt_bridge': ''},
Once it was up, I wanted to add an additional interface to the system in
cobbler to bring up an IP address on the IB card, ib0. I grabbed the
hwaddr off of the ifconfig from the system (I also tried the port guid)
and added the interface:
cobbler system edit --name=pga-n0 --mac=
80:00:00:xx:yy:zz:00:00:00:00:00:00:00:00:00:00:00:00:00:00
--ip=10.13.90.10 --subnet=255.255.2550.0 --hostname=pga-n0-ib0
--interface=ib0 --dns-name=pga-n0-ib0
No luck. Has anyone brought up an IB port on a diskless system?
Paul Monday
13 years, 5 months
Cobbler doesn't run post-install triggers (#530 )
by Lars Kellogg-Stedman
Hello all,
I'm trying to figure out what's going on with
https://fedorahosted.org/cobbler/ticket/530. This defect was
originally reported (almost exactly 11 months ago) before 2.0.2, but
2.0.3.1 still suffers from the problem. As written, cobbler will
*never* successfully call shell-style install/post triggers. Because
subprocess_call() is called with logger=None, all the attribute
references on logger fail.
The calling chain: remote.run_install_triggers() calls
utils.run_triggers() and does not provide the logger= keyword
argument.
There's a fix suggested in the ticket, but that just patches the
problem. This seems to be the right fix, to cobbler/remote.py:
--- remote.py 2010-10-28 21:46:28.000000000 -0400
+++ remote.py.new 2010-10-28 21:46:18.000000000 -0400
@@ -1205,7 +1205,7 @@
# time if reinstalling all of a cluster all at once.
# we can do that at "cobbler check" time.
- utils.run_triggers(self.api, None,
"/var/lib/cobbler/triggers/install/%s/*" % mode,
additional=[objtype,name,ip])
+ utils.run_triggers(self.api, None,
"/var/lib/cobbler/triggers/install/%s/*" % mode,
additional=[objtype,name,ip], logger=self.logger)
13 years, 5 months
Checking for Interfaces using XMLRPC
by Robert Becker
Our builds differ in the sense that sometimes they have one interface and other times they have two. I'm having difficulty determining if a system profile has one or two interfaces. If I attempt to run this code on a system that doesn't have an eth2 interface Cheetah errors out.
#if $getVar($interfaces['eth2'].get('ip_address')) != ''
echo "$interfaces['eth2'].get('ip_address','') $bkuphostname $bkuphost" >> /etc/hosts
#end if
I've tried using $varExists, not using the $getVar and just listing the interface, and a few other variations. Each one produces the same outcome.. Any reference to eth2 will cause Cheetah to crash.
Does anyone have any thoughts/ ideas on how to check what interfaces are in a system profile? Or how to accomplish this?
Thanks.
Rob Becker
This communication is for informational purposes only. It is not
intended as an offer or solicitation for the purchase or sale of
any financial instrument or as an official confirmation of any
transaction. All market prices, data and other information are not
warranted as to completeness or accuracy and are subject to change
without notice. Any comments or statements made herein do not
necessarily reflect those of JPMorgan Chase & Co., its subsidiaries
and affiliates.
This transmission may contain information that is privileged,
confidential, legally privileged, and/or exempt from disclosure
under applicable law. If you are not the intended recipient, you
are hereby notified that any disclosure, copying, distribution, or
use of the information contained herein (including any reliance
thereon) is STRICTLY PROHIBITED. Although this transmission and any
attachments are believed to be free of any virus or other defect
that might affect any computer system into which it is received and
opened, it is the responsibility of the recipient to ensure that it
is virus free and no responsibility is accepted by JPMorgan Chase &
Co., its subsidiaries and affiliates, as applicable, for any loss
or damage arising in any way from its use. If you received this
transmission in error, please immediately contact the sender and
destroy the material in its entirety, whether in electronic or hard
copy format. Thank you.
Please refer to http://www.jpmorgan.com/pages/disclosures for
disclosures relating to European legal entities.
13 years, 5 months
xmlrpc - remove system interface
by Johan De Wit
Hi,
Cobbler 1.6.8
coding in PHP
We are using xmlrpc to sync system data stored in ldap to cobbler.
Is it possible to remove one interface from a system stored in cobbler ?
The only xmlrpc function I can find is "modify-interface"
So I tried to NULLify all vars of the interface-ethX array, but this
gives an error.
This is the expert of the code of my attempt to delete the interface.
# cleanup/remove interfaces not in ldap anymore
foreach ( $this->ldapHost["interfaces"] as $key => $value ) {
$empty_interface=array(
"macaddress-" . $value["name"] => NULL,
"ipaddress-" . $value["name"] => NULL,
"gateway-" . $value["name"] => NULL,
"virtbridge-" . $value["name"] => NULL,
"dnsname-" . $value["name"] => NULL,
"static-" . $value["name"] => NULL,
"dhcptag-" . $value["name"] => NULL,
"staticroutes-" . $value["name"] => NULL
);
$this->cobbler_connection->send(new
xmlrpcmsg('modify_system', array(new xmlrpcval($handle,"string"), new
xmlrpcval("modify-interface","string"),
new
xmlrpcval($empty_interface,"struct"), new
xmlrpcval($this->cobbler_token,"string"))));
}
This gives following result :
Array
(
[macaddress-eth0] =>
[ipaddress-eth0] =>
[gateway-eth0] =>
[virtbridge-eth0] =>
[dnsname-eth0] =>
[static-eth0] =>
[dhcptag-eth0] =>
[staticroutes-eth0] =>
)
PHP Fatal error: Call to a member function serialize() on a non-object
in /opt/scripts/xmlrpc.inc on line 2974
Removing the system from cobbler, and recreating it, is not an option.
Anyone who knows a way to achieve this ?
In the meantime, I'm trying to put a ldap -> cobbler sync module
together using cobbler modules and python.
But for now, the php script is doing the job, except for deleting the
interfaces.
Thx
Johan
13 years, 5 months
redhat management key
by Bill Gunter
I'm using cobbler 2.0.3.1 with Spacewalk 1.0 and having a strange problem
with system registration after kickstart. I cloned a kickstart profile,
changed the Base channel, and used it to kickstart a system. After it
finished I noticed it wasn't registered to spacewalk. Looking at the
ks-post.log I see this:
Error Message:
Conflicting base channels
Error Class Code: 63
Error Class Info: Conflicting activation tokens
So, I check the profile and see that an activation key is selected that
specifies the Base channel from the profile. So, as a test, I changed that
to "Spacewalk Default" and tried again. This time no conflict, but the
system is registered to the old Base channel. My question is how can I
determine what is specified by the Redhat Management Key in the cobbler
profile report:
- cut -
Owners : ['admin']
Parent Profile :
Red Hat Management Key :
1-e7d85809b7913c1c8df27d923f3471da,1-prod-rhel-5-64
Red Hat Management Server : <<inherit>>
Repos : []
Server Override : <<inherit>>
- cut -
The second key I know, but what about 1-e7d85809b7913c1c8df27d923f3471da?
Thanks,
Bill
--
Bill Gunter
tulanian(a)gmail.com
http://www.gunternation.com
http://www.readymealreview.com
"I think we delight to praise what we enjoy because the praise not merely
expresses but completes the enjoyment; it is its appointed consummation."
Reflections on the Psalms, C.S. Lewis
Spread Firefox!
http://www.spreadfirefox.com/?q=affiliates&id=22494&t=1
13 years, 5 months
Variables in Kickstart Files
by McEvoy, James
Where can I find a list of variables and that can be used in a kickstart file like the following one for network installation.
url --url=$tree
13 years, 5 months