Merge "openvswitch: allow setting ovsdb connection using vsctl"

This commit is contained in:
Zuul 2018-04-25 04:06:07 +00:00 committed by Gerrit Code Review
commit f02ce80ea2
5 changed files with 6 additions and 24 deletions

View File

@ -75,8 +75,6 @@ spec:
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
subPath: openvswitch_agent.ini
readOnly: true
- name: runopenvswitch
mountPath: /run/openvswitch
{{- end }}
- name: neutron-etc
mountPath: /etc/neutron/dhcp_agent.ini
@ -128,11 +126,6 @@ spec:
configMap:
name: {{ $configMapName }}
defaultMode: 0444
{{- if ( has "openvswitch" .Values.network.backend ) }}
- name: runopenvswitch
hostPath:
path: /run/openvswitch
{{- end }}
- name: socket
hostPath:
path: /var/lib/neutron/openstack-helm

View File

@ -75,8 +75,6 @@ spec:
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
subPath: openvswitch_agent.ini
readOnly: true
- name: runopenvswitch
mountPath: /run/openvswitch
{{- end }}
- name: neutron-etc
mountPath: /etc/neutron/l3_agent.ini
@ -127,11 +125,6 @@ spec:
configMap:
name: {{ $configMapName }}
defaultMode: 0444
{{- if ( has "openvswitch" .Values.network.backend ) }}
- name: runopenvswitch
hostPath:
path: /run/openvswitch
{{- end }}
- name: libmodules
hostPath:
path: /lib/modules

View File

@ -97,8 +97,6 @@ spec:
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
subPath: openvswitch_agent.ini
readOnly: true
- name: runopenvswitch
mountPath: /run/openvswitch
{{- end }}
- name: neutron-etc
mountPath: /etc/neutron/metadata_agent.ini
@ -142,11 +140,6 @@ spec:
configMap:
name: {{ $configMapName }}
defaultMode: 0444
{{- if ( has "openvswitch" .Values.network.backend ) }}
- name: runopenvswitch
hostPath:
path: /run/openvswitch
{{- end }}
- name: socket
hostPath:
path: /var/lib/neutron/openstack-helm

View File

@ -1412,7 +1412,6 @@ conf:
arp_responder: True
ovs:
bridge_mappings: "external:br-ex"
ovsdb_connection: unix:/var/run/openvswitch/db.sock
securitygroup:
firewall_driver: openvswitch
linuxbridge_agent:

View File

@ -20,9 +20,9 @@ set -ex
COMMAND="${@:-start}"
OVS_DB=/run/openvswitch/conf.db
OVS_SOCKET=/run/openvswitch/db.sock
OVS_SCHEMA=/usr/share/openvswitch/vswitch.ovsschema
OVS_PID=/run/openvswitch/ovsdb-server.pid
OVS_SOCKET=/run/openvswitch/db.sock
function start () {
mkdir -p "$(dirname ${OVS_DB})"
@ -40,7 +40,11 @@ function start () {
-vconsole:err \
-vconsole:info \
--pidfile=${OVS_PID} \
--remote=punix:${OVS_SOCKET}
--remote=punix:${OVS_SOCKET} \
--remote=db:Open_vSwitch,Open_vSwitch,manager_options \
--private-key=db:Open_vSwitch,SSL,private_key \
--certificate=db:Open_vSwitch,SSL,certificate \
--bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert
}
function stop () {