Enable Ceilometer agent logging for containers

Change-Id: Ibeb28d7c497b02253d00a74257989cefba2b0cc4
This commit is contained in:
Pradeep Kilambi 2017-09-06 12:14:12 -04:00
parent 4b699533c2
commit fc44ee6ff3
3 changed files with 20 additions and 3 deletions

@ -69,7 +69,7 @@ outputs:
config_image: {get_param: DockerCeilometerConfigImage} config_image: {get_param: DockerCeilometerConfigImage}
kolla_config: kolla_config:
/var/lib/kolla/config_files/ceilometer_agent_central.json: /var/lib/kolla/config_files/ceilometer_agent_central.json:
command: /usr/bin/ceilometer-polling --polling-namespaces central command: /usr/bin/ceilometer-polling --polling-namespaces central --logfile /var/log/ceilometer/central.log
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
@ -116,6 +116,11 @@ outputs:
- '/usr/bin/bootstrap_host_exec' - '/usr/bin/bootstrap_host_exec'
- 'ceilometer_agent_central' - 'ceilometer_agent_central'
- "su ceilometer -s /bin/bash -c 'for n in {1..10}; do /usr/bin/ceilometer-upgrade --skip-metering-database && exit 0 || sleep 5; done; exit 1'" - "su ceilometer -s /bin/bash -c 'for n in {1..10}; do /usr/bin/ceilometer-upgrade --skip-metering-database && exit 0 || sleep 5; done; exit 1'"
host_prep_tasks:
- name: create persistent logs directory
file:
path: /var/log/containers/ceilometer
state: directory
upgrade_tasks: upgrade_tasks:
- name: Stop and disable ceilometer agent central service - name: Stop and disable ceilometer agent central service
tags: step2 tags: step2

@ -69,7 +69,7 @@ outputs:
config_image: {get_param: DockerCeilometerConfigImage} config_image: {get_param: DockerCeilometerConfigImage}
kolla_config: kolla_config:
/var/lib/kolla/config_files/ceilometer_agent_compute.json: /var/lib/kolla/config_files/ceilometer_agent_compute.json:
command: /usr/bin/ceilometer-polling --polling-namespaces compute command: /usr/bin/ceilometer-polling --polling-namespaces compute --logfile /var/log/ceilometer/compute.log
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
@ -89,8 +89,14 @@ outputs:
- /var/lib/kolla/config_files/ceilometer_agent_compute.json:/var/lib/kolla/config_files/config.json:ro - /var/lib/kolla/config_files/ceilometer_agent_compute.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/ceilometer/:/var/lib/kolla/config_files/src:ro - /var/lib/config-data/puppet-generated/ceilometer/:/var/lib/kolla/config_files/src:ro
- /var/run/libvirt:/var/run/libvirt:ro - /var/run/libvirt:/var/run/libvirt:ro
- /var/log/containers/ceilometer:/var/log/ceilometer
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:
- name: create persistent logs directory
file:
path: /var/log/containers/ceilometer
state: directory
upgrade_tasks: upgrade_tasks:
- name: Check if openstack-ceilometer-compute is deployed - name: Check if openstack-ceilometer-compute is deployed
command: systemctl is-enabled openstack-ceilometer-compute command: systemctl is-enabled openstack-ceilometer-compute

@ -69,7 +69,7 @@ outputs:
config_image: {get_param: DockerCeilometerConfigImage} config_image: {get_param: DockerCeilometerConfigImage}
kolla_config: kolla_config:
/var/lib/kolla/config_files/ceilometer_agent_notification.json: /var/lib/kolla/config_files/ceilometer_agent_notification.json:
command: /usr/bin/ceilometer-agent-notification command: /usr/bin/ceilometer-agent-notification --logfile /var/log/ceilometer/agent-notification.log
config_files: config_files:
- source: "/var/lib/kolla/config_files/src/*" - source: "/var/lib/kolla/config_files/src/*"
dest: "/" dest: "/"
@ -96,8 +96,14 @@ outputs:
- -
- /var/lib/kolla/config_files/ceilometer_agent_notification.json:/var/lib/kolla/config_files/config.json:ro - /var/lib/kolla/config_files/ceilometer_agent_notification.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/ceilometer/:/var/lib/kolla/config_files/src:ro - /var/lib/config-data/puppet-generated/ceilometer/:/var/lib/kolla/config_files/src:ro
- /var/log/containers/ceilometer:/var/log/ceilometer
environment: environment:
- KOLLA_CONFIG_STRATEGY=COPY_ALWAYS - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
host_prep_tasks:
- name: create persistent logs directory
file:
path: /var/log/containers/ceilometer
state: directory
upgrade_tasks: upgrade_tasks:
- name: Stop and disable ceilometer agent notification service - name: Stop and disable ceilometer agent notification service
tags: step2 tags: step2