Take out bad host processing until redesign to get rid of inf loop in getdata
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13727 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
696c1b486a
commit
c5f1214469
@ -567,16 +567,18 @@ sub preprocess_updatenode
|
||||
my @tmp_a = split(',', $snkey);
|
||||
foreach my $s1 (@tmp_a)
|
||||
{
|
||||
if ( $::SECURITY
|
||||
&& !(grep /^$s1$/, @::good_sns) # is it good
|
||||
&& !(grep /^$s1$/, @MNip)) # is the MN
|
||||
{
|
||||
my $rsp;
|
||||
push @{$rsp->{data}},
|
||||
"The security update for service node $snkey encountered error, update security for following nodes will be skipped: @{$sn->{$snkey}}";
|
||||
xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
next;
|
||||
}
|
||||
# TODO fix the error handling, right now cause inf loop
|
||||
# when getdata and updatenode_cb are registered LKV
|
||||
# if ( $::SECURITY
|
||||
# && !(grep /^$s1$/, @::good_sns) # is it good
|
||||
# && !(grep /^$s1$/, @MNip)) # is the MN
|
||||
# {
|
||||
# my $rsp;
|
||||
# push @{$rsp->{data}},
|
||||
# "The security update for service node $snkey encountered error, update security for following nodes will be skipped: @{$sn->{$snkey}}";
|
||||
# xCAT::MsgUtils->message("E", $rsp, $callback);
|
||||
# next;
|
||||
# }
|
||||
|
||||
# remove the service node which have been handled before
|
||||
#if ($::SECURITY && (grep /^$s1$/, @MNip))
|
||||
|
Loading…
Reference in New Issue
Block a user