OpenStack Dalmatian : Ceilometer 設定 (Network ノード)2024/10/16 |
OpenStack Telemetry Service (Ceilometer) をインストールします。 当例では以下のような環境を例に Ceilometer サービスをインストールします。 ------------+--------------------------+--------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ dlp.srv.world ] | | [ network.srv.world ] | | [ node01.srv.world ] | | (Control Node) | | (Network Node) | | (Compute Node) | | | | | | | | MariaDB RabbitMQ | | Open vSwitch | | Libvirt | | Memcached Nginx | | Neutron Server | | Nova Compute | | Keystone httpd | | OVN-Northd | | Open vSwitch | | Glance Nova API | | Nginx iSCSI Target | | OVN Metadata Agent | | Cinder API | | Cinder Volume | | OVN-Controller | | | | Gnocchi httpd | | Ceilometer Compute | | | | Ceilometer Central | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] |
こちらを参考に事前に Gnocchi をインストールしておきます。
当例では Ceilometer で収集したデータを Gnocchi へ保管するよう設定します。 |
[2] | Control ノードの Keystone に Ceilometer 用のユーザー等々を登録しておきます。 |
# [service] プロジェクト所属で [ceilometer] ユーザーを作成 [root@dlp ~(keystone)]# openstack user create --domain default --project service --password servicepassword ceilometer +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | aff8e7e402dc4d9e849bbe0e34fa4538 | | domain_id | default | | email | None | | enabled | True | | id | 49ad0cbb8d944b8fbe748507c42d0702 | | name | ceilometer | | description | None | | 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 | +-------------+----------------------------------+ | id | d6277746858f473dbea1f3119c6f5ac3 | | name | ceilometer | | type | metering | | enabled | True | | description | OpenStack Telemetry Service | +-------------+----------------------------------+ |
[3] | Network ノードで Ceilometer サービスをインストールします。 |
[root@network ~]# dnf --enablerepo=centos-openstack-dalmatian,epel,crb -y install openstack-ceilometer-central openstack-ceilometer-notification
|
[4] | Ceilometer の基本設定です。 |
[root@network ~]# mv /etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf.org
[root@network ~]#
vi /etc/ceilometer/ceilometer.conf # 新規作成 [DEFAULT] # RabbitMQ 接続情報 transport_url = rabbit://openstack:password@dlp.srv.world [api] auth_mode = keystone [dispatcher_gnocchi] filter_service_activity = False # Keystone 認証情報 (gnocchi で認証) [keystone_authtoken] www_authenticate_uri = https://dlp.srv.world:5000 auth_url = https://dlp.srv.world:5000 memcached_servers = dlp.srv.world:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = gnocchi password = servicepassword # httpd Keystone で自己署名の証明書を使用の場合は [true] insecure = false # Keystone 認証情報 (ceilometer で認証) [service_credentials] auth_url = https://dlp.srv.world:5000 memcached_servers = dlp.srv.world:11211 auth_type = password project_domain_name = Default user_domain_name = Default project_name = service username = ceilometer password = servicepassword # httpd Keystone で自己署名の証明書を使用の場合は [true] insecure = false chmod 640 /etc/ceilometer/ceilometer.conf [root@network ~]# chgrp ceilometer /etc/ceilometer/ceilometer.conf [root@network ~]# su -s /bin/bash ceilometer -c "ceilometer-upgrade" [root@network ~]# systemctl enable --now openstack-ceilometer-central openstack-ceilometer-notification |
Sponsored Link |
|