Skip to content

Commit 80a0b29

Browse files
committed
fix(openstack): add oslo middleware healthcheck probes
Signed-off-by: Yaguang Tang <yaguang.tang@vexxhost.com>
1 parent ae9fbca commit 80a0b29

28 files changed

Lines changed: 531 additions & 32 deletions

charts/barbican/templates/deployment-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ spec:
8484
readinessProbe:
8585
httpGet:
8686
scheme: HTTP
87-
path: /
87+
path: /healthcheck
8888
port: {{ tuple "key_manager" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
8989
volumeMounts:
9090
- name: pod-tmp

charts/barbican/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ conf:
295295
use: egg:Paste#urlmap
296296
/: barbican_version
297297
/v1: barbican-api-keystone
298+
/healthcheck: healthcheck
298299
pipeline:barbican_version:
299300
pipeline: cors http_proxy_to_wsgi versionapp
300301
pipeline:barbican_api:
@@ -309,6 +310,10 @@ conf:
309310
paste.app_factory: barbican.api.app:create_main_app
310311
app:versionapp:
311312
paste.app_factory: barbican.api.app:create_version_app
313+
app:healthcheck:
314+
paste.app_factory: oslo_middleware:Healthcheck.app_factory
315+
backends: disable_by_file
316+
disable_by_file_path: /var/run/barbican/healthcheck_disable
312317
filter:simple:
313318
paste.filter_factory: barbican.api.middleware.simple:SimpleFilter.factory
314319
filter:unauthenticated-context:

charts/cinder/templates/deployment-api.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ spec:
100100
readinessProbe:
101101
httpGet:
102102
scheme: {{ tuple "volume" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
103-
path: /
103+
path: /healthcheck
104104
port: {{ tuple "volume" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
105105
initialDelaySeconds: 30
106106
livenessProbe:
107107
httpGet:
108108
scheme: {{ tuple "volume" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
109-
path: /
109+
path: /healthcheck
110110
port: {{ tuple "volume" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
111111
initialDelaySeconds: 5
112112
failureThreshold: 3

charts/cinder/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ conf:
440440
/v1: openstack_volume_api_v1
441441
/v2: openstack_volume_api_v2
442442
/v3: openstack_volume_api_v3
443+
/healthcheck: healthcheck
443444
composite:openstack_volume_api_v1:
444445
use: call:cinder.api.middleware.auth:pipeline_factory
445446
noauth: cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler noauth apiv1
@@ -480,6 +481,10 @@ conf:
480481
pipeline: cors http_proxy_to_wsgi faultwrap osvolumeversionapp
481482
app:osvolumeversionapp:
482483
paste.app_factory: cinder.api.versions:Versions.factory
484+
app:healthcheck:
485+
paste.app_factory: oslo_middleware:Healthcheck.app_factory
486+
backends: disable_by_file
487+
disable_by_file_path: /var/run/cinder/healthcheck_disable
483488
filter:keystonecontext:
484489
paste.filter_factory: cinder.api.middleware.auth:CinderKeystoneContext.factory
485490
filter:authtoken:

charts/designate/templates/deployment-api.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ spec:
7171
readinessProbe:
7272
httpGet:
7373
scheme: {{ tuple "dns" "internal" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
74-
path: /
74+
path: /healthcheck
7575
port: {{ tuple "dns" "internal" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
7676
volumeMounts:
7777
- name: designate-bin

charts/designate/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ conf:
402402
/: osapi_dns_versions
403403
/v2: osapi_dns_v2
404404
/admin: osapi_dns_admin
405+
/healthcheck: healthcheck
405406
composite:osapi_dns_versions:
406407
use: call:designate.api.middleware:auth_pipeline_factory
407408
noauth: http_proxy_to_wsgi cors maintenance faultwrapper osapi_dns_app_versions
@@ -420,6 +421,10 @@ conf:
420421
keystone: http_proxy_to_wsgi cors request_id faultwrapper authtoken keystonecontext maintenance normalizeuri osapi_dns_app_admin
421422
app:osapi_dns_app_admin:
422423
paste.app_factory: designate.api.admin:factory
424+
app:healthcheck:
425+
paste.app_factory: oslo_middleware:Healthcheck.app_factory
426+
backends: disable_by_file
427+
disable_by_file_path: /var/run/designate/healthcheck_disable
423428
filter:cors:
424429
paste.filter_factory: oslo_middleware.cors:filter_factory
425430
oslo_config_project: designate

charts/glance/templates/deployment-api.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ exec:
1818
command:
1919
- python
2020
- -c
21-
- "import requests; requests.get('http://127.0.0.1:{{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}')"
21+
- "import requests; requests.get('http://127.0.0.1:{{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}/healthcheck')"
2222
{{- else }}
2323
httpGet:
2424
scheme: {{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
25-
path: /
25+
path: /healthcheck
2626
port: {{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
2727
{{- end }}
2828
{{- end }}
@@ -33,11 +33,11 @@ exec:
3333
command:
3434
- python
3535
- -c
36-
- "import requests; requests.get('http://127.0.0.1:{{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}')"
36+
- "import requests; requests.get('http://127.0.0.1:{{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}/healthcheck')"
3737
{{- else }}
3838
httpGet:
3939
scheme: {{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
40-
path: /
40+
path: /healthcheck
4141
port: {{ tuple "image" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
4242
{{- end }}
4343
{{- end }}

charts/glance/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ conf:
171171
app:healthcheck:
172172
paste.app_factory: oslo_middleware:Healthcheck.app_factory
173173
backends: disable_by_file
174-
disable_by_file_path: /etc/glance/healthcheck_disable
174+
disable_by_file_path: /var/run/glance/healthcheck_disable
175175
filter:versionnegotiation:
176176
paste.filter_factory: glance.api.middleware.version_negotiation:VersionNegotiationFilter.factory
177177
filter:cache:

charts/heat/templates/deployment-api.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ spec:
8484
readinessProbe:
8585
httpGet:
8686
scheme: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
87-
path: /
87+
path: /healthcheck
8888
port: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
8989
livenessProbe:
9090
httpGet:
9191
scheme: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
92-
path: /
92+
path: /healthcheck
9393
port: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
9494
initialDelaySeconds: 10
9595
volumeMounts:

charts/heat/templates/deployment-cfn.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@ spec:
8484
readinessProbe:
8585
httpGet:
8686
scheme: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
87-
path: /
87+
path: /healthcheck
8888
port: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
8989
livenessProbe:
9090
httpGet:
9191
scheme: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
92-
path: /
92+
path: /healthcheck
9393
port: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
9494
initialDelaySeconds: 10
9595
volumeMounts:

0 commit comments

Comments
 (0)