[neutron] Add write access to state_path (/var/lib/neutron)

Change-Id: Idfcd1622fcb8d37356d9bfb11bbb2cd0f35a1bf5
This commit is contained in:
Oleg Bondarev 2019-08-23 12:30:16 +04:00
parent bca8e352b7
commit 1dcdebe140
10 changed files with 28 additions and 3 deletions

View File

@ -94,7 +94,7 @@ spec:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron - name: pod-var-neutron
mountPath: /var/lib/neutron mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-bagpipe-bgp.sh mountPath: /tmp/neutron-bagpipe-bgp.sh
subPath: neutron-bagpipe-bgp.sh subPath: neutron-bagpipe-bgp.sh

View File

@ -98,7 +98,7 @@ spec:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron - name: pod-var-neutron
mountPath: /var/lib/neutron mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-dhcp-agent.sh mountPath: /tmp/neutron-dhcp-agent.sh
subPath: neutron-dhcp-agent.sh subPath: neutron-dhcp-agent.sh

View File

@ -100,6 +100,8 @@ spec:
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron
mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-l2gw-agent.sh mountPath: /tmp/neutron-l2gw-agent.sh
subPath: neutron-l2gw-agent.sh subPath: neutron-l2gw-agent.sh
@ -126,6 +128,8 @@ spec:
volumes: volumes:
- name: pod-tmp - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: pod-var-neutron
emptyDir: {}
- name: neutron-bin - name: neutron-bin
configMap: configMap:
name: neutron-bin name: neutron-bin

View File

@ -99,7 +99,7 @@ spec:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron - name: pod-var-neutron
mountPath: /var/lib/neutron mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-l3-agent.sh mountPath: /tmp/neutron-l3-agent.sh
subPath: neutron-l3-agent.sh subPath: neutron-l3-agent.sh

View File

@ -147,6 +147,8 @@ spec:
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron
mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-linuxbridge-agent.sh mountPath: /tmp/neutron-linuxbridge-agent.sh
subPath: neutron-linuxbridge-agent.sh subPath: neutron-linuxbridge-agent.sh
@ -198,6 +200,8 @@ spec:
volumes: volumes:
- name: pod-tmp - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: pod-var-neutron
emptyDir: {}
- name: pod-shared - name: pod-shared
emptyDir: {} emptyDir: {}
- name: neutron-bin - name: neutron-bin

View File

@ -118,6 +118,8 @@ spec:
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron
mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-metadata-agent.sh mountPath: /tmp/neutron-metadata-agent.sh
subPath: neutron-metadata-agent.sh subPath: neutron-metadata-agent.sh
@ -182,6 +184,8 @@ spec:
volumes: volumes:
- name: pod-tmp - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: pod-var-neutron
emptyDir: {}
- name: neutron-bin - name: neutron-bin
configMap: configMap:
name: neutron-bin name: neutron-bin

View File

@ -188,6 +188,8 @@ spec:
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron
mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-openvswitch-agent.sh mountPath: /tmp/neutron-openvswitch-agent.sh
subPath: neutron-openvswitch-agent.sh subPath: neutron-openvswitch-agent.sh
@ -253,6 +255,8 @@ spec:
volumes: volumes:
- name: pod-tmp - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: pod-var-neutron
emptyDir: {}
- name: varlibopenvswitch - name: varlibopenvswitch
emptyDir: {} emptyDir: {}
- name: pod-shared - name: pod-shared

View File

@ -143,6 +143,8 @@ spec:
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron
mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-sriov-agent.sh mountPath: /tmp/neutron-sriov-agent.sh
subPath: neutron-sriov-agent.sh subPath: neutron-sriov-agent.sh
@ -208,6 +210,8 @@ spec:
volumes: volumes:
- name: pod-tmp - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: pod-var-neutron
emptyDir: {}
- name: pod-shared - name: pod-shared
emptyDir: {} emptyDir: {}
- name: neutron-bin - name: neutron-bin

View File

@ -89,6 +89,8 @@ spec:
volumeMounts: volumeMounts:
- name: pod-tmp - name: pod-tmp
mountPath: /tmp mountPath: /tmp
- name: pod-var-neutron
mountPath: {{ .Values.conf.neutron.DEFAULT.state_path }}
- name: neutron-bin - name: neutron-bin
mountPath: /tmp/neutron-server.sh mountPath: /tmp/neutron-server.sh
subPath: neutron-server.sh subPath: neutron-server.sh
@ -141,6 +143,8 @@ spec:
volumes: volumes:
- name: pod-tmp - name: pod-tmp
emptyDir: {} emptyDir: {}
- name: pod-var-neutron
emptyDir: {}
- name: neutron-bin - name: neutron-bin
configMap: configMap:
name: neutron-bin name: neutron-bin

View File

@ -1731,6 +1731,7 @@ conf:
api_workers: 1 api_workers: 1
rpc_workers: 4 rpc_workers: 4
allow_overlapping_ips: True allow_overlapping_ips: True
state_path: /var/lib/neutron
# core_plugin can be: ml2, calico # core_plugin can be: ml2, calico
core_plugin: ml2 core_plugin: ml2
# service_plugin can be: router, odl-router, empty for calico, # service_plugin can be: router, odl-router, empty for calico,