From c1a4a2b7a68138e23ca85b31c703eaa8db7ef623 Mon Sep 17 00:00:00 2001 From: zhaoertao Date: Mon, 12 Mar 2012 09:16:44 +0000 Subject: [PATCH] change the time interval used to retry rcons to more than 30 seconds git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@11817 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/cons/fsp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/share/xcat/cons/fsp b/xCAT-server/share/xcat/cons/fsp index f6e6fc8c0..268001417 100755 --- a/xCAT-server/share/xcat/cons/fsp +++ b/xCAT-server/share/xcat/cons/fsp @@ -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"); }