Remove updatestatus from xcatd

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14528 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2012-12-03 18:53:59 +00:00
parent a951d6b551
commit d3a4f4df5b

View File

@ -354,7 +354,7 @@ if ($inet6support) {
#}
close($conn);
} elsif ($text =~ /installstatus/) {
my @tmpa=split(' ', $text);
my @tmpa=split(' ', $text);
for (my $i = 1; $i <= @tmpa-1; $i++) {
my $newstat=$tmpa[$i];
my %request = (
@ -370,24 +370,6 @@ if ($inet6support) {
#}
}
close($conn);
} elsif ($text =~ /updatestatus/) {
#update nodelist.updatestatus according to the message from cn
my @tmpa=split(' ', $text);
for (my $i = 1; $i <= @tmpa-1; $i++) {
my $newstat=$tmpa[$i];
my %request = (
command => [ 'updatenodeupdatestat' ],
node => [ $node ],
arg => [ "$newstat" ],
);
#node should be blocked, race condition may occur otherwise
#my $pid=xCAT::Utils->xfork();
#unless ($pid) { #fork off the nodeset and potential slowness
plugin_command(\%request,undef,\&build_response);
# exit(0);
#}
}
close($conn);
} elsif ($text =~ /^unlocktftpdir/) { #TODO: only nodes in install state should be allowed
mkpath("$tftpdir/xcat/$node");
chmod 01777,"$tftpdir/xcat/$node";