From 74871e0860a3094d0792a077316d3e41aec1c5c3 Mon Sep 17 00:00:00 2001
From: Alexi Yelistratov <ayelistratov@mirantis.com>
Date: Thu, 1 Oct 2015 23:16:32 +0300
Subject: [PATCH] Remove unnecessary rpc_zmq_port option

Remove unnecessary rpc_zmq_port option from zmq driver, because zmq
driver doesn't use static port any more - dynamic port binding is used
for running servers.

Closes-Bug: #1497277
Change-Id: I91e978347dd364b2d4c00bc223b0e3ecface7c43
---
 doc/source/zmq_driver.rst           | 10 ----------
 oslo_messaging/_drivers/impl_zmq.py |  4 ----
 2 files changed, 14 deletions(-)

diff --git a/doc/source/zmq_driver.rst b/doc/source/zmq_driver.rst
index a1de898c6..eff2bf3ce 100644
--- a/doc/source/zmq_driver.rst
+++ b/doc/source/zmq_driver.rst
@@ -197,16 +197,6 @@ The parameters for the script oslo-messaging-zmq-receiver should be::
 
 You can specify ZeroMQ options in /etc/oslo/zeromq.conf if necessary.
 
-Listening Ports (mandatory)
----------------------------
-
-The ZeroMQ driver uses TCP to communicate. The port is configured with
-'rpc_zmq_port' in [DEFAULT] section of each project, which defaults to 9501.
-
-For example::
-
-        rpc_zmq_port = 9501
-
 Thread Pool (optional)
 -----------------------
 
diff --git a/oslo_messaging/_drivers/impl_zmq.py b/oslo_messaging/_drivers/impl_zmq.py
index 0213bdaf9..f91c34166 100644
--- a/oslo_messaging/_drivers/impl_zmq.py
+++ b/oslo_messaging/_drivers/impl_zmq.py
@@ -52,10 +52,6 @@ zmq_opts = [
     cfg.StrOpt('rpc_zmq_concurrency', default='eventlet',
                help='Type of concurrency used. Either "native" or "eventlet"'),
 
-    # The following port is unassigned by IANA as of 2012-05-21
-    cfg.IntOpt('rpc_zmq_port', default=9501,
-               help='ZeroMQ receiver listening port.'),
-
     cfg.IntOpt('rpc_zmq_contexts', default=1,
                help='Number of ZeroMQ contexts, defaults to 1.'),