2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-17 20:00:19 +00:00

BMC temp nodes are not deleted after compute node discovered

This commit is contained in:
Casandra Qiu
2016-09-15 16:34:44 -04:00
parent 3d90e27584
commit 95fecae314

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 {