diff options
author | 2017-07-19 13:04:29 -0230 | |
---|---|---|
committer | 2017-07-21 16:09:42 -0230 | |
commit | fbd01c2df6d2d1357bd0d0153b5ec825299bc896 (patch) | |
tree | 8b7852a8551e04a38f8a36d72d00cff487d198c2 /docker/services/neutron-l3.yaml | |
parent | 9f1fbcb40a030d40b3241b6684fd554e12732dd1 (diff) |
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
Diffstat (limited to 'docker/services/neutron-l3.yaml')
-rw-r--r-- | docker/services/neutron-l3.yaml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docker/services/neutron-l3.yaml b/docker/services/neutron-l3.yaml index c3a4d27f..06470c05 100644 --- a/docker/services/neutron-l3.yaml +++ b/docker/services/neutron-l3.yaml @@ -77,6 +77,9 @@ outputs: - path: /var/log/neutron owner: neutron:neutron recurse: true + - path: /var/lib/neutron + owner: neutron:neutron + recurse: true docker_config: step_4: neutron_l3_agent: @@ -93,10 +96,15 @@ outputs: - /var/lib/config-data/puppet-generated/neutron/:/var/lib/kolla/config_files/src:ro - /lib/modules:/lib/modules:ro - /run:/run + - /var/lib/neutron:/var/lib/neutron - /var/log/containers/neutron:/var/log/neutron environment: - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS host_prep_tasks: + - name: create /var/lib/neutron + file: + path: /var/lib/neutron + state: directory - name: create persistent logs directory file: path: /var/log/containers/neutron |