[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 17/24] make-hosts-flight: Impose a timeout



If we cannot acquire a particular host for more than 20ks (~5.5h),
give up on it.  This allows flights to complete if hosts are blocked
for a long time.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 make-hosts-flight | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/make-hosts-flight b/make-hosts-flight
index bbd3343..d619de6 100755
--- a/make-hosts-flight
+++ b/make-hosts-flight
@@ -28,6 +28,8 @@ buildflight=$5
 : ${ALL_ARCHES:=amd64 i386 arm64 armhf}
 : ${ALL_SUITES:=jessie stretch}
 
+: ${PERHOST_MAXWAIT:=20000} # seconds
+
 flight=`./cs-flight-create $blessing $branch`
 
 . ./cri-common
@@ -61,6 +63,7 @@ hosts_iterate () {
   while read <&3 host kern arch suite; do
     runvars="
               arch=$arch host=$host
+              hostalloc_maxwait_max=$PERHOST_MAXWAIT
             "
 
     case $kern in
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.