<commit_before><?xml version="1.0" encoding="UTF-8"?>
<section 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"
  xml:id="ceilometer-install-swift">
  <title>Configure the Object Storage service for Telemetry</title>
  <procedure>
    <step>
      <para>To retrieve object store statistics, the Telemetry service
        needs access to Object Storage with the
          <literal>ResellerAdmin</literal> role. Give this role to
        your <literal>os_username</literal> user for the
          <literal>os_tenant_name</literal> tenant:</para>
      <screen><prompt>$</prompt> <userinput>keystone role-create --name=ResellerAdmin</userinput>
<computeroutput>+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|    id    | 462fa46c13fd4798a95a3bfbe27b5e54 |
|   name   |          ResellerAdmin           |
+----------+----------------------------------+
</computeroutput></screen>
      <screen><prompt>$</prompt> <userinput>keystone user-role-add --tenant service --user ceilometer \
      --role <replaceable>462fa46c13fd4798a95a3bfbe27b5e54</replaceable></userinput></screen>
    </step>
    <step>
      <para>You must also add the Telemetry middleware to Object
        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><commit_msg>Added Step for installing python-ceilometerclient<commit_after><?xml version="1.0" encoding="UTF-8"?>
<section 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"
  xml:id="ceilometer-install-swift">
  <title>Configure the Object Storage service for Telemetry</title>
  <procedure>
    <step>
      <para>Install the <package>python-ceilometerclient</package>
        package on your Object Storage proxy server:</para>
        <screen os="ubuntu;debian"><prompt>#</prompt> <userinput>apt-get install python-ceilometerclient</userinput></screen>
        <screen os="rhel;centos;fedora"><prompt>#</prompt> <userinput>yum install python-ceilometerclient</userinput></screen>
        <screen os="opensuse;sles"><prompt>#</prompt> <userinput>zypper install python-ceilometerclient</userinput></screen>
    </step>
    <step>
      <para>To retrieve object store statistics, the Telemetry service
        needs access to Object Storage with the
          <literal>ResellerAdmin</literal> role. Give this role to
        your <literal>os_username</literal> user for the
          <literal>os_tenant_name</literal> tenant:</para>
      <screen><prompt>$</prompt> <userinput>keystone role-create --name=ResellerAdmin</userinput>
<computeroutput>+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|    id    | 462fa46c13fd4798a95a3bfbe27b5e54 |
|   name   |          ResellerAdmin           |
+----------+----------------------------------+
</computeroutput></screen>
      <screen><prompt>$</prompt> <userinput>keystone user-role-add --tenant service --user ceilometer \
      --role <replaceable>462fa46c13fd4798a95a3bfbe27b5e54</replaceable></userinput></screen>
    </step>
    <step>
      <para>You must also add the Telemetry middleware to Object
        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>
{'fraction_non_alphanumeric': 0.1946604458268533, 'fraction_numerical': 0.027475375842405392, 'mean_word_length': 2.586431226765799, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 2, '>': 105, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1207074', 'n_tokens_mistral': 1187, 'n_tokens_neox': 1085, 'n_words': 224}