Adds Debian in the conditional to restart the swift service. Change-Id: Id96ed8281c9f45962dcae972a16262e7f7a66f87
3.2 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
admincredentials to gain access to admin-only CLI commands.$ source admin-openrc.shCreate the
ResellerAdminrole:$ openstack role create ResellerAdmin +-------+----------------------------------+ | Field | Value | +-------+----------------------------------+ | id | 462fa46c13fd4798a95a3bfbe27b5e54 | | name | ResellerAdmin | +-------+----------------------------------+Add the
ResellerAdminrole to theceilometeruser:$ openstack role add --project service --user ceilometer ResellerAdminNote
This command provides no output.
Install components
Install the packages:
ubuntu or debian
# apt-get install python-ceilometermiddlewarerdo
# yum install python-ceilometermiddlewareobs
# 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.conffile and complete the following actions:In the
[filter:keystoneauth]section, add theResellerAdminrole:[filter:keystoneauth] ... operator_roles = admin, user, ResellerAdminIn 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-serverIn 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 = WARNReplace
RABBIT_PASSwith the password you chose for theopenstackaccount inRabbitMQ.
Finalize installation
rdo or obs
Restart the Object Storage proxy service:
# systemctl restart openstack-swift-proxy.service
ubuntu or debian
Restart the Object Storage proxy service:
# service swift-proxy restart