Fix: Add Missing Neutron OVN VPN Configuration

Add the required OVN VPN configuration files to the Neutron server so VPN
features behave as expected.
The Neutron server receives RPC calls from the Neutron OVN VPN agent and
executes OVN-VPN operations; therefore, the VPN configuration must be present
on the server.

Change-Id: I32ddfdd949305964d11cd5f9062bc0c41d152d83
Signed-off-by: ricolin <rlin@vexxhost.com>
This commit is contained in:
ricolin
2025-08-22 14:39:06 +08:00
parent 72a656e3f4
commit 41fa9496ac
3 changed files with 26 additions and 0 deletions

View File

@@ -34,6 +34,12 @@ function start_ovn () {
{{- if ( has "ovn" .Values.network.backend ) }}
--config-file /tmp/pod-shared/ovn.ini \
{{- end }}
{{- if contains "vpnaas" .Values.conf.neutron.DEFAULT.service_plugins }}
--config-file /etc/neutron/neutron_vpnaas.conf \
{{- end }}
{{- if contains "ovn-vpnaas" .Values.conf.neutron.DEFAULT.service_plugins }}
--config-file /etc/neutron/neutron_ovn_vpn_agent.ini \
{{- end }}
{{- if .Values.conf.plugins.taas.taas.enabled }}
--config-file /etc/neutron/taas_plugin.ini \
{{- end }}

View File

@@ -278,6 +278,18 @@ spec:
mountPath: /etc/neutron/policy.yaml
subPath: policy.yaml
readOnly: true
{{- if contains "vpnaas" .Values.conf.neutron.DEFAULT.service_plugins }}
- name: neutron-etc
mountPath: /etc/neutron/neutron_vpnaas.conf
subPath: neutron_vpnaas.conf
readOnly: true
{{- end }}
{{- if contains "ovn-vpnaas" .Values.conf.neutron.DEFAULT.service_plugins }}
- name: neutron-etc
mountPath: /etc/neutron/neutron_ovn_vpn_agent.ini
subPath: neutron_ovn_vpn_agent.ini
readOnly: true
{{- end }}
{{- dict "enabled" .Values.manifests.certificates "name" .Values.endpoints.oslo_db.auth.admin.secret.tls.internal "path" "/etc/mysql/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
{{- dict "enabled" (or .Values.manifests.certificates .Values.tls.identity) "name" .Values.secrets.tls.network.server.internal "path" "/etc/neutron/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}
{{- dict "enabled" $envAll.Values.manifests.certificates "name" $envAll.Values.endpoints.oslo_messaging.auth.admin.secret.tls.internal "path" "/etc/rabbitmq/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }}

View File

@@ -0,0 +1,8 @@
---
neutron:
- |
Add required OVN VPN configuration files to Neutron server so VPN
features behave as expected. The Neutron server receives RPC calls from the
Neutron OVN VPN agent and executes VPN operations. Therefore, the VPN
configuration must be present on the Neutron server.
...