Wierdness
by Alex Davies
Hi Everyone,
I just "updated" my cobbler setup (yum -y update) and I have a bizarre
problem with a previously-working setup. It seems that now the network does
not work properly. When I kickstart a machine, if I ping the (temporary)
DHCP address that the machine is allocated I get three distinct phases:
[ While initial boot ]
>From 10.5.10.5 icmp_seq=90 Destination Host Unreachable
>From 10.5.10.5 icmp_seq=91 Destination Host Unreachable
>From 10.5.10.5 icmp_seq=92 Destination Host Unreachable
["Sending request for IP Information"]
64 bytes from 10.5.10.23: icmp_seq=93 ttl=64 time=1383 ms
64 bytes from 10.5.10.23: icmp_seq=94 ttl=64 time=383 ms
[ 2 or 3 pings later, when it attempts to download stage2.img - back
to Destination Host unreachable just packet loss ]
On the cobbler server, I get what seems to be a normal output:
Dec 23 18:43:33 gcisvlin-cobbler dhcpd: DHCPDISCOVER from 00:50:56:ac:5d:50
via eth1
Dec 23 18:43:34 gcisvlin-cobbler dhcpd: DHCPOFFER on 10.5.10.23 to
00:50:56:ac:5d:50 via eth1
Dec 23 18:43:35 gcisvlin-cobbler dhcpd: DHCPREQUEST for 10.5.10.23
(10.5.10.5) from 00:50:56:ac:5d:50 via eth1
Dec 23 18:43:35 gcisvlin-cobbler dhcpd: DHCPACK on 10.5.10.23 to
00:50:56:ac:5d:50 via eth1
Dec 23 18:43:36 gcisvlin-cobbler in.tftpd[3530]: tftp: client does not
accept options
Dec 23 18:43:56 gcisvlin-cobbler dhcpd: DHCPDISCOVER from 00:50:56:ac:5d:50
via eth1
Dec 23 18:43:56 gcisvlin-cobbler dhcpd: DHCPOFFER on 10.5.10.23 to
00:50:56:ac:5d:50 via eth1
Dec 23 18:43:56 gcisvlin-cobbler dhcpd: DHCPREQUEST for 10.5.10.23
(10.5.10.5) from 00:50:56:ac:5d:50 via eth1
Dec 23 18:43:56 gcisvlin-cobbler dhcpd: DHCPACK on 10.5.10.23 to
00:50:56:ac:5d:50 via eth1
Has anyone seen this before? Any pointers? I can't see any obvious error
from the kickstart output, but even in tty3 it flashes past pretty fast.
Unfortunately, it dies before I get to a shell so I can't really debug
further, as it can't download stage2.img.
If it helps, both cobbler and client are VMWare ESX guests, and the cobbler
server has been used to kickstart a large number of other guests before! I
updated VMWare tools (on the cobbler server) during the upgrade, not sure if
that might be relevant.
Many thanks,
Alex
15 years, 4 months
FYI on cobbler 1.4 rpm
by Michael DeHaan
If you have any /etc/cobbler/*.ks*.rpmnew files, the %post section of
the RPM will try to delete them, and it will suceed.
The solution looks to be to not have the RPM try to do so much cleanup
when moving kickstarts to /var/lib/cobbler/kickstarts, and will be
included in the next release.
Meanwhile, when upgrading cobbler, I'd suggest backing up your
/etc/cobbler. Cobbler's RPM itself should take care of generating a
backup of /var/lib/cobbler, though it doesn't hurt to make one of those
as well, as a generally good practice. Making regular backups of both
paths is a good idea in general and we should probably create a cobbler
subcommand to assist with that.
--Michael
15 years, 4 months
cobbler replicate bombs as non-root-user in 1.2.9
by Stefan Hermes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
cobbler replicate bombs when i try to replicate a repository.
I gave the non-root-user rights via cobbler aclsetup --adduser
on source and target machine.
The problem lies in the options given to rsync: -avz only works for
root-users, als this implies setting ownership of the files, as this
fails rsync returns with code 23.
To fix this, the options would have to be changed to -rltDv at least
when running as non-root.
Thanks for fixing ;)
-Stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAklPtmQACgkQ5WhAoklHLANh2gCeIEYy+NcFW3oVpzOyRtey6AW2
YmQAnRpdznxN5I5GIqkbbgIu8OP8sXpT
=8sEE
-----END PGP SIGNATURE-----
15 years, 4 months
[PATCH] Fix typo's causing %post to fail
by James Laska
---
snippets/post_install_network_config | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/snippets/post_install_network_config b/snippets/post_install_network_config
index ec9f15e..6166a1d 100644
--- a/snippets/post_install_network_config
+++ b/snippets/post_install_network_config
@@ -34,7 +34,7 @@
#set $i = 0
## setup bonding if we have to
#if $numbondingdevs > 0
-if [-x "/etc/modprobe.conf"]; then;
+if [ -x "/etc/modprobe.conf" ]; then
echo "options bonding max_bonds=$numbondingdevs" >> /etc/modprobe.conf
fi
#end if
@@ -78,7 +78,7 @@ mv /etc/sysconfig/network.cobbler /etc/sysconfig/network
## if this is a bonded interface, configure it in modprobe.conf
#if $bonding.lower() == "master"
## Add required entry to modprobe.conf
-if [-x "/etc/modprobe.conf"]; then
+if [ -x "/etc/modprobe.conf" ]; then
echo "alias $iname bonding" >> /etc/modprobe.conf.cobbler
fi
#end if
@@ -88,7 +88,7 @@ fi
IFNAME=\$(ifconfig -a | grep -i '$mac' | cut -d ' ' -f 1)
## Rename this interface in modprobe.conf
## FIXME: if both interfaces startwith eth this is wrong
-if [-x "/etc/modprobe.conf"]; then;
+if [ -x "/etc/modprobe.conf" ]; then
grep \$IFNAME /etc/modprobe.conf | sed "s/\$IFNAME/$iname/" >> /etc/modprobe.conf.cobbler
grep -v \$IFNAME /etc/modprobe.conf >> /etc/modprobe.conf.new
rm -f /etc/modprobe.conf
@@ -221,7 +221,7 @@ echo "$network via $router" >> $routesfile
rm -f /etc/sysconfig/network-scripts/ifcfg-*
mv /etc/sysconfig/network-scripts/cobbler/* /etc/sysconfig/network-scripts/
rm -r /etc/sysconfig/network-scripts/cobbler
-if [-x "/etc/modprobe.conf"]; then;
+if [ -x "/etc/modprobe.conf" ]; then
cat /etc/modprobe.conf.cobbler >> /etc/modprobe.conf
rm -f /etc/modprobe.conf.cobbler
fi
--
1.6.0.4
15 years, 4 months
Not sure if import is working for me
by Tim Largy
I'm using cobbler 1.3.4 installed on a Fedora 9 system, where I had
built cobbler from the source rpm. When importing Fedora 10 I have
error messages, but I'm not sure if I need to worry about any of
them--I'm seeking advice on this.
Keep in mind that when I ran the import, I had run it before, but
never got everything working, and so I decided to start with a clean
slate. I deleted /var/www/cobbler and also ran "cobbler profile
remove" and "cobbler distro remove" (with appropriate names) to
obliterate all evidence of my previous import, which I verified by
running "cobbler report". Yet the import said "warning: skipping
import, as distro name already exists: Fedora-10-i386". It seems that
there was residue from the previous import. My import command looked
like this:
cobbler import --path /mnt --name Fedora-10 --arch x86
where /mnt had the Fedora 10 DVD mounted. I've attached the tail end
of the import command.
Tim
15 years, 4 months
[PATCH] Provides validation for the image file argument.
by Darryl L. Pierce
Checks for the standard fields for a URL, and enforces some simple
requirements.
An exception is raised if the filename:
* has a hostname but not a protocol and port,
* has a protocol but not hostname
Signed-off-by: Darryl L. Pierce <dpierce(a)redhat.com>
---
cobbler/item_image.py | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/cobbler/item_image.py b/cobbler/item_image.py
index 98e0255..2ce6738 100644
--- a/cobbler/item_image.py
+++ b/cobbler/item_image.py
@@ -113,11 +113,26 @@ class Image(item.Item):
def set_file(self,filename):
"""
Stores the image location. This should be accessible on all nodes
- that need to access it. Format: either /mnt/commonpath/foo.iso or
+ that need to access it. Format: either /mnt/commonpath/foo.iso or
nfs://host/path/foo.iso
"""
# FIXME: this should accept NFS paths or filesystem paths
- self.file = filename
+ uri = filename
+
+ protocol = auth = hostname = port = path = file = ""
+ if filename.find("://") != -1: protocol, filename = filename.split("://")
+ if filename.find("@") != -1: auth, filename = filename.split("@")
+ if filename.find("/") > 0: hostname, filename = filename.split("/", 1)
+ if hostname.find(":") != -1: hostname, port = hostname.split(":")
+ if filename.find("/") != -1: path, filename = filename.rsplit("/", 1)
+
+ if len(filename) == 0: raise CX(_("missing filename"))
+ if len(hostname) > 0 and len(protocol) == 0 and len(port) == 0:
+ raise CX(_("if protocol is not supplied then a port must be provided"))
+ if len(hostname) == 0 and len(protocol) > 0:
+ raise CX(_("no hostname supplied but is required for protocol"))
+
+ self.file = uri
return True
def set_os_version(self,os_version):
--
1.6.0.6
15 years, 4 months
Enable improved installation monitoring
by James Laska
Greetings,
The following patches are intended to replace cobbler's use of syslog=$server. This set of patches introduces a new snippet intended to run in %pre. The snippet will download a python script called 'anamon.py' from your cobbler server. This script "borrows" _heavily_ code written by Mike McLean which is included in koji. This service will monitor your installing system and send logfile changes back to your cobbler server using xmlrpclib. In addition to just /tmp/anaconda.log, the script will monitor your installation for changes to the following files:
* /tmp/anaconda.log
* /tmp/syslog
* /tmp/lvmout
* /tmp/ks.cfg
* /tmp/ks-script.log
* /tmp/anacdump.txt
* /tmp/modprobe.conf
* /mnt/sysimage/root/install.log
* /mnt/sysimage/tmp/install.log
* /mnt/sysimage/root/upgrade.log
* /mnt/sysimage/tmp/upgrade.log
Any changes to these files are sent incrementally back to the server. Note that the anaconda traceback file '/tmp/anacdump.txt' is included in this list. Having this file sent back to the cobbler server can be very useful for failure analysis.
This service is disabled by default and controlled using the anamon_enabled option in /etc/cobbler/settings.
The patches are included in this thread, and also available at git://fedorapeople.org/~jlaska/cobbler.git
Thanks,
James
15 years, 4 months
[PATCH] Added suse as distribution type in action_check.py
by Kevin James
Another SuSE-related patch. This one fixes "cobbler check" so that it
doesn't see suse as an unknown distribution when checking the running
services. It also checks for service apache2 instead of httpd if the
distro is SuSE.
---
cobbler/action_check.py | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/cobbler/action_check.py b/cobbler/action_check.py
index 99fffbb..416267f 100644
--- a/cobbler/action_check.py
+++ b/cobbler/action_check.py
@@ -95,7 +95,7 @@ class BootCheck:
if notes != "":
notes = " (NOTE: %s)" % notes
rc = 0
- if utils.check_dist() == "redhat":
+ if utils.check_dist() == "redhat" or utils.check_dist() ==
"suse":
if os.path.exists("/etc/rc.d/init.d/%s" % which):
rc = sub_process.call("/sbin/service %s status
>/dev/null 2>/dev/null" % which, shell=True, close_fds=True)
if rc != 0:
@@ -185,7 +185,10 @@ class BootCheck:
"""
Check if Apache is installed.
"""
- self.check_service(status,"httpd")
+ if utils.check_dist()=="suse":
+ self.check_service(status, "apache2")
+ else:
+ self.check_service(status,"httpd")
def check_dhcpd_bin(self,status):
--
1.5.6
--
Kevin James
Applied Technology Senior Strategist
Novell Global Enablement
------------------------
Novell, Inc.
http://www.novell.com
15 years, 4 months
[Prototype] System operations from system list
by Vreman, Peter
I have extended the prototype i'm working on for the system editing. Attached is a new patch that implements the following things:
Buttons above the system list
Support Add/Rename/Delete operations from the system list
Support changing netboot/profile on multiple systems
Support power control on multiple systems (requires remote power_api patch)
Comments are welcome.
Regards
Peter
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
15 years, 4 months
ipv6 still enabled
by Frank.Brodbeck@klingel.de
Hi list,
I'm trying to provision systems with cobbler/pxe and am experiencing
a hard time as I don't know how to disable ipv6. The according section
of my kickstart file is as follows:
network --bootproto=static --hostname=foo.bar.tld --ip=192.168.27.21
--netmask=255.255.255.0 --gateway=192.168.27.1 --onboot=on --noipv6
--nameserver=192.168.27.11,192.168.137.11
though it clearly says --noipv6 and /etc/sysconfig/network has ipv6
disabled:
# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=foo.bar.tld
GATEWAY=192.168.27.1
the systems still comes with ipv6 enabled and sit0 is up and running
(and handling connections). Software versions are:
cobbler.noarch 1.2.9-1.el5
All the systems are CentOS 5.2. Can anyone point my nose to why
there's still ipv6 enabled?
TIA,
Frank.
--
Robert Klingel GmbH + CoKG....Client-Server/Datenbank Administration
Sachsenstr. 23.............................frank.brodbeck(a)klingel.de
D-75177 Pforzheim............................Phone: 0049-7231-901491
15 years, 4 months