CentOS 7
Sponsored Link

OpenStack Mitaka : Configure Ceilometer#1
2016/05/12
 
Configure OpenStack Metering Service (Ceilometer).
This example shows to install Metering Services on the existing environment like follows.
For example, install and configure Metering Services on the Network Node.
                                |
+------------------+            |            +------------------------+
| [ Control Node ] |            |            |    [ Network Node ]    |
|     Keystone     |10.0.0.30   |   10.0.0.50|    DHCP,L3,L2 Agent    |
|      Glance      |------------+------------|     Metadata Agent     |
|     Nova API     |eth0        |        eth0|   Ceilometer Services  |
|  Neutron Server  |            |            |                        |
+------------------+            |            +------------------------+
                            eth0|10.0.0.51
                      +--------------------+
                      |  [ Compute Node ]  |
                      |    Nova Compute    |
                      |      L2 Agent      |
                      | Ceilometer-Compute |
                      +--------------------+

 
First, Configure Control Node on this section.
[1] Add a user or endpoint for Ceilometer on existing Keystone Server.
# add ceilometer user

[root@dlp ~(keystone)]#
openstack user create --domain default --project service --password servicepassword ceilometer

+--------------------+----------------------------------+
| Field              | Value                            |
+--------------------+----------------------------------+
| default_project_id | 4a80b177558b49d7a58038770a344aeb |
| domain_id          | dc18e12756a54ce7aea35e99f01decd8 |
| enabled            | True                             |
| id                 | e1fb911f6f98493a835f7f3d4e3d11ac |
| name               | ceilometer                       |
+--------------------+----------------------------------+

# add ceilometer user to admin role

[root@dlp ~(keystone)]#
openstack role add --project service --user ceilometer admin
# add service entry for ceilometer

[root@dlp ~(keystone)]#
openstack service create --name ceilometer --description "Openstack Telemetry" metering

+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | Openstack Telemetry              |
| enabled     | True                             |
| id          | f00554d7d377407ab50b694d5be4db78 |
| name        | ceilometer                       |
| type        | metering                         |
+-------------+----------------------------------+

# define IP of a node for installing Metering services

[root@dlp ~(keystone)]#
export ceilometer_api=10.0.0.50
# add endpoint for ceilometer (public)

[root@dlp ~(keystone)]#
openstack endpoint create --region RegionOne metering public http://$ceilometer_api:8777

+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | 4738d874aee0454d8ebf8d3144c5894e |
| interface    | public                           |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | f00554d7d377407ab50b694d5be4db78 |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+

# add endpoint for ceilometer (internal)

[root@dlp ~(keystone)]#
openstack endpoint create --region RegionOne metering internal http://$ceilometer_api:8777

+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | e97417e115a34d59aa5806c296a9061a |
| interface    | internal                         |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | f00554d7d377407ab50b694d5be4db78 |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+

# add endpoint for ceilometer (admin)

[root@dlp ~(keystone)]#
openstack endpoint create --region RegionOne metering admin http://$ceilometer_api:8777

+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| enabled      | True                             |
| id           | 889044989e9b4bee94179f21b6a95545 |
| interface    | admin                            |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | f00554d7d377407ab50b694d5be4db78 |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+
Matched Content
 
Tweet