summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorMartin André <m.andre@redhat.com>2017-07-07 15:58:08 +0200
committerMartin André <m.andre@redhat.com>2017-07-07 16:00:46 +0200
commitc540733f1fea5ac0862519982e0dcab3205c57d5 (patch)
treeeb2fd333a8ca0c1bb6519382626fffb9d77a4ddd /docker
parent25caba5ce844c722e590333be87a0a7346f02a35 (diff)
Wrap ceilometer-upgrade in boostrap_host_exec
This ensures the update only occures on the primary node. Change-Id: Id58eb9dac65dc178fa863c9bc44b1ed440e26a77
Diffstat (limited to 'docker')
-rw-r--r--docker/services/ceilometer-agent-central.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/docker/services/ceilometer-agent-central.yaml b/docker/services/ceilometer-agent-central.yaml
index af1f47ad..021e20bf 100644
--- a/docker/services/ceilometer-agent-central.yaml
+++ b/docker/services/ceilometer-agent-central.yaml
@@ -107,13 +107,17 @@ outputs:
net: host
detach: false
privileged: false
+ user: root
volumes:
list_concat:
- {get_attr: [ContainersCommon, volumes]}
-
- /var/lib/config-data/ceilometer/etc/ceilometer/:/etc/ceilometer/:ro
- /var/log/containers/ceilometer:/var/log/ceilometer
- command: ["/usr/bin/ceilometer-upgrade", "--skip-metering-database"]
+ command:
+ - '/usr/bin/bootstrap_host_exec'
+ - 'ceilometer_agent_central'
+ - "su ceilometer -s /bin/bash -c '/usr/bin/ceilometer-upgrade --skip-metering-database'"
upgrade_tasks:
- name: Stop and disable ceilometer agent central service
tags: step2