Hav ipmi plugin provide a site variable to disable service node fanout 'ipmifanout' to 0 will bypass service nodes (recommended IMO)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11621 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-02-18 20:40:09 +00:00
parent c996664219
commit 63014585a9

View File

@ -5471,7 +5471,12 @@ sub preprocess_request {
@noderanges=($realnoderange);
}
foreach my $noderange (@noderanges) {
my $sn = xCAT::Utils->get_ServiceNode($noderange, "xcat", "MN");
my $sn;
if ($::XCATSITEVALS{ipmifanout} =~ /0|n/i) {
$sn = { '!xcatlocal!' => $noderange };
} else {
$sn = xCAT::Utils->get_ServiceNode($noderange, "xcat", "MN");
}
# build each request for each service node
@ -5480,7 +5485,9 @@ sub preprocess_request {
#print "snkey=$snkey\n";
my $reqcopy = {%$request};
$reqcopy->{node} = $sn->{$snkey};
$reqcopy->{'_xcatdest'} = $snkey;
unless ($snkey eq '!xcatlocal!') {
$reqcopy->{'_xcatdest'} = $snkey;
}
$reqcopy->{_xcatpreprocessed}->[0] = 1;
if ($delay) { $reqcopy->{'_xcatdelay'} = $delay; }
push @requests, $reqcopy;