CentOS 7
Sponsored Link

OpenStack Kilo : Configure Ceilometer#12015/06/20

 
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 --project service --password servicepassword ceilometer

+------------+----------------------------------+
| Field      | Value                            |
+------------+----------------------------------+
| email      | None                             |
| enabled    | True                             |
| id         | 66d2bda323f548c39e99b43941bee287 |
| name       | ceilometer                       |
| project_id | 4e84300cbeeb4a68a0e1864ea0ae1869 |
| username   | ceilometer                       |
+------------+----------------------------------+

# add ceilometer user to admin role

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

+-------+----------------------------------+
| Field | Value                            |
+-------+----------------------------------+
| id    | 2100956a1c974cae8c81308845c174a8 |
| name  | 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          | 61fa3a54dc5449158521add67c132c05 |
| 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

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

+--------------+----------------------------------+
| Field        | Value                            |
+--------------+----------------------------------+
| adminurl     | http://10.0.0.50:8777            |
| id           | acc7f1d907ba4b4a8f9362a09ed98490 |
| internalurl  | http://10.0.0.50:8777            |
| publicurl    | http://10.0.0.50:8777            |
| region       | RegionOne                        |
| service_id   | 61fa3a54dc5449158521add67c132c05 |
| service_name | ceilometer                       |
| service_type | metering                         |
+--------------+----------------------------------+
Matched Content