Author: arkurth
Date: Thu Jul  3 16:31:30 2014
New Revision: 1607691

URL: http://svn.apache.org/r1607691
Log:
VCL-769
Expanded regex to handle additional error strings.

Modified:
    vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm

Modified: vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm
URL: 
http://svn.apache.org/viewvc/vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm?rev=1607691&r1=1607690&r2=1607691&view=diff
==============================================================================
--- vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm 
(original)
+++ vcl/trunk/managementnode/lib/VCL/Module/Provisioning/VMware/VIM_SSH.pm Thu 
Jul  3 16:31:30 2014
@@ -205,9 +205,10 @@ sub _run_vim_cmd {
                elsif (grep(/already been deleted/i, @$output)) {
                        notify($ERRORS{'OK'}, 0, "attempt 
$attempt/$attempt_limit: fault occurred attempting to run command on VM host 
$vmhost_computer_name: $command, output:\n" . join("\n", @$output));
                }
-               elsif (grep(/(connection reset)/i, @$output)) {
+               elsif (grep(/(Failed to login|connection reset|SSL 
Exception)/i, @$output)) {
                        # Try to catch these errors:
                        # Failed to login: Connection reset by peer
+                       # Failed to login: SSL Exception: The SSL handshake 
timed out local: 127.0.0.1:52713 peer: 127.0.0.1:443.
                        $connection_reset_errors++;
                        notify($ERRORS{'OK'}, 0, "attempt 
$attempt/$attempt_limit: connection reset while attempting to run command on VM 
host $vmhost_computer_name: $command, output:\n" . join("\n", @$output));
                        


Reply via email to