Ubuntu 16.04
Sponsored Link

OpenStack Mitaka : Configure Ceilometer#1
2016/06/08
 
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 | 004097e8a2da45e6a68f6474b5bd7207 |
| domain_id          | 780b41cee03242da9ec0c73e1a76dc6e |
| enabled            | True                             |
| id                 | fe169ebaa28a41b4ad808cb43f977f98 |
| 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          | 213168f6001e489786309a1c9788d4ee |
| 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           | 73e6de8161ac4dd28d2204814209f9e0 |
| interface    | public                           |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | 213168f6001e489786309a1c9788d4ee |
| 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           | b6c3c540d3d84cf89df9dfc6785e93f0 |
| interface    | internal                         |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | 213168f6001e489786309a1c9788d4ee |
| 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           | 0df04ac72b4e42de96e2ab73003438a8 |
| interface    | admin                            |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | 213168f6001e489786309a1c9788d4ee |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+
Matched Content
 
Tweet