From 6da3d014bfa95c979db1d6ce18ba10d629b80481 Mon Sep 17 00:00:00 2001 From: Ilya Shakhat Date: Wed, 21 Jan 2015 15:56:19 +0300 Subject: [PATCH] Do not duplicate message consumers Oslo.messaging creates node topic (with node name as suffix) and fanout topic automatically. There's no need to do this in Neutron code. Closes bug 1413156 Change-Id: Ic790cab648b213b55679038967fef12eb5cec606 --- neutron/common/rpc.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/neutron/common/rpc.py b/neutron/common/rpc.py index 5a345f5ae..aeb4cb4d3 100644 --- a/neutron/common/rpc.py +++ b/neutron/common/rpc.py @@ -158,13 +158,7 @@ class Service(service.Service): endpoints = [self.manager] - # Share this same connection for these Consumers - self.conn.create_consumer(self.topic, endpoints, fanout=False) - - node_topic = '%s.%s' % (self.topic, self.host) - self.conn.create_consumer(node_topic, endpoints, fanout=False) - - self.conn.create_consumer(self.topic, endpoints, fanout=True) + self.conn.create_consumer(self.topic, endpoints) # Hook to allow the manager to do other initializations after # the rpc connection is created. -- 2.45.2