Revert "fixed a defect when snmove failed if the source service node is down. defect 3487610"
This reverts commit 73a31e731517ce234f85f23ce391b3fce1169b76. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@12391 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
dfaf88f244
commit
6df0c51504
@ -795,7 +795,6 @@ sub process_request
|
||||
|
||||
}
|
||||
|
||||
#print "sn_hash=" . Dumper(%sn_hash) . "\n";
|
||||
# update the node definitions #1
|
||||
if (keys(%sn_hash) > 0)
|
||||
{
|
||||
@ -810,7 +809,6 @@ sub process_request
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# handle conserver
|
||||
#
|
||||
@ -826,7 +824,6 @@ sub process_request
|
||||
}
|
||||
}
|
||||
|
||||
#print "sn_hash=" . Dumper(%sn_hash) . "\n";
|
||||
# update the node definition #2
|
||||
if (keys(%sn_hash1) > 0)
|
||||
{
|
||||
@ -978,7 +975,7 @@ sub process_request
|
||||
if ($::islinux)
|
||||
{
|
||||
|
||||
#tftp, dhcp and nfs (site.disjointdhcps should be set to 1 ?)
|
||||
#tftp, dhcp and nfs (site.disjointdhcps should be set to 1)
|
||||
|
||||
# get a list of nodes for each provmethod
|
||||
my %nodeset_hash;
|
||||
@ -1014,11 +1011,12 @@ sub process_request
|
||||
},
|
||||
$sub_req, 0, 1
|
||||
);
|
||||
|
||||
my $rsp;
|
||||
$rsp->{data}=$ret;
|
||||
xCAT::MsgUtils->message("I", $rsp, $callback);
|
||||
if ($::RUNCMD_RC != 0) {
|
||||
if ($::RUNCMD_RC != 0)
|
||||
{
|
||||
my $rsp;
|
||||
push @{$rsp->{data}},
|
||||
"Could not run the nodeset command.\n";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
|
@ -144,6 +144,17 @@ if [ "$MODE" = "4" ]; then # for statelite mode
|
||||
fi
|
||||
else # for common mode
|
||||
downloaded=0;
|
||||
#open the xcatinfo file to look for the master if it is not set
|
||||
if [ -f /opt/xcat/xcatinfo ]; then
|
||||
SIP=`grep 'XCATSERVER' /opt/xcat/xcatinfo |cut -d= -f2`
|
||||
if [ -n "$SIP" ]; then
|
||||
download_postscripts $SIP
|
||||
if [ $? -eq 0 ]; then
|
||||
downloaded=1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
#try the -m if it is specified, -m is passed in the updatenode command
|
||||
if [ $downloaded -eq 0 ]; then
|
||||
if [ "XX$P_SIP" != "XX" ]; then
|
||||
@ -154,20 +165,6 @@ else # for common mode
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
#open the xcatinfo file to look for the master if it is not set
|
||||
if [ $downloaded -eq 0 ]; then
|
||||
if [ -f /opt/xcat/xcatinfo ]; then
|
||||
SIP=`grep 'XCATSERVER' /opt/xcat/xcatinfo |cut -d= -f2`
|
||||
if [ -n "$SIP" ]; then
|
||||
download_postscripts $SIP
|
||||
if [ $? -eq 0 ]; then
|
||||
downloaded=1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
#try the dhcp server, this is used for initial boot for the node.
|
||||
if [ $downloaded -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user