2013-10-14 21:03:43 +11:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<section xml:id="ceilometer-install-swift"
|
|
|
|
xmlns="http://docbook.org/ns/docbook"
|
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
|
2013-11-28 16:35:33 +05:30
|
|
|
<title>Add the Object Storage agent for the Telemetry service</title>
|
2013-10-14 21:03:43 +11:00
|
|
|
<procedure>
|
|
|
|
<step>
|
2013-11-28 16:35:33 +05:30
|
|
|
<para>To retrieve object store statistics, the Telemetry service
|
2013-11-07 16:01:29 -06:00
|
|
|
needs access to Object Storage with the
|
|
|
|
<literal>ResellerAdmin</literal> role. Give this role to
|
|
|
|
your <literal>os_username</literal> user for the
|
2013-11-18 17:58:04 +01:00
|
|
|
<literal>os_tenant_name</literal> tenant:</para>
|
2013-11-07 16:01:29 -06:00
|
|
|
<screen><prompt>$</prompt> <userinput>keystone role-create --name=ResellerAdmin</userinput>
|
2013-10-14 21:03:43 +11:00
|
|
|
<computeroutput>+----------+----------------------------------+
|
|
|
|
| Property | Value |
|
|
|
|
+----------+----------------------------------+
|
|
|
|
| id | 462fa46c13fd4798a95a3bfbe27b5e54 |
|
|
|
|
| name | ResellerAdmin |
|
|
|
|
+----------+----------------------------------+
|
2013-11-07 16:01:29 -06:00
|
|
|
</computeroutput></screen>
|
2013-11-18 17:58:04 +01:00
|
|
|
<screen><prompt>$</prompt> <userinput>keystone user-role-add --tenant service --user ceilometer \
|
|
|
|
--role <replaceable>462fa46c13fd4798a95a3bfbe27b5e54</replaceable></userinput></screen>
|
2013-10-14 21:03:43 +11:00
|
|
|
</step>
|
|
|
|
<step>
|
2013-11-28 16:35:33 +05:30
|
|
|
<para>You must also add the Telemetry middleware to Object
|
2013-11-07 16:01:29 -06:00
|
|
|
Storage to handle incoming and outgoing traffic. Add
|
|
|
|
these lines to the
|
|
|
|
<filename>/etc/swift/proxy-server.conf</filename>
|
|
|
|
file:</para>
|
|
|
|
<programlisting language="ini">[filter:ceilometer]
|
|
|
|
use = egg:ceilometer#swift</programlisting>
|
|
|
|
</step>
|
|
|
|
<step>
|
|
|
|
<para>Add <literal>ceilometer</literal> to the
|
2013-11-18 17:58:04 +01:00
|
|
|
<literal>pipeline</literal> parameter of that same file:</para>
|
|
|
|
<programlisting language="ini">[pipeline:main]
|
|
|
|
pipeline = healthcheck cache authtoken keystoneauth ceilometer proxy-server</programlisting>
|
2013-10-14 21:03:43 +11:00
|
|
|
</step>
|
2013-11-18 17:58:04 +01:00
|
|
|
<step>
|
|
|
|
<para>Restart the service with its new settings:</para>
|
|
|
|
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service swift-proxy-server restart</userinput></screen>
|
2013-10-16 08:56:40 +02:00
|
|
|
<screen os="rhel;fedora;centos;sles;opensuse"><prompt>#</prompt> <userinput>service openstack-swift-proxy-server restart</userinput></screen>
|
2013-10-14 21:03:43 +11:00
|
|
|
</step>
|
|
|
|
</procedure>
|
|
|
|
</section>
|