diff --git a/ansible/roles/cinder/templates/cinder.conf.j2 b/ansible/roles/cinder/templates/cinder.conf.j2 index 77449814c9a69d54ad8a79941da9a360fcbd4026..a20182497d7413bba6e96a656d9ae3482ecf51e7 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 0000000000000000000000000000000000000000..ef64e092b07f8a720085b776aebb496a4cf76edd --- /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.