aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongShengping <chdzsp@163.com>2016-07-11 17:33:32 +0800
committerZhongShengping <chdzsp@163.com>2016-07-12 10:11:08 +0800
commitb34ede31d4830ddb12acfc064abee8b4e0b4686a (patch)
tree2e59a377cca7459523d8dc7798ceba6b0d2fd676
parent44357460b86f21fdd82dca4e3b86876bcf989a99 (diff)
downloadkolla-b34ede31d4830ddb12acfc064abee8b4e0b4686a.tar.gz
kolla-b34ede31d4830ddb12acfc064abee8b4e0b4686a.zip
Enable Block Storage meters
Use [oslo_messaging_notifications]/driver option in cinder.conf to enable block storage meters, set the option default value is 'messagingv2'. Change-Id: I1e885324fbeb2ad1c547c6c6618cbacd0e441d51 Closes-Bug: 1602055
-rw-r--r--ansible/roles/cinder/templates/cinder.conf.j25
-rw-r--r--releasenotes/notes/support-ceilometer-in-cinder-4386a3e5d134d84f.yaml4
2 files changed, 9 insertions, 0 deletions
diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2
index 77449814c..a20182497 100644
--- a/ansible/roles/cinder/templates/cinder.conf.j2
+++ b/ansible/roles/cinder/templates/cinder.conf.j2
@@ -42,6 +42,11 @@ nova_catalog_info = compute:nova:internalURL
auth_strategy = keystone
+[oslo_messaging_notifications]
+{% if enable_ceilometer | bool %}
+driver = messagingv2
+{% endif %}
+
[database]
connection = mysql+pymysql://{{ cinder_database_user }}:{{ cinder_database_password }}@{{ cinder_database_address }}/{{ cinder_database_name }}
max_retries = -1
diff --git a/releasenotes/notes/support-ceilometer-in-cinder-4386a3e5d134d84f.yaml b/releasenotes/notes/support-ceilometer-in-cinder-4386a3e5d134d84f.yaml
new file mode 100644
index 000000000..ef64e092b
--- /dev/null
+++ b/releasenotes/notes/support-ceilometer-in-cinder-4386a3e5d134d84f.yaml
@@ -0,0 +1,4 @@
+---
+features:
+ - Use [oslo_messaging_notifications]/driver option in cinder.conf
+ to enable block storage meters.