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
This commit is contained in:
Ian Wienand 2022-03-08 10:24:03 +11:00
parent c9b580cc0d
commit 29202eba1a

View File

@ -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"