OpenStack Queens : Ceilometer 設定#1 (Control ノード)2018/03/11 |
OpenStack Telemetry Service (Ceilometer) をインストールします。
当例では以下のような環境を例に Ceilometer サービスをインストールします。
------------+---------------------------+---------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ Control Node ] | | [ Storage Node ] | | [ Compute Node ] | | | | | | | | MariaDB RabbitMQ | | Open_vSwitch | | Libvirt | | Memcached httpd | | L2_Agent | | Nova_Compute | | Keystone Glance | | L3_Agent | | Open_vSwitch | | Nova_API Cinder_API | | Metadata_Agent | | L2_Agent | | Neutron_Server | | Cinder_Volume | | Ceilometer_Compute | | Metadata_Agent | | Heat_API | | | | Gnocchi | | Heat Engine | | | | Ceilometer_Central | | | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] |
こちらを参考に事前に Gnocchi をインストールしておきます。
当例では Ceilometer で収集したデータを Gnocchi へ保管するよう設定します。 |
[2] | Control ノードの Keystone に Ceilometer 用のユーザー等々を登録しておきます。 |
# ceilometer ユーザー作成 (service プロジェクト所属) [root@dlp ~(keystone)]# openstack user create --domain default --project service --password servicepassword ceilometer +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | b1da1070c8af427886d0202f8bbe414f | | domain_id | default | | enabled | True | | id | 61d8449da0b345f2aecfaf0d13310bd7 | | name | ceilometer | | options | {} | | password_expires_at | None | +---------------------+----------------------------------+ # 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 Service" metering +-------------+----------------------------------+ | Field | Value | +-------------+----------------------------------+ | description | OpenStack Telemetry Service | | enabled | True | | id | dae9e86b5ded4749b457e0887603a537 | | name | ceilometer | | type | metering | +-------------+----------------------------------+ |
[3] | Ceilometer サービスをインストールします。 |
[root@dlp ~(keystone)]# yum --enablerepo=centos-openstack-queens,epel -y install openstack-ceilometer-central openstack-ceilometer-notification python2-ceilometerclient
|
[4] | Ceilometer の基本設定です。 |
[root@dlp ~(keystone)]# mv /etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf.org
[root@dlp ~(keystone)]#
vi /etc/ceilometer/ceilometer.conf # 新規作成 [DEFAULT] # RabbitMQ 接続情報 transport_url = rabbit://openstack:password@10.0.0.30 [api] auth_mode = keystone [dispatcher_gnocchi] filter_service_activity = False # Keystone 認証情報 (gnocchiで認証) [keystone_authtoken] www_authenticate_uri = http://10.0.0.30:5000 auth_url = http://10.0.0.30:5000 memcached_servers = 10.0.0.30:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = gnocchi password = servicepassword # Keystone 認証情報 (ceilometerで認証) [service_credentials] auth_url = http://10.0.0.30:5000 memcached_servers = 10.0.0.30:11211 auth_type = password project_domain_name = default user_domain_name = default project_name = service username = ceilometer password = servicepassword chmod 640 /etc/ceilometer/ceilometer.conf [root@dlp ~(keystone)]# chgrp ceilometer /etc/ceilometer/ceilometer.conf [root@dlp ~(keystone)]# su -s /bin/bash ceilometer -c "ceilometer-upgrade --skip-metering-database" [root@dlp ~(keystone)]# systemctl start openstack-ceilometer-central openstack-ceilometer-notification [root@dlp ~(keystone)]# systemctl enable openstack-ceilometer-central openstack-ceilometer-notification |
Sponsored Link |
|