CentOS 7
Sponsored Link

OpenStack Newton : Configure Ceilometer#12016/11/01

 
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 API/Service |
|  Neutron Server  |            |            |                        |
+------------------+            |            +------------------------+
                            eth0|10.0.0.51
                      +--------------------+
                      |  [ Compute Node ]  |
                      |    Nova Compute    |
                      |      L2 Agent      |
                      | Ceilometer-Compute |
                      +--------------------+

 
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  | 91a1904a1f6e4ccfa8e3ee75cf822696 |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 0d9170e0d17b4cf7aaaf0756cc94c293 |
| name                | ceilometer                       |
| password_expires_at | None                             |
+---------------------+----------------------------------+

# 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          | b919214e3daf4eabbb7a201f10cd8df5 |
| 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           | f8adf73ce04449c79056a4cf3cc4cc36 |
| interface    | public                           |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | b919214e3daf4eabbb7a201f10cd8df5 |
| 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           | 6bffd66025c843e893ff59eef40b8a6b |
| interface    | internal                         |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | b919214e3daf4eabbb7a201f10cd8df5 |
| 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           | 5e3ce300c5b54659a1a6f12f9e59da84 |
| interface    | admin                            |
| region       | RegionOne                        |
| region_id    | RegionOne                        |
| service_id   | b919214e3daf4eabbb7a201f10cd8df5 |
| service_name | ceilometer                       |
| service_type | metering                         |
| url          | http://10.0.0.50:8777            |
+--------------+----------------------------------+
[2] Install Ceilometer Client tool.
# install from Newton, EPEL

[root@dlp ~(keystone)]#
yum --enablerepo=centos-openstack-newton,epel -y install python2-ceilometerclient
Matched Content