Mount /var/lib/neutron in neutron agents for metadata proxy
The metadata agent creates domain socket /var/lib/neutron/metadata_proxy that is used for communication with haproxy in the L3 and DHCP agents. This patch adds creation of /var/lib/neutron if it doesn't exist and mounts it into the L3, DHCP and metadata agent containers. Change-Id: Id8b8487b5a6a288e5ef1ca1c7d5b47a59cc8dea2 Closes-Bug: #1705289
This commit is contained in:
parent
9f1fbcb40a
commit
fbd01c2df6
@ -81,6 +81,9 @@ outputs:
|
|||||||
- path: /var/log/neutron
|
- path: /var/log/neutron
|
||||||
owner: neutron:neutron
|
owner: neutron:neutron
|
||||||
recurse: true
|
recurse: true
|
||||||
|
- path: /var/lib/neutron
|
||||||
|
owner: neutron:neutron
|
||||||
|
recurse: true
|
||||||
docker_config:
|
docker_config:
|
||||||
step_4:
|
step_4:
|
||||||
neutron_dhcp:
|
neutron_dhcp:
|
||||||
@ -97,10 +100,15 @@ outputs:
|
|||||||
- /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
|
- /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
|
||||||
- /lib/modules:/lib/modules:ro
|
- /lib/modules:/lib/modules:ro
|
||||||
- /run/:/run
|
- /run/:/run
|
||||||
|
- /var/lib/neutron:/var/lib/neutron
|
||||||
- /var/log/containers/neutron:/var/log/neutron
|
- /var/log/containers/neutron:/var/log/neutron
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
|
- name: create /var/lib/neutron
|
||||||
|
file:
|
||||||
|
path: /var/lib/neutron
|
||||||
|
state: directory
|
||||||
- name: create persistent logs directory
|
- name: create persistent logs directory
|
||||||
file:
|
file:
|
||||||
path: /var/log/containers/neutron
|
path: /var/log/containers/neutron
|
||||||
|
@ -77,6 +77,9 @@ outputs:
|
|||||||
- path: /var/log/neutron
|
- path: /var/log/neutron
|
||||||
owner: neutron:neutron
|
owner: neutron:neutron
|
||||||
recurse: true
|
recurse: true
|
||||||
|
- path: /var/lib/neutron
|
||||||
|
owner: neutron:neutron
|
||||||
|
recurse: true
|
||||||
docker_config:
|
docker_config:
|
||||||
step_4:
|
step_4:
|
||||||
neutron_l3_agent:
|
neutron_l3_agent:
|
||||||
@ -93,10 +96,15 @@ outputs:
|
|||||||
- /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
|
- /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
|
||||||
- /lib/modules:/lib/modules:ro
|
- /lib/modules:/lib/modules:ro
|
||||||
- /run:/run
|
- /run:/run
|
||||||
|
- /var/lib/neutron:/var/lib/neutron
|
||||||
- /var/log/containers/neutron:/var/log/neutron
|
- /var/log/containers/neutron:/var/log/neutron
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
|
- name: create /var/lib/neutron
|
||||||
|
file:
|
||||||
|
path: /var/lib/neutron
|
||||||
|
state: directory
|
||||||
- name: create persistent logs directory
|
- name: create persistent logs directory
|
||||||
file:
|
file:
|
||||||
path: /var/log/containers/neutron
|
path: /var/log/containers/neutron
|
||||||
|
@ -77,6 +77,9 @@ outputs:
|
|||||||
- path: /var/log/neutron
|
- path: /var/log/neutron
|
||||||
owner: neutron:neutron
|
owner: neutron:neutron
|
||||||
recurse: true
|
recurse: true
|
||||||
|
- path: /var/lib/neutron
|
||||||
|
owner: neutron:neutron
|
||||||
|
recurse: true
|
||||||
docker_config:
|
docker_config:
|
||||||
step_4:
|
step_4:
|
||||||
neutron_metadata_agent:
|
neutron_metadata_agent:
|
||||||
@ -93,10 +96,15 @@ outputs:
|
|||||||
- /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
|
- /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro
|
||||||
- /lib/modules:/lib/modules:ro
|
- /lib/modules:/lib/modules:ro
|
||||||
- /run:/run
|
- /run:/run
|
||||||
|
- /var/lib/neutron:/var/lib/neutron
|
||||||
- /var/log/containers/neutron:/var/log/neutron
|
- /var/log/containers/neutron:/var/log/neutron
|
||||||
environment:
|
environment:
|
||||||
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
|
||||||
host_prep_tasks:
|
host_prep_tasks:
|
||||||
|
- name: create /var/lib/neutron
|
||||||
|
file:
|
||||||
|
path: /var/lib/neutron
|
||||||
|
state: directory
|
||||||
- name: create persistent logs directory
|
- name: create persistent logs directory
|
||||||
file:
|
file:
|
||||||
path: /var/log/containers/neutron
|
path: /var/log/containers/neutron
|
||||||
|
Loading…
x
Reference in New Issue
Block a user