-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
Found another xCAT bug, this time with the /opt/xcat/sbin/configmic
that is used to bring the MIC cards up.
For some reason on our system when this script runs the values of
$nodename is the short form hostname and $nodename_short is the long
form hostname. Yet if I run hostname and hostname -s I get the
short form in both cases.
However, the wget that works is for the long form hostname.
Anyway, that's not the bug, the bug is that if $nodename_short works
the configmic script then goes on to use $nodename later on in the
script and everything fails.
With the attached patch it makes $nodename be $nodename_short if it
worked to recovery the config file from the MN and suddenly everything
works nicely, both MICs on our statelite nodes are configured and boot
to Linux. They even have working external bridges and IPs!
I've been able to get rid of a heap of our nasty work arounds for
getting them to boot with xCAT 2.8.2 so I'm pretty happy!
All the best,
Chris
- --
Christopher Samuel Senior Systems Administrator
VLSCI - Victorian Life Sciences Computation Initiative
Email: [email protected] Phone: +61 (0)3 903 55545
http://www.vlsci.org.au/ http://twitter.com/vlsci
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iEYEARECAAYFAlLosAsACgkQO2KABBYQAh9AFgCgkWCSrWA6/kGUkQuPpUOLAz7a
9KoAoIOAWRGV4SsE//fIMo6mvVzHVoi7
=H+2Y
-----END PGP SIGNATURE-----
--- /root/xCAT/Patches/configmic 2013-11-13 15:16:31.000000000 +1100
+++ /opt/xcat/sbin/configmic 2014-01-29 18:29:35.237107086 +1100
@@ -72,6 +72,10 @@
$cmd = "wget -N --waitretry=10 --random-wait -T 60 http://$master/$cfgpath/miccfg.$nodename -P $tmppath";
runsyscmd ($cmd, "Error: failed to download mic configuration file from $master\n", 3);
}
+else {
+ # Using $nodename_short was correct, so use that from now on
+ $nodename = $nodename_short;
+}
unless (-r "$tmppath/miccfg.$nodename") {
runsyscmd ("Error: cannot get the mic configuration file from http://$master/$cfgpath/miccfg.$nodename\n", 4);
------------------------------------------------------------------------------
WatchGuard Dimension instantly turns raw network data into actionable
security intelligence. It gives you real-time visual feedback on key
security issues and trends. Skip the complicated setup - simply import
a virtual appliance and go from zero to informed in seconds.
http://pubads.g.doubleclick.net/gampad/clk?id=123612991&iu=/4140/ostg.clktrk
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user