From 0f0b8cfe535dc306e8acd3b190a40516ddb84280 Mon Sep 17 00:00:00 2001 From: Assaf Muller Date: Wed, 11 Mar 2015 22:11:33 -0400 Subject: [PATCH] Stop using RPC namespace to unbreak rolling upgrades This is a temporary patch until we get an Oslo messaging release that supports Targets with multiple namespaces: https://review.openstack.org/#/c/163673/ Change-Id: I96e01c00991a9d8602ebc89dbad5206b805c67eb Related-Bug: #1430984 --- neutron/common/constants.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/neutron/common/constants.py b/neutron/common/constants.py index 36a28c0afbe..774d920d919 100644 --- a/neutron/common/constants.py +++ b/neutron/common/constants.py @@ -154,13 +154,17 @@ ATTRIBUTES_TO_UPDATE = 'attributes_to_update' # but here it will be limited by this value for consistency. DB_INTEGER_MAX_VALUE = 2 ** 31 - 1 +# TODO(amuller): Re-define the RPC namespaces once Oslo messaging supports +# Targets with multiple namespaces. Neutron will then implement callbacks +# for its RPC clients in order to support rolling upgrades. + # RPC Interface for agents to call DHCP API implemented on the plugin side -RPC_NAMESPACE_DHCP_PLUGIN = 'dhcp' +RPC_NAMESPACE_DHCP_PLUGIN = None # RPC interface for the metadata service to get info from the plugin side -RPC_NAMESPACE_METADATA = 'metadata' +RPC_NAMESPACE_METADATA = None # RPC interface for agent to plugin security group API -RPC_NAMESPACE_SECGROUP = 'secgroup' +RPC_NAMESPACE_SECGROUP = None # RPC interface for agent to plugin DVR api -RPC_NAMESPACE_DVR = 'dvr' +RPC_NAMESPACE_DVR = None # RPC interface for reporting state back to the plugin -RPC_NAMESPACE_STATE = 'report_state' +RPC_NAMESPACE_STATE = None