CentOS Stream 8
Sponsored Link

OpenStack Victoria : Ceilometer 設定 (Control ノード)2021/03/30

 
OpenStack Telemetry Service (Ceilometer) をインストールします。
当例では以下のような環境を例に Ceilometer サービスをインストールします。
------------+---------------------------+---------------------------+------------
            |                           |                           |
        eth0|10.0.0.30              eth0|10.0.0.50              eth0|10.0.0.51
+-----------+-----------+   +-----------+-----------+   +-----------+-----------+
|    [ Control Node ]   |   |    [ Network Node ]   |   |    [ Compute Node ]   |
|                       |   |                       |   |                       |
|  MariaDB    RabbitMQ  |   |      Open vSwitch     |   |        Libvirt        |
|  Memcached  httpd     |   |     Neutron Server    |   |     Nova Compute      |
|  Keystone   Glance    |   |       OVN-Northd      |   |      Open vSwitch     |
|  Nova API             |   |     Cinder Volume     |   |   OVN Metadata Agent  |
|  Cinder API           |   |      iSCSI Target     |   |     OVN-Controller    |
|  Gnocchi              |   |     Heat API/Engine   |   |   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  | affa3a6446154e37adfd233c437bacc1 |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 66a09b5dee7b451fb4cb4216ef7067be |
| 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          | 858232a25fa943bb97e833f940d0c608 |
| name        | ceilometer                       |
| type        | metering                         |
+-------------+----------------------------------+
[3] Ceilometer サービスをインストールします。
# Victoria, EPEL, PowerTools からインストール

[root@dlp ~(keystone)]#
dnf --enablerepo=centos-openstack-victoria,powertools,epel -y install openstack-ceilometer-central openstack-ceilometer-notification python3-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

[root@dlp ~(keystone)]#
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 enable --now openstack-ceilometer-central openstack-ceilometer-notification

関連コンテンツ