OpenStack Liberty : Ceilometer 設定#12015/11/19 |
OpenStack Metering Service(Ceilometer)を設定します。
ここでは以下のような構築済みの環境に Ceilometer を追加インストールして設定します。
例として、Network Node に Metering サービスをインストールして設定します。 | +------------------+ | +------------------------+ | [ 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 | +--------------------+ |
ここでは Control ノードの設定をします。
|
|
[1] | 構築済みの Keystone へ Ceilometer用のユーザー・エンドポイント等を登録します。 |
# ceilometer ユーザー作成 [root@dlp ~(keystone)]# openstack user create --domain default --project service --password servicepassword ceilometer +--------------------+----------------------------------+ | Field | Value | +--------------------+----------------------------------+ | default_project_id | 11a4bfa2b8c748ad860efb34b5fefb7f | | domain_id | default | | enabled | True | | id | 04158e03e0a14df9a474e9ca129162ae | | name | ceilometer | +--------------------+----------------------------------+ # ceilometer ユーザーを adminロール に加える [root@dlp ~(keystone)]# openstack role add --project service --user ceilometer admin
# ceilometer用サービスエントリ作成 [root@dlp ~(keystone)]# openstack service create --name ceilometer --description "Openstack Telemetry" metering +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | Openstack Telemetry | | enabled | True | | id | 95c581f5e74445d7a82a9af1965ce3d3 | | name | ceilometer | | type | metering | +-------------+----------------------------------+ # Ceilometer API のIPアドレスを定義 [root@dlp ~(keystone)]# export ceilometer_api=10.0.0.50
# ceilometer 用エンドポイント作成 (public) [root@dlp ~(keystone)]# openstack endpoint create --region RegionOne metering public http://$ceilometer_api:8777 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | 4f75afb6fc6d4ce294c65d5a27ad07d1 | | interface | public | | region | RegionOne | | region_id | RegionOne | | service_id | 95c581f5e74445d7a82a9af1965ce3d3 | | service_name | ceilometer | | service_type | metering | | url | http://10.0.0.50:8777 | +--------------+----------------------------------+ # ceilometer 用エンドポイント作成 (internal) [root@dlp ~(keystone)]# openstack endpoint create --region RegionOne metering internal http://$ceilometer_api:8777 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | e8a7c38d8f834a48977aec75d4690909 | | interface | internal | | region | RegionOne | | region_id | RegionOne | | service_id | 95c581f5e74445d7a82a9af1965ce3d3 | | service_name | ceilometer | | service_type | metering | | url | http://10.0.0.50:8777 | +--------------+----------------------------------+ # ceilometer 用エンドポイント作成 (admin) [root@dlp ~(keystone)]# openstack endpoint create --region RegionOne metering admin http://$ceilometer_api:8777 +--------------+----------------------------------+ | Field | Value | +--------------+----------------------------------+ | enabled | True | | id | 80690312cf3e46c88a6360d9772dcf44 | | interface | admin | | region | RegionOne | | region_id | RegionOne | | service_id | 95c581f5e74445d7a82a9af1965ce3d3 | | service_name | ceilometer | | service_type | metering | | url | http://10.0.0.50:8777 | +--------------+----------------------------------+ |
Sponsored Link |
|