Blueprint: setuptools-console-scripts Change-Id: Ia64319ba2ea5fdd2778c7faea76478272bb237a6 Signed-off-by: Julien Danjou <julien@danjou.info>
11 KiB
Installing Manually
Installing the Collector
double: installing; collector
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
Copy the sample configuration files from the source tree to their final location.
$ mkdir -p /etc/ceilometer $ cp etc/ceilometer/*.json /etc/ceilometer $ cp etc/ceilometer/*.yaml /etc/ceilometer $ cp etc/ceilometer/ceilometer.conf.sample /etc/ceilometer/ceilometer.conf
Edit
/etc/ceilometer/ceilometer.conf
Configure RPC
Set the RPC-related options correctly so ceilometer's daemons can communicate with each other and receive notifications from the other projects.
In particular, look for the
*_control_exchange
options and make sure the names are correct. If you did not change thecontrol_exchange
settings for the other components, the defaults should be correct.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.
Set the
metering_secret
value.Set the
metering_secret
value to a large, random, value. Use the same value in all ceilometer configuration files, on all nodes, so that messages passing between the nodes can be validated.
Refer to
/configuration
for details about any other options you might want to modify before starting the service.Start the collector.
$ 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.
Configure nova.
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.rpc_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
Copy the sample configuration files from the source tree to their final location.
$ mkdir -p /etc/ceilometer $ cp etc/ceilometer/*.json /etc/ceilometer $ cp etc/ceilometer/*.yaml /etc/ceilometer $ cp etc/ceilometer/ceilometer.conf.sample /etc/ceilometer/ceilometer.conf
Edit
/etc/ceilometer/ceilometer.conf
Configure RPC
Set the RPC-related options correctly so ceilometer's daemons can communicate with each other and receive notifications from the other projects.
In particular, look for the
*_control_exchange
options and make sure the names are correct. If you did not change thecontrol_exchange
settings for the other components, the defaults should be correct.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.
Set the
metering_secret
value.Set the
metering_secret
value to a large, random, value. Use the same value in all ceilometer configuration files, on all nodes, so that messages passing between the nodes can be validated.
Refer to
/configuration
for details about any other options you might want to modify before starting the service.Start the agent.
$ ceilometer-agent-compute
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 Central Agent
double: installing; agent
Note
The central agent needs to be able to talk to keystone and any of the services being polled for updates.
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
Copy the sample configuration files from the source tree to their final location.
$ mkdir -p /etc/ceilometer $ cp etc/ceilometer/*.json /etc/ceilometer $ cp etc/ceilometer/*.yaml /etc/ceilometer $ cp etc/ceilometer/ceilometer.conf.sample /etc/ceilometer/ceilometer.conf
Edit
/etc/ceilometer/ceilometer.conf
Configure RPC
Set the RPC-related options correctly so ceilometer's daemons can communicate with each other and receive notifications from the other projects.
In particular, look for the
*_control_exchange
options and make sure the names are correct. If you did not change thecontrol_exchange
settings for the other components, the defaults should be correct.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.
Set the
metering_secret
value.Set the
metering_secret
value to a large, random, value. Use the same value in all ceilometer configuration files, on all nodes, so that messages passing between the nodes can be validated.
Refer to
/configuration
for details about any other options you might want to modify before starting the service.Start the agent
$ ceilometer-agent-central
Installing the API Server
double: installing; API
Note
The API server needs to be able to talk to keystone and ceilometer's database.
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
Copy the sample configuration files from the source tree to their final location.
$ mkdir -p /etc/ceilometer $ cp etc/ceilometer/*.json /etc/ceilometer $ cp etc/ceilometer/*.yaml /etc/ceilometer $ cp etc/ceilometer/ceilometer.conf.sample /etc/ceilometer/ceilometer.conf
Edit
/etc/ceilometer/ceilometer.conf
Configure RPC
Set the RPC-related options correctly so ceilometer's daemons can communicate with each other and receive notifications from the other projects.
In particular, look for the
*_control_exchange
options and make sure the names are correct. If you did not change thecontrol_exchange
settings for the other components, the defaults should be correct.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.
Refer to
/configuration
for details about any other options you might want to modify before starting the service.Start the API server.
$ 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.
Configuring keystone to work with API
double: installing; configure keystone
Note
The API server needs to be able to talk to keystone to authenticate.
Create a service for ceilometer in keystone:
$ keystone service-create --name=ceilometer \
--type=metering --description="Ceilometer Service"
Create an endpoint in keystone for ceilometer:
$ keystone endpoint-create --region RegionOne \
--service_id $CEILOMETER_SERVICE --publicurl "http://$SERVICE_HOST:8777/" --adminurl "http://$SERVICE_HOST:8777/" --internalurl "http://$SERVICE_HOST:8777/"
Note
CEILOMETER_SERVICE is the id of the service created by the first command and SERVICE_HOST is the host where the Ceilometer API is running. The default port value for ceilometer API is 8777. If the port value has been customized, adjust accordingly.