mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-23 14:35:38 +00:00
When there is a problem with the login, do not hide the message on debug mode. BMCReady does not make sense if the admin does not know how to find that state
This commit is contained in:
@ -685,7 +685,7 @@ sub process_request {
|
||||
|
||||
foreach my $node (keys %node_info) {
|
||||
if (!$valid_nodes{$node}) {
|
||||
xCAT::SvrUtils::sendmsg([1, "BMC did not respond. Verify BMC is in BMCReady state and retry the command."], $callback, $node);
|
||||
xCAT::SvrUtils::sendmsg([1, "BMC did not respond. Validate BMC configuration and retry the command."], $callback, $node);
|
||||
$wait_node_num--;
|
||||
} else {
|
||||
$login_url = "$http_protocol://$node_info{$node}{bmc}/login";
|
||||
@ -1844,10 +1844,7 @@ sub login_logout_request {
|
||||
my $login_response = $brower->request($login_request);
|
||||
|
||||
if ($login_response->status_line =~ /500 Can't connect to/ or $login_response->status_line =~ /500 read timeout/) {
|
||||
if ($xcatdebugmode) {
|
||||
my $debug_info = "LOGIN Failed using curl command";
|
||||
process_debug_info($node, $debug_info);
|
||||
}
|
||||
xCAT::SvrUtils::sendmsg([1 ,"Login to BMC failed. Status: " . $login_response->status_line . "."], $callback, $node);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user