]> xenbits.xensource.com Git - xcp/xen-api-libs.git/commitdiff
CA-37279: Stunnel error from WLB connect "No route to host"
authorEwan Mellor <ewan.mellor@eu.citrix.com>
Thu, 29 Apr 2010 09:22:07 +0000 (10:22 +0100)
committerEwan Mellor <ewan.mellor@eu.citrix.com>
Thu, 29 Apr 2010 09:22:07 +0000 (10:22 +0100)
Understand "No route to host" as an expected error message from stunnel, and turn that into API error WLB_UNKNOWN_HOST if we see it when contacting WLB.

This is two patches, one for xen-api-libs.hg, and one for xen-api.hg.

Signed-off-by: Ewan Mellor <ewan.mellor@eu.citrix.com>
stunnel/stunnel.ml

index 86e48d441018dc76513593bf377f3ef7d857bda0..249365d6076d00675d8e54d1427444924cd4d3b1 100644 (file)
@@ -306,6 +306,7 @@ let diagnose_failure st_proc =
     check_verify_error line;
     check_error "Connection refused" line;
     check_error "No host resolved" line;
+    check_error "No route to host" line;
     check_error "Invalid argument" line in
   Unixext.readfile_line check_line st_proc.logfile
   (* If we reach here the whole stunnel log should have been gone through