2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Merge pull request #1845 from cxhong/1752

BMC temp nodes are not deleted after compute node discovered
This commit is contained in:
zet809 2016-09-20 10:42:44 +08:00 committed by GitHub
commit 31c5adb897

View File

@ -424,7 +424,14 @@ sub process_request {
if (defined($request->{bmc_node}) and defined($request->{bmc_node}->[0])) {
my $bmc_node = $request->{bmc_node}->[0];
syslog("local4|info", "Found node corresponding to BMC=$bmc_node, removing it...");
$doreq->({ command => ['rmdef'], arg => [$bmc_node] });
my $rmcmd = "rmdef $bmc_node";
xCAT::Utils->runcmd($rmcmd, 0);
if ($::RUNCMD_RC != 0)
{
syslog("local4|info", "Failed to remove $bmc_node from xCAT");
} else {
syslog("local4|info", "$bmc_node definition removed from xCAT");
}
}
} else {