|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-api
[Xen-API] [PATCH] CA-37279: Stunnel error from WLB connect "No	route to  
| 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 <ewan.mellor@xxxxxxxxxxxxx>
diff -r 18ae2c860880 stunnel/stunnel.ml
--- a/stunnel/stunnel.ml        Fri Apr 23 15:08:46 2010 +0100
+++ b/stunnel/stunnel.ml        Fri Apr 23 15:43:59 2010 +0100
@@ -306,6 +306,7 @@
     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
diff -r 37ac9618bc06 ocaml/xapi/workload_balancing.ml
--- a/ocaml/xapi/workload_balancing.ml  Fri Apr 23 13:57:52 2010 +0100
+++ b/ocaml/xapi/workload_balancing.ml  Fri Apr 23 15:43:52 2010 +0100
@@ -305,6 +305,7 @@
           match error_msg with
           | "Connection refused" -> 
             raise_connection_refused ()
+          | "No route to host"
           | "No host resolved" -> 
             raise_unknown_host ()
           | "Invalid argument" -> 
 no-route-to-host.xen-api-libs.patch Description: Text Data
  no-route-to-host.xen-api.patch Description: Text Data
 _______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
 | 
 
| <Prev in Thread] | Current Thread | [Next in Thread> |  | 
[Xen-API] [PATCH] CA-37279: Stunnel error from WLB connect "No	route to host",
Ewan Mellor <=
 |  |  | 
  
    |  |  |