CentOS Stream 8
Sponsored Link

OpenStack Yoga : Configure Ceilometer (Network Node)2022/06/02

 
Install OpenStack Telemetry Service (Ceilometer).
This example is based on the environment like follows.
------------+-----------------------------+-----------------------------+------------
            |                             |                             |
        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  httpd     |     |     Neutron Server    |     |      Nova Compute     |
|  Keystone   Glance    |     |      OVN-Northd       |     |      Open vSwitch     |
|  Nova API  Cinder API |     |     Cinder Volume     |     |   OVN Metadata Agent  |
|                       |     |     Gnocchi httpd     |     |     OVN-Controller    |
|                       |     |   Ceilometer Central  |     |   Ceilometer Compute  |
+-----------------------+     +-----------------------+     +-----------------------+

[1]
[2] Add users and others for Ceilometer in Keystone.
# create [ceilometer] user in [service] project

[root@dlp ~(keystone)]#
openstack user create --domain default --project service --password servicepassword ceilometer

+---------------------+----------------------------------+
| Field               | Value                            |
+---------------------+----------------------------------+
| default_project_id  | 8787527217494c6a87dd5a3b68dce1ef |
| domain_id           | default                          |
| enabled             | True                             |
| id                  | 0101cdc1b5f64f998ec4d7541fed4771 |
| name                | ceilometer                       |
| options             | {}                               |
| password_expires_at | None                             |
+---------------------+----------------------------------+

# add [ceilometer] user in [admin] role

[root@dlp ~(keystone)]#
openstack role add --project service --user ceilometer admin
# create service entry for [ceilometer]

[root@dlp ~(keystone)]#
openstack service create --name ceilometer --description "OpenStack Telemetry Service" metering

+-------------+----------------------------------+
| Field       | Value                            |
+-------------+----------------------------------+
| description | OpenStack Telemetry Service      |
| enabled     | True                             |
| id          | f441aed1db184b929f3aad333e2992cf |
| name        | ceilometer                       |
| type        | metering                         |
+-------------+----------------------------------+
[3] Install Ceilometer services Network Node.
# install from Yoga, EPEL, PowerTools

[root@network ~]#
dnf --enablerepo=centos-openstack-yoga,powertools,epel -y install openstack-ceilometer-central openstack-ceilometer-notification python3-ceilometerclient
[4] Configure Ceilometer.
[root@network ~]#
mv /etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf.org

[root@network ~]#
vi /etc/ceilometer/ceilometer.conf
# create new

[DEFAULT]
# RabbitMQ connection info
transport_url = rabbit://openstack:password@dlp.srv.world

[api]
auth_mode = keystone

[dispatcher_gnocchi]
filter_service_activity = False

# Keystone auth info (with 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
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

# Keystone auth info (with 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
# if using self-signed certs on Apache2 Keystone, turn to [true]
insecure = false

[root@network ~]#
chmod 640 /etc/ceilometer/ceilometer.conf

[root@network ~]#
chgrp ceilometer /etc/ceilometer/ceilometer.conf

[root@network ~]#
su -s /bin/bash ceilometer -c "ceilometer-upgrade --skip-metering-database"

[root@network ~]#
systemctl enable --now openstack-ceilometer-central openstack-ceilometer-notification

Matched Content