| 1 |
.. _verify: |
| 2 |
|
| 3 |
Verify operation |
| 4 |
~~~~~~~~~~~~~~~~ |
| 5 |
|
| 6 |
Verify operation of the Telemetry service. These steps only include the |
| 7 |
Image service meters to reduce clutter. Environments with ceilometer |
| 8 |
integration for additional services contain more meters. |
| 9 |
|
| 10 |
.. note:: |
| 11 |
|
| 12 |
Perform these steps on the controller node. |
| 13 |
|
| 14 |
.. note:: |
| 15 |
|
| 16 |
The following uses Gnocchi to verify data. Alternatively, data can be |
| 17 |
published to a file backend temporarily by using a ``file://`` publisher. |
| 18 |
|
| 19 |
#. Source the ``admin`` credentials to gain access to |
| 20 |
admin-only CLI commands: |
| 21 |
|
| 22 |
.. code-block:: console |
| 23 |
|
| 24 |
$ . admin-openrc |
| 25 |
|
| 26 |
#. List available resource and its metrics: |
| 27 |
|
| 28 |
.. code-block:: console |
| 29 |
|
| 30 |
$ gnocchi resource list --type image |
| 31 |
+--------------------------------------+-------+----------------------------------+---------+--------------------------------------+----------------------------------+----------+----------------------------------+--------------+ |
| 32 |
| id | type | project_id | user_id | original_resource_id | started_at | ended_at | revision_start | revision_end | |
| 33 |
+--------------------------------------+-------+----------------------------------+---------+--------------------------------------+----------------------------------+----------+----------------------------------+--------------+ |
| 34 |
| a6b387e1-4276-43db-b17a-e10f649d85a3 | image | 6fd9631226e34531b53814a0f39830a9 | None | a6b387e1-4276-43db-b17a-e10f649d85a3 | 2017-01-25T23:50:14.423584+00:00 | None | 2017-01-25T23:50:14.423601+00:00 | None | |
| 35 |
+--------------------------------------+-------+----------------------------------+---------+--------------------------------------+----------------------------------+----------+----------------------------------+--------------+ |
| 36 |
|
| 37 |
$ gnocchi resource show a6b387e1-4276-43db-b17a-e10f649d85a3 |
| 38 |
+-----------------------+-------------------------------------------------------------------+ |
| 39 |
| Field | Value | |
| 40 |
+-----------------------+-------------------------------------------------------------------+ |
| 41 |
| created_by_project_id | aca4db3db9904ecc9c1c9bb1763da6a8 | |
| 42 |
| created_by_user_id | 07b0945689a4407dbd1ea72c3c5b8d2f | |
| 43 |
| creator | 07b0945689a4407dbd1ea72c3c5b8d2f:aca4db3db9904ecc9c1c9bb1763da6a8 | |
| 44 |
| ended_at | None | |
| 45 |
| id | a6b387e1-4276-43db-b17a-e10f649d85a3 | |
| 46 |
| metrics | image.download: 839afa02-1668-4922-a33e-6b6ea7780715 | |
| 47 |
| | image.serve: 1132e4a0-9e35-4542-a6ad-d6dc5fb4b835 | |
| 48 |
| | image.size: 8ecf6c17-98fd-446c-8018-b741dc089a76 | |
| 49 |
| original_resource_id | a6b387e1-4276-43db-b17a-e10f649d85a3 | |
| 50 |
| project_id | 6fd9631226e34531b53814a0f39830a9 | |
| 51 |
| revision_end | None | |
| 52 |
| revision_start | 2017-01-25T23:50:14.423601+00:00 | |
| 53 |
| started_at | 2017-01-25T23:50:14.423584+00:00 | |
| 54 |
| type | image | |
| 55 |
| user_id | None | |
| 56 |
+-----------------------+-------------------------------------------------------------------+ |
| 57 |
|
| 58 |
|
| 59 |
#. Download the CirrOS image from the Image service: |
| 60 |
|
| 61 |
.. code-block:: console |
| 62 |
|
| 63 |
$ IMAGE_ID=$(glance image-list | grep 'cirros' | awk '{ print $2 }') |
| 64 |
$ glance image-download $IMAGE_ID > /tmp/cirros.img |
| 65 |
|
| 66 |
#. List available meters again to validate detection of the image |
| 67 |
download: |
| 68 |
|
| 69 |
.. code-block:: console |
| 70 |
|
| 71 |
$ gnocchi measures show 839afa02-1668-4922-a33e-6b6ea7780715 |
| 72 |
+---------------------------+-------------+-----------+ |
| 73 |
| timestamp | granularity | value | |
| 74 |
+---------------------------+-------------+-----------+ |
| 75 |
| 2017-01-26T15:35:00+00:00 | 300.0 | 3740163.0 | |
| 76 |
+---------------------------+-------------+-----------+ |
| 77 |
|
| 78 |
#. Remove the previously downloaded image file ``/tmp/cirros.img``: |
| 79 |
|
| 80 |
.. code-block:: console |
| 81 |
|
| 82 |
$ rm /tmp/cirros.img |