summaryrefslogtreecommitdiffstats
path: root/docker/services/gnocchi-metricd.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/gnocchi-metricd.yaml
parentc577755082a92e638ca03ae8a8bd38045bf7901c (diff)
parent58a8b282c2f244b2675a6da7aac161a53f58c288 (diff)
Merge "Mount hostpath logs on /var/log"
Diffstat (limited to 'docker/services/gnocchi-metricd.yaml')
-rw-r--r--docker/services/gnocchi-metricd.yaml10
1 files changed, 10 insertions, 0 deletions
diff --git a/docker/services/gnocchi-metricd.yaml b/docker/services/gnocchi-metricd.yaml
index 9739735b..b0faa51c 100644
--- a/docker/services/gnocchi-metricd.yaml
+++ b/docker/services/gnocchi-metricd.yaml
@@ -60,6 +60,10 @@ outputs:
kolla_config:
/var/lib/kolla/config_files/gnocchi-metricd.json:
command: /usr/bin/gnocchi-metricd
+ permissions:
+ - path: /var/log/gnocchi
+ owner: gnocchi:gnocchi
+ recurse: true
docker_config:
step_4:
gnocchi_metricd:
@@ -73,8 +77,14 @@ outputs:
-
- /var/lib/kolla/config_files/gnocchi-metricd.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/gnocchi/etc/gnocchi/:/etc/gnocchi/:ro
+ - /var/log/containers/gnocchi:/var/log/gnocchi
environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
+ host_prep_tasks:
+ - name: create persistent logs directory
+ file:
+ path: /var/log/containers/gnocchi
+ state: directory
upgrade_tasks:
- name: Stop and disable openstack-gnocchi-metricd service
tags: step2