From 920d3b42db4a522b880f13c8f8c95e68426839e7 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 29 Nov 2018 12:06:31 -0500 Subject: [PATCH] base-test: Check that regional mirror is online It is possible for our regional mirror to be offline, for some random reason. If so, fail the job in pre, so zuul will retry the job (hopefully in a different region). Change-Id: I9bd9e551930e5fb88bf9bb3156c59568cee3fa89 Signed-off-by: Paul Belanger --- playbooks/base-test/pre.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/playbooks/base-test/pre.yaml b/playbooks/base-test/pre.yaml index 6a9def93d0..ebe3d1a877 100644 --- a/playbooks/base-test/pre.yaml +++ b/playbooks/base-test/pre.yaml @@ -37,3 +37,8 @@ - role: fetch-zuul-cloner destination: "/usr/zuul-env/bin/zuul-cloner" repo_src_dir: "/home/zuul/src/git.openstack.org" + + pre_tasks: + - name: Check that regional mirror is online + uri: + url: "http://{{ zuul_site_mirror_fqdn }}"