From 29202eba1a9d93a454cfbbc5233f17bd1e134be3 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Tue, 8 Mar 2022 10:24:03 +1100 Subject: [PATCH] zuul-lb : issue HEAD / checks As found in Ie5d55b2a2d96a78b34d23cc6fbac62900a23fc37, the default for this is to issue "OPTIONS /" which is kind of a weird request. The Zuul hosts currently seem to return the main page content in response to a OPTIONS request, which probably isn't right. Make this more robust by just using "HEAD /" request. Change-Id: Ibbd32ae744af9c33aedd087a8146195844814b3f --- playbooks/zuul/templates/group_vars/zuul-lb.yaml.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/zuul/templates/group_vars/zuul-lb.yaml.j2 b/playbooks/zuul/templates/group_vars/zuul-lb.yaml.j2 index 51cadd9d3f..891e230fb2 100644 --- a/playbooks/zuul/templates/group_vars/zuul-lb.yaml.j2 +++ b/playbooks/zuul/templates/group_vars/zuul-lb.yaml.j2 @@ -2,7 +2,7 @@ zuul_lb_listeners: - name: balance_zuul_http bind: - ":::80" - check_option: "httpchk" + check_option: "httpchk HEAD /" servers: - name: "zuul02.opendev.org" address: "{{ (hostvars['zuul02.opendev.org'] | default({})).get('nodepool', {}).get('public_ipv4', '') }}:80"