Adding the Agent: Object Storage
In order to retrieve object store statistics, the Metering
Service needs access to Object Storage with
ResellerAdmin role. You should give this
role to your os_username user for tenant
os_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 Metering middleware to Object
Storage to account for incoming and outgoing traffic, by
adding these lines to
/etc/swift/proxy-server.conf:
[filter:ceilometer]
use = egg:ceilometer#swiftNext,
add ceilometer to the
pipeline parameter of that same file,
right before the entry proxy-server.
We now restart the service with its new settings.
# service swift-proxy-server restart
We now restart the service with its new settings.
# service openstack-swift-proxy-server restart
# systemctl restart openstack-swift-proxy-server.service