Merge "uwsgi: use uWSGI stats for liveness probes in deployments"

This commit is contained in:
Zuul
2025-11-26 19:09:09 +00:00
committed by Gerrit Code Review
17 changed files with 61 additions and 0 deletions

View File

@@ -392,6 +392,8 @@ conf:
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/barbican-wsgi-api wsgi-file: /var/lib/openstack/bin/barbican-wsgi-api
processes: 1 processes: 1
stats: 0.0.0.0:1717
stats-http: true
barbican: barbican:
DEFAULT: DEFAULT:
transport_url: null transport_url: null

View File

@@ -1074,6 +1074,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/cinder-wsgi wsgi-file: /var/lib/openstack/bin/cinder-wsgi
stats: 0.0.0.0:1717
stats-http: true
db_purge: db_purge:
before: 30 before: 30

View File

@@ -555,6 +555,8 @@ conf:
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/cloudkitty-api wsgi-file: /var/lib/openstack/bin/cloudkitty-api
processes: 1 processes: 1
stats: 0.0.0.0:1717
stats-http: true
cloudkitty: cloudkitty:
DEFAULT: DEFAULT:
log_config_append: /etc/cloudkitty/logging.conf log_config_append: /etc/cloudkitty/logging.conf

View File

@@ -560,6 +560,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/designate-api-wsgi wsgi-file: /var/lib/openstack/bin/designate-api-wsgi
stats: 0.0.0.0:1717
stats-http: true
# Names of secrets used by bootstrap and environmental checks # Names of secrets used by bootstrap and environmental checks
secrets: secrets:

View File

@@ -430,6 +430,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/glance-wsgi-api wsgi-file: /var/lib/openstack/bin/glance-wsgi-api
stats: 0.0.0.0:1717
stats-http: true
network: network:
api: api:

View File

@@ -92,7 +92,11 @@ spec:
httpGet: httpGet:
scheme: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }} scheme: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
path: / path: /
{{- if .Values.pod.probes.api.heat_api.liveness.port }}
port: {{ .Values.pod.probes.api.heat_api.liveness.port }}
{{- else }}
port: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "orchestration" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
{{- end }}
initialDelaySeconds: 10 initialDelaySeconds: 10
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp

View File

@@ -91,7 +91,11 @@ spec:
httpGet: httpGet:
scheme: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }} scheme: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
path: / path: /
{{- if .Values.pod.probes.cfn.heat_cfn.liveness.port }}
port: {{ .Values.pod.probes.cfn.heat_cfn.liveness.port }}
{{- else }}
port: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "cloudformation" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
{{- end }}
initialDelaySeconds: 10 initialDelaySeconds: 10
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp

View File

@@ -487,6 +487,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/heat-wsgi-api wsgi-file: /var/lib/openstack/bin/heat-wsgi-api
stats: 0.0.0.0:1717
stats-http: true
heat_api_cfn_uwsgi: heat_api_cfn_uwsgi:
uwsgi: uwsgi:
add-header: "Connection: close" add-header: "Connection: close"
@@ -503,6 +505,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/heat-wsgi-api-cfn wsgi-file: /var/lib/openstack/bin/heat-wsgi-api-cfn
stats: 0.0.0.0:1717
stats-http: true
network: network:
api: api:
@@ -1171,6 +1175,15 @@ pod:
limits: limits:
memory: "1024Mi" memory: "1024Mi"
cpu: "2000m" cpu: "2000m"
probes:
api:
heat_api:
liveness:
port: 1717
cfn:
heat_cfn:
liveness:
port: 1717
network_policy: network_policy:
heat: heat:

View File

@@ -184,6 +184,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/magnum-api-wsgi wsgi-file: /var/lib/openstack/bin/magnum-api-wsgi
stats: 0.0.0.0:1717
stats-http: true
network: network:
api: api:

View File

