openvswitch: allow setting ovsdb connection using vsctl

Also changed neutron agents to use default, ptcp:6640:127.0.0.1.

Change-Id: Id43c376851f0c408da4684c219dc79ef4a1c157b
Closes-Bug: 1761117
This commit is contained in:
Hyunsun Moon 2018-04-04 16:46:08 +09:00
parent d1a1ea6c71
commit 6c9b4df6fe
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 () {