Fix placement WSGI script path in TLS override
Update WSGIScriptAlias to use /var/lib/openstack/bin/placement-api which is the correct path in 2025.1 Ubuntu Noble containers where packages are installed via pip into a virtualenv instead of system packages. Add Directory block to grant Apache access to the new path. Signed-off-by: Kim soo <popododo0720@naver.com> Change-Id: If5b42fa48f9e84e15b021bd222ed7257f76fde38
This commit is contained in:
@@ -21,11 +21,14 @@ conf:
|
||||
wsgi_placement: |
|
||||
{{- $portInt := tuple "placement" "service" "api" $ | include "helm-toolkit.endpoints.endpoint_port_lookup" }}
|
||||
Listen {{ $portInt }}
|
||||
<Directory /var/lib/openstack/bin>
|
||||
Require all granted
|
||||
</Directory>
|
||||
<VirtualHost *:{{ $portInt }}>
|
||||
ServerName {{ printf "%s.%s.svc.%s" "placement-api" .Release.Namespace .Values.endpoints.cluster_domain_suffix }}
|
||||
WSGIDaemonProcess placement-api processes=1 threads=1 user=placement group=placement display-name=%{GROUP}
|
||||
WSGIProcessGroup placement-api
|
||||
WSGIScriptAlias / /var/www/cgi-bin/placement/placement-api
|
||||
WSGIScriptAlias / /var/lib/openstack/bin/placement-api
|
||||
WSGIApplicationGroup %{GLOBAL}
|
||||
WSGIPassAuthorization On
|
||||
ErrorLogFormat "%{cu}t %M"
|
||||
|
||||
Reference in New Issue
Block a user