2013-10-14 10:03:43 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<section xml:id="ceilometer-install-glance"
|
|
|
|
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">
|
2014-03-23 13:35:28 +00:00
|
|
|
<title>Configure the Image Service for Telemetry</title>
|
2013-10-14 10:03:43 +00:00
|
|
|
<procedure>
|
|
|
|
<step>
|
2013-11-08 07:58:40 +00:00
|
|
|
<para>To retrieve image samples, you must configure the Image
|
|
|
|
Service to send notifications to the bus.</para>
|
|
|
|
|
|
|
|
<para os="debian;ubuntu">Edit
|
|
|
|
<filename>/etc/glance/glance-api.conf</filename> and modify the
|
|
|
|
<literal>[DEFAULT]</literal> section:</para>
|
2014-01-22 21:18:35 +00:00
|
|
|
<programlisting language="ini" os="debian;ubuntu">notification_driver = messaging
|
|
|
|
rpc_backend = rabbit
|
2014-01-16 21:20:40 +00:00
|
|
|
rabbit_host = <replaceable>controller</replaceable>
|
2013-11-08 07:58:40 +00:00
|
|
|
rabbit_password = <replaceable>RABBIT_PASS</replaceable></programlisting>
|
|
|
|
|
|
|
|
<para os="opensuse;sles;fedora;rhel;centos">Run the following commands:</para>
|
2014-01-22 21:18:35 +00:00
|
|
|
<screen os="opensuse;sles"><prompt>#</prompt> <userinput>openstack-config --set /etc/glance/glance-api.conf DEFAULT notification_driver messaging</userinput>
|
|
|
|
<prompt>#</prompt> <userinput>openstack-config --set /etc/glance/glance-api.conf DEFAULT rpc_backend rabbit</userinput>
|
|
|
|
<prompt>#</prompt> <userinput>openstack-config --set /etc/glance/glance-api.conf DEFAULT rabbit_host <replaceable>controller</replaceable></userinput>
|
2014-01-16 21:20:40 +00:00
|
|
|
<prompt>#</prompt> <userinput>openstack-config --set /etc/glance/glance-api.conf DEFAULT rabbit_password <replaceable>RABBIT_PASS</replaceable></userinput></screen>
|
2013-11-08 07:58:40 +00:00
|
|
|
|
2014-01-22 21:18:35 +00:00
|
|
|
<screen os="fedora;rhel;centos"><prompt>#</prompt> <userinput>openstack-config --set /etc/glance/glance-api.conf DEFAULT notification_driver messaging</userinput>
|
|
|
|
<prompt>#</prompt> <userinput>openstack-config --set /etc/glance/glance-api.conf DEFAULT rpc_backend qpid</userinput></screen>
|
2013-11-08 07:58:40 +00:00
|
|
|
|
2013-10-14 10:03:43 +00:00
|
|
|
</step>
|
2013-11-18 16:58:04 +00:00
|
|
|
<step>
|
2014-03-19 03:30:24 +00:00
|
|
|
<para>Restart the Image Services with their new
|
2013-11-08 07:58:40 +00:00
|
|
|
settings:</para>
|
2013-11-18 16:58:04 +00:00
|
|
|
<screen os="ubuntu;debian"><prompt>#</prompt> <userinput>service glance-registry restart</userinput>
|
2013-10-14 10:03:43 +00:00
|
|
|
<prompt>#</prompt> <userinput>service glance-api restart</userinput></screen>
|
2013-11-18 16:58:04 +00:00
|
|
|
<screen os="rhel;fedora;centos;opensuse;sles"><prompt>#</prompt> <userinput>service openstack-glance-api restart</userinput>
|
2013-10-15 18:24:06 +00:00
|
|
|
<prompt>#</prompt> <userinput>service openstack-glance-registry restart</userinput></screen>
|
|
|
|
</step>
|
2013-10-14 10:03:43 +00:00
|
|
|
</procedure>
|
|
|
|
</section>
|