You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by fa...@apache.org on 2009/01/06 20:43:41 UTC

svn commit: r732078 - /incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm

Author: fapeeler
Date: Tue Jan  6 11:43:41 2009
New Revision: 732078

URL: http://svn.apache.org/viewvc?rev=732078&view=rev
Log:
jira issue VCL-14

reduced the capture_loop_count limit from 80 to 40
only write notify string to log if capture_loop_attempts >2


Modified:
    incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm

Modified: incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm
URL: http://svn.apache.org/viewvc/incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm?rev=732078&r1=732077&r2=732078&view=diff
==============================================================================
--- incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm (original)
+++ incubator/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/xCAT.pm Tue Jan  6 11:43:41 2009
@@ -1331,7 +1331,7 @@
 	sleep 120;
 
 	# Set variables to control how may attempts are made to wait for capture to finish
-	my $capture_loop_attempts = 80;
+	my $capture_loop_attempts = 40;
 	my $capture_loop_wait     = 30;
 
 	# Figure out and print how long will wait before timing out
@@ -1341,7 +1341,10 @@
 	my $image_size = 0;
 	my $nodeset_status;
 	CAPTURE_LOOP: for (my $capture_loop_count = 0; $capture_loop_count < $capture_loop_attempts; $capture_loop_count++) {
-		notify($ERRORS{'OK'}, 0, "attempt $capture_loop_count/$capture_loop_attempts: image copy not complete, sleeping for $capture_loop_wait seconds");
+		notify($ERRORS{'OK'}, 0, "image copy not complete, sleeping for $capture_loop_wait seconds");
+		if($capture_loop_attempts > 1){
+			notify($ERRORS{'OK'}, 0, "attempt $capture_loop_count/$capture_loop_attempts: image copy not complete, sleeping for $capture_loop_wait seconds");
+		}
 		sleep $capture_loop_wait;
 
 		# Get the nodeset status for the node being captured