Merge "Fix ceilometer installation on compute node"
This commit is contained in:
@@ -71,13 +71,10 @@
|
||||
<para os="ubuntu;debian">Edit the
|
||||
<filename>/etc/ceilometer/ceilometer.conf</filename> file
|
||||
and change the <literal>[database]</literal> section:</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">...
|
||||
[database]
|
||||
...
|
||||
<programlisting os="ubuntu;debian" language="ini">[database]
|
||||
# The SQLAlchemy connection string used to connect to the
|
||||
# database (string value)
|
||||
connection = mongodb://ceilometer:<replaceable>CEILOMETER_DBPASS</replaceable>@<replaceable>controller</replaceable>:27017/ceilometer
|
||||
...</programlisting>
|
||||
connection = mongodb://ceilometer:<replaceable>CEILOMETER_DBPASS</replaceable>@<replaceable>controller</replaceable>:27017/ceilometer</programlisting>
|
||||
|
||||
</step>
|
||||
<step>
|
||||
@@ -97,29 +94,34 @@ connection = mongodb://ceilometer:<replaceable>CEILOMETER_DBPASS</replaceable>@<
|
||||
and change the <literal>[publisher_rpc]</literal> section. Replace
|
||||
<replaceable>CEILOMETER_TOKEN</replaceable> with the results of
|
||||
the <literal>openssl</literal> command:</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">...
|
||||
[publisher_rpc]
|
||||
...
|
||||
<programlisting os="ubuntu;debian" language="ini">[publisher_rpc]
|
||||
# Secret value for signing metering messages (string value)
|
||||
metering_secret = <replaceable>CEILOMETER_TOKEN</replaceable>
|
||||
...</programlisting>
|
||||
metering_secret = <replaceable>CEILOMETER_TOKEN</replaceable></programlisting>
|
||||
</step>
|
||||
|
||||
<step os="opensuse;sles;ubuntu">
|
||||
<para>Configure the RabbitMQ access:</para>
|
||||
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf DEFAULT rabbit_host controller</userinput>
|
||||
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf DEFAULT rabbit_host <replaceable>controller</replaceable></userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf DEFAULT rabbit_password <replaceable>RABBIT_PASS</replaceable></userinput></screen>
|
||||
<para os="ubuntu">Edit the <filename>/etc/ceilometer/ceilometer.conf</filename> file and update the <literal>[DEFAULT]</literal> section.</para>
|
||||
<para os="ubuntu">Edit the <filename>/etc/ceilometer/ceilometer.conf</filename> file and update the <literal>[DEFAULT]</literal> section:</para>
|
||||
<programlisting os="ubuntu" language="ini">rabbit_host = <replaceable>controller</replaceable>
|
||||
rabbit_password = <replaceable>RABBIT_PASS</replaceable></programlisting>
|
||||
</step>
|
||||
|
||||
<step os="opensuse;sles">
|
||||
<para>Configure collector dispatcher</para>
|
||||
<para>Configure collector dispatcher:</para>
|
||||
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
collector dispatcher database</userinput></screen>
|
||||
</step>
|
||||
|
||||
<step os="ubuntu">
|
||||
<para>Configure the log directory.</para>
|
||||
<para>Edit the <filename>/etc/ceilometer/ceilometer.conf</filename> file
|
||||
and update the <literal>[DEFAULT]</literal> section:</para>
|
||||
<programlisting os="ubuntu" language="ini">[DEFAULT]
|
||||
log_dir = /var/log/ceilometer</programlisting>
|
||||
</step>
|
||||
|
||||
<step os="rhel;centos;fedora;opensuse;sles;ubuntu">
|
||||
<para>Create a <literal>ceilometer</literal> user that the
|
||||
Telemetry service uses to authenticate with the Identity
|
||||
@@ -187,16 +189,6 @@ os_password = <replaceable>CEILOMETER_PASS</replaceable></programlisting>
|
||||
<screen><prompt>#</prompt> <userinput>service ceilometer-agent-central restart</userinput>
|
||||
<prompt>#</prompt> <userinput>service ceilometer-api restart</userinput>
|
||||
<prompt>#</prompt> <userinput>service ceilometer-collector restart</userinput></screen>
|
||||
<note>
|
||||
<para>
|
||||
If log files are not generated for each service automatically, you
|
||||
should edit the <filename>/etc/ceilometer/ceilometer.conf</filename>
|
||||
and change the <literal>[DEFAULT]</literal> section:
|
||||
</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">[DEFAULT]
|
||||
...
|
||||
log_dir = /var/log/ceilometer</programlisting>
|
||||
</note>
|
||||
</step>
|
||||
<step os="rhel;fedora;centos;opensuse;sles">
|
||||
<para>Start the <systemitem class="service"
|
||||
|
||||
@@ -39,15 +39,15 @@
|
||||
section:</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">[DEFAULT]
|
||||
...
|
||||
instance_usage_audit=True
|
||||
instance_usage_audit_period=hour
|
||||
notify_on_state_change=vm_and_task_state
|
||||
notification_driver=nova.openstack.common.notifier.rpc_notifier
|
||||
notification_driver=ceilometer.compute.nova_notifier</programlisting>
|
||||
<programlisting os="fedora;rhel;centos;opensuse;sles" language="ini">[DEFAULT]
|
||||
instance_usage_audit = True
|
||||
instance_usage_audit_period = hour
|
||||
notify_on_state_change = vm_and_task_state
|
||||
notification_driver = nova.openstack.common.notifier.rpc_notifier
|
||||
notification_driver = ceilometer.compute.nova_notifier</programlisting>
|
||||
<programlisting os = "fedora;rhel;centos;opensuse;sles" language="ini">[DEFAULT]
|
||||
...
|
||||
notification_driver=nova.openstack.common.notifier.rpc_notifier
|
||||
notification_driver=ceilometer.compute.nova_notifier</programlisting>
|
||||
notification_driver = nova.openstack.common.notifier.rpc_notifier
|
||||
notification_driver = ceilometer.compute.nova_notifier</programlisting>
|
||||
</step>
|
||||
<step>
|
||||
<para>Restart the Compute service:</para>
|
||||
@@ -64,12 +64,74 @@ notification_driver=ceilometer.compute.nova_notifier</programlisting>
|
||||
and change these lines in the <literal>[DEFAULT]</literal>
|
||||
section. Replace <replaceable>CEILOMETER_TOKEN</replaceable> with
|
||||
the ceilometer token that you created previously:</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">...
|
||||
[publisher_rpc]
|
||||
<programlisting os="ubuntu;debian" language="ini">[publisher_rpc]
|
||||
# Secret value for signing metering messages (string value)
|
||||
metering_secret = <replaceable>CEILOMETER_TOKEN</replaceable>
|
||||
...</programlisting>
|
||||
metering_secret = <replaceable>CEILOMETER_TOKEN</replaceable></programlisting>
|
||||
</step>
|
||||
|
||||
<step os="opensuse;sles;ubuntu">
|
||||
<para>Configure the RabbitMQ access:</para>
|
||||
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf DEFAULT rabbit_host controller</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf DEFAULT rabbit_password <replaceable>RABBIT_PASS</replaceable></userinput></screen>
|
||||
<para os="ubuntu">Edit the <filename>/etc/ceilometer/ceilometer.conf</filename> file and update the <literal>[DEFAULT]</literal> section:</para>
|
||||
<programlisting os="ubuntu" language="ini">[DEFAULT]
|
||||
rabbit_host = <replaceable>controller</replaceable>
|
||||
rabbit_password = <replaceable>RABBIT_PASS</replaceable></programlisting>
|
||||
</step>
|
||||
|
||||
<step os="rhel;centos;fedora">
|
||||
<para>Configure the QPid access:</para>
|
||||
<screen><prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf DEFAULT qpid_hostname <replaceable>controller</replaceable></userinput></screen>
|
||||
</step>
|
||||
|
||||
<step>
|
||||
<para>Add the Identity service credentials:</para>
|
||||
<screen os="centos;rhel;fedora;opensuse;sles"><prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
keystone_authtoken auth_host <replaceable>controller</replaceable></userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
keystone_authtoken admin_user ceilometer</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
keystone_authtoken admin_tenant_name service</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
keystone_authtoken auth_protocol http</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
keystone_authtoken admin_password <replaceable>CEILOMETER_PASS</replaceable></userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
service_credentials os_username ceilometer</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
service_credentials os_tenant_name service</userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
service_credentials os_password <replaceable>CEILOMETER_PASS</replaceable></userinput>
|
||||
<prompt>#</prompt> <userinput>openstack-config --set /etc/ceilometer/ceilometer.conf \
|
||||
service_credentials os_auth_url http://<replaceable>controller</replaceable>:5000/v2.0</userinput></screen>
|
||||
<para os="ubuntu;debian">Edit the
|
||||
<filename>/etc/ceilometer/ceilometer.conf</filename> file
|
||||
and change the <literal>[keystone_authtoken]</literal>
|
||||
section:</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">[keystone_authtoken]
|
||||
auth_host = controller
|
||||
auth_port = 35357
|
||||
auth_protocol = http
|
||||
admin_tenant_name = service
|
||||
admin_user = ceilometer
|
||||
admin_password = <replaceable>CEILOMETER_PASS</replaceable></programlisting>
|
||||
<para os="ubuntu;debian">Also set the
|
||||
<literal>[service_credentials]</literal> section:</para>
|
||||
<programlisting os="ubuntu;debian" language="ini">[service_credentials]
|
||||
os_auth_url = http://<replaceable>controller</replaceable>:5000/v2.0
|
||||
os_username = ceilometer
|
||||
os_tenant_name = service
|
||||
os_password = <replaceable>CEILOMETER_PASS</replaceable></programlisting>
|
||||
</step>
|
||||
|
||||
<step os="ubuntu">
|
||||
<para>Configure the log directory.</para>
|
||||
<para>Edit the <filename>/etc/ceilometer/ceilometer.conf</filename> file
|
||||
and update the <literal>[DEFAULT]</literal> section:</para>
|
||||
<programlisting os="ubuntu" language="ini">[DEFAULT]
|
||||
log_dir = /var/log/ceilometer</programlisting>
|
||||
</step>
|
||||
|
||||
<step os="ubuntu;debian">
|
||||
<para>Restart the service with its new settings:</para>
|
||||
<screen><prompt>#</prompt> <userinput>service ceilometer-agent-compute restart</userinput></screen>
|
||||
|
||||
Reference in New Issue
Block a user