summaryrefslogtreecommitdiffstats
path: root/docker/services/neutron-ovs-agent.yaml
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2017-05-05 15:17:55 +0000
committerGerrit Code Review <review@openstack.org>2017-05-05 15:17:55 +0000
commit574617d007b02f98b2ac9b7e853cf4fd266fe085 (patch)
tree5a6069263cc5160b1051078370ae15785add0cd8 /docker/services/neutron-ovs-agent.yaml
parentc577755082a92e638ca03ae8a8bd38045bf7901c (diff)
parent58a8b282c2f244b2675a6da7aac161a53f58c288 (diff)
Merge "Mount hostpath logs on /var/log"
Diffstat (limited to 'docker/services/neutron-ovs-agent.yaml')
-rw-r--r--docker/services/neutron-ovs-agent.yaml12
1 files changed, 11 insertions, 1 deletions
diff --git a/docker/services/neutron-ovs-agent.yaml b/docker/services/neutron-ovs-agent.yaml
index 70851f7d..48b67abe 100644
--- a/docker/services/neutron-ovs-agent.yaml
+++ b/docker/services/neutron-ovs-agent.yaml
@@ -57,7 +57,11 @@ outputs:
- [ {get_param: DockerNamespace}, {get_param: DockerOpenvswitchImage} ]
kolla_config:
/var/lib/kolla/config_files/neutron-openvswitch-agent.json:
- command: /usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
+ command: /usr/bin/neutron-openvswitch-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-file /etc/neutron/plugins/ml2/ml2_conf.ini
+ permissions:
+ - path: /var/log/neutron
+ owner: neutron:neutron
+ recurse: true
docker_config:
step_4:
neutronovsagent:
@@ -74,8 +78,14 @@ outputs:
- /var/lib/config-data/neutron/etc/neutron/:/etc/neutron/:ro
- /lib/modules:/lib/modules:ro
- /run:/run
+ - /var/log/containers/neutron:/var/log/neutron
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
+ host_prep_tasks:
+ - name: create persistent logs directory
+ file:
+ path: /var/log/containers/neutron
+ state: directory
upgrade_tasks:
- name: Stop and disable neutron_ovs_agent service
tags: step2