OpenStack Rocky : Configure Ceilometer#1 (Network Node)2018/09/18 |
Install OpenStack Telemetry Service (Ceilometer).
This example is based on the emvironment like follows.
------------+---------------------------+---------------------------+------------ | | | eth0|10.0.0.30 eth0|10.0.0.50 eth0|10.0.0.51 +-----------+-----------+ +-----------+-----------+ +-----------+-----------+ | [ Control Node ] | | [ Network Node ] | | [ Compute Node ] | | | | | | | | MariaDB RabbitMQ | | Linux Bridge | | Libvirt | | Memcached httpd | | L2 Agent | | Nova Compute | | Keystone Glance | | L3 Agent | | Linux Bridge | | Nova API Cinder API | | Metadata Agent | | L2 Agent | | Neutron Server | | Cinder Volume | | Ceilometer Compute | | Metadata Agent | | Heat API | | | | | | Heat Engine | | | | | | Gnocchi httpd | | | | | | Ceilometer Central | | | +-----------------------+ +-----------------------+ +-----------------------+ |
[1] | |
[2] | Add users and others for Ceilometer in Keystone. |
# add ceilometer user (set in service project) root@dlp ~(keystone)# openstack user create --domain default --project service --password servicepassword ceilometer +---------------------+----------------------------------+ | Field | Value | +---------------------+----------------------------------+ | default_project_id | aaeee626080841a491235fb06e77f10c | | domain_id | default | | enabled | True | | id | 1473e02cb8754787a0a9e47dd7d8e0ce | | name | ceilometer | | options | {} | | password_expires_at | None | +---------------------+----------------------------------+ # add ceilometer user in admin role root@dlp ~(keystone)# openstack role add --project service --user ceilometer admin
# add 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 | b8a6739cf122430a8bbdc1265724d972 | | name | ceilometer | | type | metering | +-------------+----------------------------------+ |
[3] | Install Ceilometer services. |
root@network:~# apt -y install ceilometer-agent-central ceilometer-agent-notification python-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@10.0.0.30 [api] auth_mode = keystone [dispatcher_gnocchi] filter_service_activity = False # Keystone auth info (with gnocchi user) [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 auth info (with ceilometer user) [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@network:~# chgrp ceilometer /etc/ceilometer/ceilometer.conf root@network:~# su -s /bin/bash ceilometer -c "ceilometer-upgrade" root@network:~# systemctl restart ceilometer-agent-central ceilometer-agent-notification root@network:~# systemctl enable ceilometer-agent-central ceilometer-agent-notification |
Sponsored Link |