mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Modify timeout of login by curl command for OpenBMC
This commit is contained in:
parent
7f3f7bec5d
commit
fd8ba44039
@ -591,7 +591,7 @@ sub process_request {
|
||||
|
||||
foreach my $node (keys %node_info) {
|
||||
if (!$valid_nodes{$node}) {
|
||||
xCAT::SvrUtils::sendmsg([1, "BMC did not respond within 10 seconds, retry the command."], $callback, $node);
|
||||
xCAT::SvrUtils::sendmsg([1, "BMC could not be connected or did not respond within 20 seconds, retry the command."], $callback, $node);
|
||||
$wait_node_num--;
|
||||
} else {
|
||||
$login_url = "$http_protocol://$node_info{$node}{bmc}/login";
|
||||
@ -1566,7 +1566,7 @@ sub login_logout_request {
|
||||
my $curl_login_cmd = "curl -c $cjar_id -k -H 'Content-Type: application/json' -X POST $request_url/login -d '" . $content_login . "'";
|
||||
my $curl_logout_cmd = "curl -b $cjar_id -k -H 'Content-Type: application/json' -X POST $request_url/logout -d '" . $content_logout . "'";
|
||||
|
||||
my $curl_login_result = `$curl_login_cmd -s -m 10`;
|
||||
my $curl_login_result = `$curl_login_cmd -s -m 20`;
|
||||
|
||||
unless ($curl_login_result) {
|
||||
if ($xcatdebugmode) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user