Enable Block Storage meters
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Telemetry uses notifications to collect Block Storage service meters.
Perform these steps on the controller and Block Storage nodes.

.. note::

   Your environment must include the Block Storage service.

Configure Cinder to use Telemetry
---------------------------------

Edit the ``/etc/cinder/cinder.conf`` file and complete the
following actions:

* In the ``[DEFAULT]`` section, configure notifications:

  .. code-block:: ini

     [DEFAULT]
     ...
     notification_driver = messagingv2

Finalize installation
---------------------

.. only:: obs or rdo

   #. Restart the Block Storage services on the controller node:

      .. code-block:: console

         # systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service

   #. Restart the Block Storage services on the storage nodes:

      .. code-block:: console

         # systemctl restart openstack-cinder-volume.service

.. only:: ubuntu

   #. Restart the Block Storage services on the controller node:

      .. code-block:: console

         # service cinder-api restart
         # service cinder-scheduler restart

   #. Restart the Block Storage services on the storage nodes:

      .. code-block:: console

         # service cinder-volume restart

3. Use the ``cinder-volume-usage-audit`` command on Block Storage nodes
   to retrieve meters on demand. For more information, see the
   `Cloud Administrator Guide <http://docs.openstack.org/admin-guide-cloud/
   telemetry-data-collection.html#block-storage-audit-script-setup-to-get-
   notifications>`__.

Enable Block Storage meters
~~~~~~~~~~~~~~~~~~~~~~~~~~~

Telemetry uses notifications to collect Block Storage service meters.
Perform these steps on the controller and Block Storage nodes.

.. note::

   Your environment must include the Block Storage service.

Configure Cinder to use Telemetry
---------------------------------

Edit the ``/etc/cinder/cinder.conf`` file and complete the
following actions:

* In the ``[DEFAULT]`` section, configure notifications:

  .. code-block:: ini

     [DEFAULT]
     ...
     notification_driver = messagingv2

Finalize installation
---------------------

.. only:: obs or rdo

   #. Restart the Block Storage services on the controller node:

      .. code-block:: console

         # systemctl restart openstack-cinder-api.service openstack-cinder-scheduler.service

   #. Restart the Block Storage services on the storage nodes:

      .. code-block:: console

         # systemctl restart openstack-cinder-volume.service

.. only:: ubuntu or debian

   #. Restart the Block Storage services on the controller node:

      .. code-block:: console

         # service cinder-api restart
         # service cinder-scheduler restart

   #. Restart the Block Storage services on the storage nodes:

      .. code-block:: console

         # service cinder-volume restart

3. Use the ``cinder-volume-usage-audit`` command on Block Storage nodes
   to retrieve meters on demand. For more information, see the
   `Cloud Administrator Guide <http://docs.openstack.org/admin-guide-cloud/
   telemetry-data-collection.html#block-storage-audit-script-setup-to-get-
   notifications>`__.

Fix Ceilometer + Cinder in Debian
[install] Fix Ceilometer + Cinder in Debian

Adds Debian in the Ubuntu section for restarting the Cinder service
when configuring Cinder to work with Ceilometer.

Change-Id: I3ad49ad4bd7bb85584f3a32f493c1500b1427203
