]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Stop using RPC namespace to unbreak rolling upgrades
authorAssaf Muller <amuller@redhat.com>
Thu, 12 Mar 2015 02:11:33 +0000 (22:11 -0400)
committerAssaf Muller <amuller@redhat.com>
Thu, 12 Mar 2015 02:16:16 +0000 (22:16 -0400)
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

index 36a28c0afbe885fbacd8bee256fa9d876b4e3cf5..774d920d919f50b9e778ce397e558d9298e322c5 100644 (file)
@@ -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