Here is a fix to setup_pxe so it fails if oscar_server private iface is not 
registered into the Nics table.
I fell into this problem because for unknown reason (my oscar_server in not 
registered into the Nics table).

-- 
        Olivier LAHAYE
        CEA Saclay
        DRT-LIST-DETECS-SSTM
--- /usr/bin/setup_pxe.orig	2009-11-26 14:17:12.000000000 +0100
+++ /usr/bin/setup_pxe	2009-11-26 14:54:05.000000000 +0100
@@ -182,6 +182,9 @@
         "compute nodes ($node, $iface)";
 }
 
+die "ERROR: Can't get oscar_server nodes nic ip address from OSCAR database."
+    if( scalar(@result) == 0);
+
 my $node_ref = pop @result;
 my $ip = $$node_ref{ip};
 my $pxelinux_dir = "/usr/lib/syslinux"; # default directory containing pxelinux.0
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to