@@ -866,6 +866,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
module: "manila.wsgi.api:application" module: "manila.wsgi.api:application"
stats: 0.0.0.0:1717
stats-http: true
# Names of secrets used by bootstrap and environmental checks # Names of secrets used by bootstrap and environmental checks
secrets: secrets:

View File

@@ -39,7 +39,11 @@ initialDelaySeconds: 30
httpGet: httpGet:
scheme: {{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }} scheme: {{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
path: / path: /
{{- if .Values.pod.probes.server.server.liveness.port }}
port: {{ .Values.pod.probes.server.server.liveness.port }}
{{ else }}
port: {{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "network" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
{{- end}}
{{- end }} {{- end }}
{{- end }} {{- end }}

View File

@@ -529,6 +529,7 @@ pod:
timeoutSeconds: 10 timeoutSeconds: 10
liveness: liveness:
enabled: true enabled: true
port: 1717
params: params:
initialDelaySeconds: 60 initialDelaySeconds: 60
periodSeconds: 15 periodSeconds: 15
@@ -1387,6 +1388,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/neutron-api wsgi-file: /var/lib/openstack/bin/neutron-api
stats: 0.0.0.0:1717
stats-http: true
policy: {} policy: {}
api_audit_map: api_audit_map:
DEFAULT: DEFAULT:

View File

@@ -1620,6 +1620,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/nova-api-wsgi wsgi-file: /var/lib/openstack/bin/nova-api-wsgi
stats: 0.0.0.0:1717
stats-http: true
nova_metadata_uwsgi: nova_metadata_uwsgi:
uwsgi: uwsgi:
add-header: "Connection: close" add-header: "Connection: close"
@@ -1636,6 +1638,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/nova-metadata-wsgi wsgi-file: /var/lib/openstack/bin/nova-metadata-wsgi
stats: 0.0.0.0:1717
stats-http: true
# Names of secrets used by bootstrap and environmental checks # Names of secrets used by bootstrap and environmental checks
secrets: secrets:

View File

@@ -401,6 +401,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
module: "octavia.wsgi.api:application" module: "octavia.wsgi.api:application"
stats: 0.0.0.0:1717
stats-http: true
secrets: secrets:
identity: identity:

View File

@@ -104,6 +104,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/neutron-ovn-network-logging-parser-wsgi wsgi-file: /var/lib/openstack/bin/neutron-ovn-network-logging-parser-wsgi
stats: 0.0.0.0:1717
stats-http: true
vector: | vector: |
[sources.file_logs] [sources.file_logs]
type = "file" type = "file"

View File

@@ -108,7 +108,11 @@ spec:
httpGet: httpGet:
scheme: {{ tuple "placement" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }} scheme: {{ tuple "placement" "service" "api" . | include "helm-toolkit.endpoints.keystone_endpoint_scheme_lookup" | upper }}
path: / path: /
{{- if .Values.pod.probes.placement.api.liveness.port }}
port: {{ .Values.pod.probes.placement.api.liveness.port }}
{{- else }}
port: {{ tuple "placement" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }} port: {{ tuple "placement" "service" "api" . | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
{{- end }}
initialDelaySeconds: 5 initialDelaySeconds: 5
periodSeconds: 10 periodSeconds: 10
volumeMounts: volumeMounts:

View File

@@ -153,6 +153,8 @@ conf:
thunder-lock: true thunder-lock: true
worker-reload-mercy: 80 worker-reload-mercy: 80
wsgi-file: /var/lib/openstack/bin/placement-api wsgi-file: /var/lib/openstack/bin/placement-api
stats: 0.0.0.0:1717
stats-http: true
endpoints: endpoints:
cluster_domain_suffix: cluster.local cluster_domain_suffix: cluster.local
local_image_registry: local_image_registry:
@@ -374,6 +376,11 @@ pod:
limits: limits:
memory: "1024Mi" memory: "1024Mi"
cpu: "2000m" cpu: "2000m"
probes:
placement:
api:
liveness:
port: 1717
secrets: secrets:
identity: identity: