modify the time interval used to retry rcons
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11816 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4bc914d0e6
commit
4eeaae182a
@ -256,7 +256,8 @@ sub invoke_cmd {
|
||||
my $power_state_cmd = "$fsp_api -a cec_state -t $type:$fsp_ip:$id:$node: 2>&1";
|
||||
my $res = xCAT::Utils->runcmd($power_state_cmd, -1);
|
||||
unless ($res and $res =~ /operating|standby/) {
|
||||
sleep 5;
|
||||
my $wait_interval =30+int(rand(20));
|
||||
sleep $wait_interval;
|
||||
return("The command 'rcons' is only support while the $machine is in the '$state' state");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user