Configure glance notification driver

Glance does not use the message queue without the optional Telemetry
service.  Set default glance notification_driver values to noop.  This
prevents creation of a queue with no consumer and eliminates issues with
the additional configuration necessary for notifications.  The Telemetry
chapter reconfigures glance to properly use notifications.

Change-Id: If4e3d7cbfb18b7a9f8ae4c1d7309664b30a03a73
Closes-bug: 1404956
backport: juno
This commit is contained in:
Robb Romans 2015-01-30 10:19:06 -06:00
parent 2678ef9637
commit 23e257e0eb
3 changed files with 29 additions and 1 deletions

View File

@ -203,7 +203,7 @@ registry_client_protocol = http
# Driver or drivers to handle sending notifications. Set to
# 'messaging' to send notifications to a message queue.
# notification_driver = noop
notification_driver = noop
# Default publisher_id for outgoing notifications.
# default_publisher_id = image.localhost

View File

@ -84,3 +84,9 @@ config_file = /etc/glance/glance-registry-paste.ini
# [pipeline:glance-api-keystone], you would configure the flavor below
# as 'keystone'.
flavor=keystone
# ============ Notification System Options =====================
# Driver or drivers to handle sending notifications. Set to
# 'messaging' to send notifications to a message queue.
notification_driver = noop

View File

@ -166,6 +166,17 @@ flavor = keystone</programlisting>
default_store = file
filesystem_store_datadir = /var/lib/glance/images/</programlisting>
</step>
<step>
<para>In the <literal>[DEFAULT]</literal> section, configure
the <literal>noop</literal> notification driver to disable
notifications because they only pertain to the optional
Telemetry service:</para>
<programlisting language="ini">[DEFAULT]
...
notification_driver = noop</programlisting>
<para>The Telemetry chapter provides a glance configuration
that enables notifications.</para>
</step>
<step>
<para>(Optional) To assist with troubleshooting,
enable verbose logging in the <literal>[DEFAULT]</literal>
@ -215,6 +226,17 @@ flavor = keystone</programlisting>
</note>
</step>
<step>
<para>In the <literal>[DEFAULT]</literal> section, configure
the <literal>noop</literal> notification driver to disable
notifications because they only pertain to the optional
Telemetry service:</para>
<programlisting language="ini">[DEFAULT]
...
notification_driver = noop</programlisting>
<para>The Telemetry chapter provides a glance configuration
that enables notifications.</para>
</step>
<step>
<para>(Optional) To assist with troubleshooting,
enable verbose logging in the <literal>[DEFAULT]</literal>
section:</para>