CentOS 6
Sponsored Link

OpenStack Icehouse : Configure Ceilometer#12015/02/03

 
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)]#
keystone user-create --tenant service --name ceilometer --pass servicepassword --enabled true

+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |                                  |
| enabled  |               True               |
|    id    | 9c55f90c4a214c208669a312cdcf9dc0 |
|   name   |            ceilometer            |
| tenantId | c578c978ddd24786a52c6b4ea97aa241 |
| username |            ceilometer            |
+----------+----------------------------------+

# add ceilometer user to admin role

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

[root@dlp ~(keystone)]#
keystone service-create --name=ceilometer --type=metering --description="Telemetry Service"

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |        Telemetry Service         |
|   enabled   |               True               |
|      id     | baaa1325a046409e870aa7a49bb5a524 |
|     name    |            ceilometer            |
|     type    |             metering             |
+-------------+----------------------------------+

# define IP of a node for installing Metering services

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

[root@dlp ~(keystone)]#
keystone endpoint-create --region RegionOne \
--service ceilometer \
--publicurl "http://$ceilometer_host:8777" \
--internalurl "http://$ceilometer_host:8777" \
--adminurl "http://$ceilometer_host:8777"

+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
|   adminurl  |      http://10.0.0.50:8777       |
|      id     | 1e4e61d70ae64d3c98981fc79f9eee65 |
| internalurl |      http://10.0.0.50:8777       |
|  publicurl  |      http://10.0.0.50:8777       |
|    region   |            RegionOne             |
|  service_id | baaa1325a046409e870aa7a49bb5a524 |
+-------------+----------------------------------+
Matched Content