From 34e0d728dd87c0f633d8ec4d0e33481dc9bdaa42 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Thu, 29 Apr 2010 10:22:07 +0100 Subject: [PATCH] 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 --- stunnel/stunnel.ml | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5