WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] CA-37279: Stunnel error from WLB connect "No route to

To: Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] CA-37279: Stunnel error from WLB connect "No route to host"
From: Ewan Mellor <ewan.mellor@xxxxxxxxxxxxx>
Date: Fri, 23 Apr 2010 18:45:11 +0100
Delivery-date: Fri, 23 Apr 2010 10:45:29 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.18 (2008-05-17)
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" -> 

Attachment: no-route-to-host.xen-api-libs.patch
Description: Text Data

Attachment: 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 <=