Codebase list octavia / cd90c0f
Add a /healthcheck URL. Thomas Goirand 3 years ago
3 changed file(s) with 43 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 octavia (6.0.0-3) UNRELEASED; urgency=medium
1
2 * Add a /healthcheck URL.
3
4 -- Thomas Goirand <zigo@debian.org> Tue, 16 Jun 2020 15:35:30 +0200
5
06 octavia (6.0.0-2) unstable; urgency=medium
17
28 * Add missing --namespace cotyledon when generating octavia.conf.
0 From 1b778517dbebcf7481e070784938531e74a88d2e Mon Sep 17 00:00:00 2001
1 From: Thomas Goirand <zigo@debian.org>
2 Date: Tue, 16 Jun 2020 15:33:13 +0200
3 Subject: [PATCH] Add a /healthcheck URL from oslo.middleware
4
5 This patch adds a /healtcheck URL so that operators can configure haproxy
6 in a nicer way for Octavia.
7
8 Change-Id: I7fbf063a5b49eeb556d9dc544d3853c34b235c03
9 ---
10 octavia/api/app.py | 2 ++
11 1 file changed, 2 insertions(+)
12
13 diff --git a/octavia/api/app.py b/octavia/api/app.py
14 index b0deb5c70..d0b521e37 100644
15 --- a/octavia/api/app.py
16 +++ b/octavia/api/app.py
17 @@ -18,6 +18,7 @@ import keystonemiddleware.audit as audit_middleware
18 from oslo_config import cfg
19 from oslo_log import log as logging
20 from oslo_middleware import cors
21 +from oslo_middleware import healthcheck
22 from oslo_middleware import http_proxy_to_wsgi
23 from oslo_middleware import request_id
24 from pecan import configuration as pecan_configuration
25 @@ -97,6 +98,7 @@ def _wrap_app(app):
26 # middleware - are annotated with CORS headers, and thus accessible
27 # by the browser.
28 app = cors.CORS(app, cfg.CONF)
29 + app = healthcheck.Healthcheck(app)
30 cors.set_defaults(
31 allow_headers=['X-Auth-Token', 'X-Openstack-Request-Id'],
32 allow_methods=['GET', 'PUT', 'POST', 'DELETE'],
33 --
34 2.20.1
35
11 Fix-osutils.py-to-detect-Debian.patch
22 remove-sphinxcontrib.rsvgconverter-from-doc.patch
33 Fix_Octavia_unit_tests_for_python_3.8.patch
4 add-a-healthcheck-url.patch