aboutsummaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/ceilometer_controller
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2016-01-18 12:18:23 +0800
committercarey.xu <carey.xuhan@huawei.com>2016-01-18 12:18:23 +0800
commitcd9a37eec7b6a25b33af9b6400697c2386cc1cbd (patch)
tree647800946b959f443e437e6bc641311f72aaee37 /deploy/adapters/ansible/roles/ceilometer_controller
parent77944ac2791a631cfa785d16cc32dae8082b2719 (diff)
change ceilometer polling interval to 300s
- tempest testcases only wait 300s for meters, but default ceilometer collector polling interval is 600s, so the testcases will raise timeout exception. we change the default polling interval to avoid this. Change-Id: I33479a4e12798e96067db7bab844ad952d40b20c Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/ceilometer_controller')
-rw-r--r--deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml b/deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml
index a6ee0000..5ed7163e 100644
--- a/deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/ceilometer_controller/tasks/main.yml
@@ -9,6 +9,7 @@
template: src={{ item.src}} dest=/opt/os_templates
with_items: "{{ ceilometer_configs_templates }}"
+
- name: update ceilometer configs
shell: crudini --merge {{ item.1 }} < /opt/os_templates/{{ item.0.src }}
with_subelements:
@@ -16,6 +17,13 @@
- dest
notify: restart ceilometer relation service
+- name: change meter polling interval to 300s
+ replace:
+ dest: /etc/ceilometer/pipeline.yaml
+ regexp: 'interval: .+'
+ replace: 'interval: 300'
+ notify: restart ceilometer relation service
+
- name: write services to monitor list
lineinfile: dest=/opt/service create=yes line='{{ item }}'
with_items: ceilometer_services