Fix the issue that missing the app file in /var/www/cgi-bin/ceilometer/ Closes-Bug:#1632635 Change-Id: I79aa11d33d9fb2a3f4f9f1e197b94cbf4c51df0c
2.9 KiB
Install and configure for Red Hat Enterprise Linux and CentOS
This section describes how to install and configure the Telemetry service, code-named ceilometer, on the controller node.
This section assumes that you already have a working OpenStack environment with at least the following components installed: Compute, Image Service, Identity.
Prerequisites
Before you install and configure the Telemetry service, you must
create a database, service credentials, and API endpoints. However,
unlike other services, the Telemetry service uses a NoSQL database. See
environment-nosql-database-rdo
to install and
configure MongoDB before proceeding further.
Create the
ceilometer
database:# mongo --host controller --eval ' db = db.getSiblingDB("ceilometer"); db.createUser({user: "ceilometer", pwd: "CEILOMETER_DBPASS", roles: [ "readWrite", "dbAdmin" ]})' MongoDB shell version: 2.6.x connecting to: controller:27017/test Successfully added user: { "user" : "ceilometer", "roles" : [ "readWrite", "dbAdmin" ] }
Replace
CEILOMETER_DBPASS
with a suitable password.
Install and configure components
Install the packages:
# yum install openstack-ceilometer-api \ openstack-ceilometer-collector openstack-ceilometer-notification \ openstack-ceilometer-central python-ceilometerclient
Configure the Apache HTTP server
Create the
/etc/httpd/conf.d/wsgi-ceilometer.conf
file with the following content:8777 Listen <VirtualHost *:8777> =ceilometer group=ceilometer display-name=%{GROUP} WSGIDaemonProcess ceilometer-api processes=2 threads=10 user WSGIProcessGroup ceilometer-api WSGIScriptAlias / /usr/lib/python2.7/site-packages/ceilometer/api/app.wsgi WSGIApplicationGroup %{GLOBAL} /var/log/httpd/ceilometer_error.log ErrorLog /var/log/httpd/ceilometer_access.log combined CustomLog</VirtualHost> WSGISocketPrefix /var/run/httpd
Finalize installation
Reload the Apache HTTP server:
# systemctl reload httpd.service
Start the Telemetry services and configure them to start when the system boots:
# systemctl enable openstack-ceilometer-notification.service \ openstack-ceilometer-central.service \ openstack-ceilometer-collector.service # systemctl start openstack-ceilometer-notification.service \ openstack-ceilometer-central.service \ openstack-ceilometer-collector.service