OpenStack Juno : Configure Ceilometer#12015/01/29 |
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 | 66dd5220b9f948fe90b7f94ab7128ebd | | name | ceilometer | | tenantId | 9e657ab1d2344de5aa9d86006732c7f0 | | 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 | 17d776ba20da4a5cb3fd2a3d223e5033 | | 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 | 79b0326d9d4f492d833935bd015874eb | | internalurl | http://10.0.0.50:8777 | | publicurl | http://10.0.0.50:8777 | | region | RegionOne | | service_id | 17d776ba20da4a5cb3fd2a3d223e5033 | +-------------+----------------------------------+ |
Sponsored Link |
|