bug #1105247 Fix a few formatting issues with literal text and tables so the documentation will render properly. Change-Id: If2f833931e4e6b400c91048afe7c5ead42415366 Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>
8.4 KiB
Install
Installing and Running the Development Version
Ceilometer has four daemons. The compute agent
runs on the Nova compute node(s) while
the central agent
and
collector
run on the
cloud's management node(s). In a development environment created by devstack, these two are typically
the same server. They do not have to be, though, so some of the
instructions below are duplicated. Skip the steps you have already
done.
Configuring Devstack
double: installing; devstack
- Create a
localrc
file as input to devstack. - Ceilometer makes extensive use of the messaging bus, but has not yet been tested with ZeroMQ. We recommend using Rabbit or qpid for now.
- Nova does not generate the periodic notifications for all known
instances by default. To enable these auditing events, set
instance_usage_audit
to true in the nova configuration file. - The ceilometer services are not enabled by default, so they must be
enabled in
localrc
before runningstack.sh
.
This example localrc
file shows all of the settings
required for ceilometer:
# Enable the ceilometer services
enable_service ceilometer-acompute,ceilometer-acentral,ceilometer-collector,ceilometer-api
Installing Manually
Installing the Collector
double: installing; collector
Install and configure nova.
The collector daemon imports code from
nova
, so it needs to be run on a server where nova has already been installed.Note
Ceilometer makes extensive use of the messaging bus, but has not yet been tested with ZeroMQ. We recommend using Rabbit or qpid for now.
If you want to be able to retrieve image counters, you need to instruct Glance to send notifications to the bus by changing
notifier_strategy
torabbit
orqpid
inglance-api.conf
and restarting the service.In order to retrieve object store statistics, ceilometer needs access to swift with
ResellerAdmin
role. You should give this role to youros_username
user for tenantos_tenant_name
:$ keystone role-create --name=ResellerAdmin +----------+----------------------------------+ | Property | Value | +----------+----------------------------------+ | id | 462fa46c13fd4798a95a3bfbe27b5e54 | | name | ResellerAdmin | +----------+----------------------------------+ $ keystone user-role-add --tenant_id $SERVICE_TENANT \ --user_id $CEILOMETER_USER \ --role_id 462fa46c13fd4798a95a3bfbe27b5e54
You'll also need to add the Ceilometer middleware to Swift to account for incoming and outgoing traffic, adding this lines to
/etc/swift/proxy-server.conf
:[filter:ceilometer] use = egg:ceilometer#swift
And adding
ceilometer
in thepipeline
of that same file.Install MongoDB.
Follow the instructions to install the MongoDB package for your operating system, then start the service.
Clone the ceilometer git repository to the management server:
$ cd /opt/stack $ git clone https://github.com/openstack/ceilometer.git
As a user with
root
permissions orsudo
privileges, run the ceilometer installer:$ cd ceilometer $ sudo python setup.py install
Configure ceilometer.
Ceilometer needs to know about some of the nova configuration options, so the simplest way to start is copying
/etc/nova/nova.conf
to/etc/ceilometer/ceilometer.conf
. Some of the logging settings used in nova break ceilometer, so they need to be removed. For example, as a user withroot
permissions:$ grep -v format_string /etc/nova/nova.conf > /etc/ceilometer/ceilometer.conf
Refer to
configuration
for details about any other options you might want to modify before starting the service.Start the collector.
$ ./bin/ceilometer-collector
Note
The default development configuration of the collector logs to stderr, so you may want to run this step using a screen session or other tool for maintaining a long-running program in the background.
Installing the Compute Agent
double: installing; compute agent
Note
The compute agent must be installed on each nova compute node.
Install and configure nova.
The collector daemon imports code from
nova
, so it needs to be run on a server where nova has already been installed.Note
Ceilometer makes extensive use of the messaging bus, but has not yet been tested with ZeroMQ. We recommend using Rabbit or qpid for now.
The
nova
compute service needs the following configuration to be set innova.conf
:# nova-compute configuration for ceilometer instance_usage_audit=True instance_usage_audit_period=hour notification_driver=nova.openstack.common.notifier.rabbit_notifier notification_driver=ceilometer.compute.nova_notifier
Clone the ceilometer git repository to the server:
$ cd /opt/stack $ git clone https://github.com/openstack/ceilometer.git
As a user with
root
permissions orsudo
privileges, run the ceilometer installer:$ cd ceilometer $ sudo python setup.py install
Configure ceilometer.
Ceilometer needs to know about some of the nova configuration options, so the simplest way to start is copying
/etc/nova/nova.conf
to/etc/ceilometer/ceilometer.conf
. Some of the logging settings used in nova break ceilometer, so they need to be removed. For example, as a user withroot
permissions:$ grep -v format_string /etc/nova/nova.conf > /etc/ceilometer/ceilometer.conf
Refer to
configuration
for details about any other options you might want to modify before starting the service.Start the agent.
$ ./bin/ceilometer-agent
Note
The default development configuration of the agent logs to stderr, so you may want to run this step using a screen session or other tool for maintaining a long-running program in the background.
Installing the API Server
double: installing; API
Note
The API server needs to be able to talk to keystone and ceilometer's database.
Install and configure nova.
The the ceilometer api server imports code from
nova
, so it needs to be run on a server where nova has already been installed.Clone the ceilometer git repository to the server:
$ cd /opt/stack $ git clone https://github.com/openstack/ceilometer.git
As a user with
root
permissions orsudo
privileges, run the ceilometer installer:$ cd ceilometer $ sudo python setup.py install
Configure ceilometer.
Ceilometer needs to know about some of the nova configuration options, so the simplest way to start is copying
/etc/nova/nova.conf
to/etc/ceilometer/ceilometer.conf
. Some of the logging settings used in nova break ceilometer, so they need to be removed. For example, as a user withroot
permissions:$ grep -v format_string /etc/nova/nova.conf > /etc/ceilometer/ceilometer.conf
Refer to
configuration
for details about any other options you might want to modify before starting the service.Start the agent.
$ ./bin/ceilometer-api
Note
The development version of the API server logs to stderr, so you may want to run this step using a screen session or other tool for maintaining a long-running program in the background.