Update control_exchange value in keystone.conf

The control_exchange comes from oslo and is set to 'openstack' by
default. This should be overridden by the projects that use
oslo.messaging, since projects should be placing notifications
on project specific exchanges.

Nova performs the override in the same manner:
https://github.com/openstack/nova/blob/master/nova/config.py#L33
https://github.com/openstack/nova/blob/master/nova/rpc.py#L77

Change-Id: Ifcc43dcccaa9d56e03922ce8cf0bf7fb8e93bdcc
This commit is contained in:
Steve Martinelli 2014-08-01 02:17:13 -04:00
parent 16d319f190
commit 87bf6822b5
2 changed files with 3 additions and 1 deletions

View File

@ -307,7 +307,7 @@
# The default exchange under which topics are scoped. May be
# overridden by an exchange name specified in the
# transport_url option. (string value)
#control_exchange=openstack
#control_exchange=keystone
#

View File

@ -13,6 +13,7 @@
# under the License.
from oslo.config import cfg
from oslo import messaging
_DEFAULT_AUTH_METHODS = ['external', 'password', 'token']
@ -796,6 +797,7 @@ FILE_OPTIONS = {
CONF = cfg.CONF
messaging.set_transport_defaults(control_exchange='keystone')
def setup_authentication(conf=None):