From: Ewan Mellor Date: Thu, 29 Apr 2010 09:22:07 +0000 (+0100) Subject: CA-37279: Stunnel error from WLB connect "No route to host" X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=34e0d728dd87c0f633d8ec4d0e33481dc9bdaa42;p=xcp%2Fxen-api-libs.git CA-37279: Stunnel error from WLB connect "No route to host" 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 --- diff --git a/stunnel/stunnel.ml b/stunnel/stunnel.ml index 86e48d4..249365d 100644 --- a/stunnel/stunnel.ml +++ b/stunnel/stunnel.ml @@ -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