Merge "openvswitch: allow setting ovsdb connection using vsctl"
This commit is contained in:
commit
f02ce80ea2
@ -75,8 +75,6 @@ spec:
|
|||||||
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
||||||
subPath: openvswitch_agent.ini
|
subPath: openvswitch_agent.ini
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: runopenvswitch
|
|
||||||
mountPath: /run/openvswitch
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: neutron-etc
|
- name: neutron-etc
|
||||||
mountPath: /etc/neutron/dhcp_agent.ini
|
mountPath: /etc/neutron/dhcp_agent.ini
|
||||||
@ -128,11 +126,6 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: {{ $configMapName }}
|
name: {{ $configMapName }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if ( has "openvswitch" .Values.network.backend ) }}
|
|
||||||
- name: runopenvswitch
|
|
||||||
hostPath:
|
|
||||||
path: /run/openvswitch
|
|
||||||
{{- end }}
|
|
||||||
- name: socket
|
- name: socket
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/neutron/openstack-helm
|
path: /var/lib/neutron/openstack-helm
|
||||||
|
@ -75,8 +75,6 @@ spec:
|
|||||||
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
||||||
subPath: openvswitch_agent.ini
|
subPath: openvswitch_agent.ini
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: runopenvswitch
|
|
||||||
mountPath: /run/openvswitch
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: neutron-etc
|
- name: neutron-etc
|
||||||
mountPath: /etc/neutron/l3_agent.ini
|
mountPath: /etc/neutron/l3_agent.ini
|
||||||
@ -127,11 +125,6 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: {{ $configMapName }}
|
name: {{ $configMapName }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if ( has "openvswitch" .Values.network.backend ) }}
|
|
||||||
- name: runopenvswitch
|
|
||||||
hostPath:
|
|
||||||
path: /run/openvswitch
|
|
||||||
{{- end }}
|
|
||||||
- name: libmodules
|
- name: libmodules
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /lib/modules
|
path: /lib/modules
|
||||||
|
@ -97,8 +97,6 @@ spec:
|
|||||||
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
||||||
subPath: openvswitch_agent.ini
|
subPath: openvswitch_agent.ini
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: runopenvswitch
|
|
||||||
mountPath: /run/openvswitch
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: neutron-etc
|
- name: neutron-etc
|
||||||
mountPath: /etc/neutron/metadata_agent.ini
|
mountPath: /etc/neutron/metadata_agent.ini
|
||||||
@ -142,11 +140,6 @@ spec:
|
|||||||
configMap:
|
configMap:
|
||||||
name: {{ $configMapName }}
|
name: {{ $configMapName }}
|
||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if ( has "openvswitch" .Values.network.backend ) }}
|
|
||||||
- name: runopenvswitch
|
|
||||||
hostPath:
|
|
||||||
path: /run/openvswitch
|
|
||||||
{{- end }}
|
|
||||||
- name: socket
|
- name: socket
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /var/lib/neutron/openstack-helm
|
path: /var/lib/neutron/openstack-helm
|
||||||
|
@ -1412,7 +1412,6 @@ conf:
|
|||||||
arp_responder: True
|
arp_responder: True
|
||||||
ovs:
|
ovs:
|
||||||
bridge_mappings: "external:br-ex"
|
bridge_mappings: "external:br-ex"
|
||||||
ovsdb_connection: unix:/var/run/openvswitch/db.sock
|
|
||||||
securitygroup:
|
securitygroup:
|
||||||
firewall_driver: openvswitch
|
firewall_driver: openvswitch
|
||||||
linuxbridge_agent:
|
linuxbridge_agent:
|
||||||
|
@ -20,9 +20,9 @@ set -ex
|
|||||||
COMMAND="${@:-start}"
|
COMMAND="${@:-start}"
|
||||||
|
|
||||||
OVS_DB=/run/openvswitch/conf.db
|
OVS_DB=/run/openvswitch/conf.db
|
||||||
OVS_SOCKET=/run/openvswitch/db.sock
|
|
||||||
OVS_SCHEMA=/usr/share/openvswitch/vswitch.ovsschema
|
OVS_SCHEMA=/usr/share/openvswitch/vswitch.ovsschema
|
||||||
OVS_PID=/run/openvswitch/ovsdb-server.pid
|
OVS_PID=/run/openvswitch/ovsdb-server.pid
|
||||||
|
OVS_SOCKET=/run/openvswitch/db.sock
|
||||||
|
|
||||||
function start () {
|
function start () {
|
||||||
mkdir -p "$(dirname ${OVS_DB})"
|
mkdir -p "$(dirname ${OVS_DB})"
|
||||||
@ -40,7 +40,11 @@ function start () {
|
|||||||
-vconsole:err \
|
-vconsole:err \
|
||||||
-vconsole:info \
|
-vconsole:info \
|
||||||
--pidfile=${OVS_PID} \
|
--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 () {
|
function stop () {
|
||||||
|
Loading…
Reference in New Issue
Block a user