Author: arkurth
Date: Tue Aug  1 17:58:11 2017
New Revision: 1803677

URL: http://svn.apache.org/viewvc?rev=1803677&view=rev
Log:
VCL-1066
Added to regex in State.pm::state_exit allowing the request state to change 
from pending/checkpoint to reserved.

Modified:
    vcl/trunk/managementnode/lib/VCL/Module/State.pm

Modified: vcl/trunk/managementnode/lib/VCL/Module/State.pm
URL: 
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/State.pm?rev=1803677&r1=1803676&r2=1803677&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/State.pm (original)
+++ vcl/trunk/managementnode/lib/VCL/Module/State.pm Tue Aug  1 17:58:11 2017
@@ -945,7 +945,8 @@ sub state_exit {
                
                if ($request_state_name_new) {
                        # Never set request state to failed if previous state 
is image
-                       if ($request_state_name_old =~ /(image|checkpoint)/ && 
$request_state_name_new !~ /(complete|maintenance)/) {
+                       # Allow pending/checkpoint --> reserved/checkpoint
+                       if ($request_state_name_old =~ /(image|checkpoint)/ && 
$request_state_name_new !~ /(reserved|complete|maintenance)/) {
                                notify($ERRORS{'CRITICAL'}, 0, "previous 
request state is $request_state_name_old, not setting request state to 
$request_state_name_new, setting request and computer state to maintenance");
                                $request_state_name_new = 'maintenance';
                                $computer_state_name_new = 'maintenance';


Reply via email to