From b7667a55074efdbd7a22de445d7222285804fc07 Mon Sep 17 00:00:00 2001 From: "Gupta, Sangeet (sg774j)" Date: Sat, 1 Aug 2020 15:51:53 +0000 Subject: [PATCH] neutron: pass rps server .ini for enabled plugins This patch set passes .ini config file to the rpc-server for the enabled plugins. Change-Id: I3d84fd67367c68d38541c6f8b5a38ab8a906d454 --- .../templates/bin/_neutron-rpc-server.sh.tpl | 13 ++++++++++ neutron/templates/deployment-server.yaml | 24 +++++++++++++++++++ 2 files changed, 37 insertions(+) diff --git a/neutron/templates/bin/_neutron-rpc-server.sh.tpl b/neutron/templates/bin/_neutron-rpc-server.sh.tpl index f9a40e83e9..ae8c4dc182 100644 --- a/neutron/templates/bin/_neutron-rpc-server.sh.tpl +++ b/neutron/templates/bin/_neutron-rpc-server.sh.tpl @@ -20,7 +20,20 @@ COMMAND="${@:-start}" function start () { exec neutron-rpc-server \ --config-file /etc/neutron/neutron.conf \ +{{- if ( has "tungstenfabric" .Values.network.backend ) }} + --config-file /etc/neutron/plugins/tungstenfabric/tf_plugin.ini +{{- else }} --config-file /etc/neutron/plugins/ml2/ml2_conf.ini +{{- end }} +{{- if .Values.conf.plugins.taas.taas.enabled }} \ + --config-file /etc/neutron/taas_plugin.ini +{{- end }} +{{- if ( has "sriov" .Values.network.backend ) }} \ + --config-file /etc/neutron/plugins/ml2/sriov_agent.ini +{{- end }} +{{- if .Values.conf.plugins.l2gateway }} \ + --config-file /etc/neutron/l2gw_plugin.ini +{{- end }} } function stop () { diff --git a/neutron/templates/deployment-server.yaml b/neutron/templates/deployment-server.yaml index a1532c2324..29ac4dddca 100644 --- a/neutron/templates/deployment-server.yaml +++ b/neutron/templates/deployment-server.yaml @@ -226,6 +226,30 @@ spec: mountPath: /etc/neutron/plugins/ml2/ml2_conf.ini subPath: ml2_conf.ini readOnly: true + {{- if( has "tungstenfabric" .Values.network.backend ) }} + - name: neutron-etc + mountPath: /etc/neutron/plugins/tungstenfabric/tf_plugin.ini + subPath: tf_plugin.ini + readOnly: true + {{ end }} + {{ if ( has "sriov" .Values.network.backend ) }} + - name: neutron-etc + mountPath: /etc/neutron/plugins/ml2/sriov_agent.ini + subPath: sriov_agent.ini + readOnly: true + {{ end }} + {{- if .Values.conf.plugins.taas.taas.enabled }} + - name: neutron-etc + mountPath: /etc/neutron/taas_plugin.ini + subPath: taas_plugin.ini + readOnly: true + {{ end }} + {{- if .Values.conf.plugins.l2gateway }} + - name: neutron-etc + mountPath: /etc/neutron/l2gw_plugin.ini + subPath: l2gw_plugin.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" .Values.manifests.certificates "name" .Values.secrets.tls.network.server.internal "path" "/etc/neutron/certs" | include "helm-toolkit.snippets.tls_volume_mount" | indent 12 }} {{- end }}