[padb] r406 committed - Match up hostnames where node hostnames are short but the resource man...
padb at googlecode.com
padb at googlecode.com
Sun Oct 31 21:01:21 GMT 2010
Revision: 406
Author: apittman at gmail.com
Date: Sun Oct 31 14:00:13 2010
Log: Match up hostnames where node hostnames are short but the resource
manager
is providing qualified domain names.
http://code.google.com/p/padb/source/detail?r=406
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Sun Oct 31 13:36:52 2010
+++ /trunk/src/padb Sun Oct 31 14:00:13 2010
@@ -9627,6 +9627,20 @@
}
$hostname = $new_name;
}
+
+ # We didn't match on the hostname and we haven't matched by
removing
+ # a domainname from our hostname so now try walking to list of
specified
+ # hosts to see if any of them shorten to the current hostname.
+ if ( not defined $cmd->{pd}{$hostname} ) {
+ foreach my $target_host ( keys %{ $cmd->{pd} } ) {
+ my ($short_target) = split $PERIOD, $target_host;
+ if ( $short_target eq $hostname ) {
+ $hostname = $target_host;
+ }
+ }
+
+ }
+
foreach my $rank ( keys %{ $cmd->{pd}{$hostname} } ) {
register_target_process( $rank, $cmd->{pd}{$hostname}{$rank} );
}
More information about the padb-devel
mailing list