Ubuntu 20.04
Sponsored Link

OpenStack Xena : Configure Ceilometer (Compute Node)2021/10/11

 
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
+-----------+-----------+   +-----------+-----------+   +-----------+-----------+
|    [ Control Node ]   |   |    [ Storage 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           |   |    Heat API/Engine    |   |     OVN-Controller    |
|                       |   |    Gnocchi   httpd    |   |   Ceilometer Compute  |
|                       |   |   Ceilometer Central  |   |                       |
+-----------------------+   +-----------------------+   +-----------------------+

[1] Install Ceilometer service on Compute Node.
root@node01:~#
apt -y install ceilometer-agent-compute
[2] Configure Ceilometer.
root@node01:~#
mv /etc/ceilometer/ceilometer.conf /etc/ceilometer/ceilometer.conf.org

root@node01:~#
vi /etc/ceilometer/ceilometer.conf
# create new

[DEFAULT]
# RabbitMQ connection info
transport_url = rabbit://openstack:password@10.0.0.30

[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@node01:~#
vi /usr/lib/python3/dist-packages/ceilometer/compute/discovery.py
# line 143 : change like follows

                xml_string = domain.metadata(
                    libvirt.VIR_DOMAIN_METADATA_ELEMENT,
                    #"http://openstack.org/xmlns/libvirt/nova/1.0")
                    "http://openstack.org/xmlns/libvirt/nova/1.1")

root@node01:~#
chmod 640 /etc/ceilometer/ceilometer.conf

root@node01:~#
chgrp ceilometer /etc/ceilometer/ceilometer.conf

root@node01:~#
systemctl restart ceilometer-agent-compute

root@node01:~#
systemctl enable ceilometer-agent-compute

Matched Content