
Fix the following minor problems to reduce work after stable/liberty branching: 1) RDO: Revert Python MySQL library from PyMySQL to MySQL-python due to lack of support for the former. 2) RDO: Explicitly install 'ebtables' and 'ipset' packages due to dependency problems. 3) General: Change numbered list to bulleted list for lists with only one item. 4) General: Restructure horizon content to match other services. More duplication of content, but sometimes RST conditionals are terrible and distro packages should use the same configuration files. 5) General: Restructure NoSQL content to match SQL content. 6) General: Improve clarity of NTP content. Change-Id: I2620250aa27c7d41b525aa2646ad25e0692140c4 Closes-Bug: #1514760 Closes-Bug: #1514683 Implements: bp installguide-liberty
3.1 KiB
Enable Object Storage meters
Telemetry uses a combination of polling and notifications to collect Object Storage meters.
Note
Your environment must include the Object Storage service.
Prerequisites
The Telemetry service requires access to the Object Storage service
using the ResellerAdmin
role. Perform these steps on the
controller node.
Source the
admin
credentials to gain access to admin-only CLI commands.$ source admin-openrc.sh
Create the
ResellerAdmin
role:$ openstack role create ResellerAdmin +-------+----------------------------------+ | Field | Value | +-------+----------------------------------+ | id | 462fa46c13fd4798a95a3bfbe27b5e54 | | name | ResellerAdmin | +-------+----------------------------------+
Add the
ResellerAdmin
role to theceilometer
user:$ openstack role add --project service --user ceilometer ResellerAdmin
Note
This command provides no output.
Install components
Install the packages:
ubuntu or debian
# apt-get install python-ceilometermiddleware
rdo
# yum install python-ceilometermiddleware
obs
# zypper install python-ceilometermiddleware
Configure Object Storage to use Telemetry
Perform these steps on the controller and any other nodes that run the Object Storage proxy service.
- Edit the
/etc/swift/proxy-server.conf
file and complete the following actions:In the
[filter:keystoneauth]
section, add theResellerAdmin
role:[filter:keystoneauth] ... operator_roles = admin, user, ResellerAdmin
In the
[pipeline:main]
section, addceilometer
:[pipeline:main] pipeline = catch_errors gatekeeper healthcheck proxy-logging cache container_sync bulk ratelimit authtoken keystoneauth container-quotas account-quotas slo dlo versioned_writes proxy-logging ceilometer proxy-server
In the
[filter:ceilometer]
section, configure notifications:[filter:ceilometer] paste.filter_factory = ceilometermiddleware.swift:filter_factory ... control_exchange = swift url = rabbit://openstack:RABBIT_PASS@controller:5672/ driver = messagingv2 topic = notifications log_level = WARN
Replace
RABBIT_PASS
with the password you chose for theopenstack
account inRabbitMQ
.
Finalize installation
rdo or obs
Restart the Object Storage proxy service:
# systemctl restart openstack-swift-proxy.service
ubuntu
Restart the Object Storage proxy service:
# service swift-proxy restart