summaryrefslogtreecommitdiffstats
path: root/nova/openstack
diff options
context:
space:
mode:
authorJoe Gordon <jogo@cloudscaling.com>2013-03-29 14:45:23 -0700
committerJoe Gordon <jogo@cloudscaling.com>2013-03-29 14:45:23 -0700
commit94783b2158e9b92d40974b9bb0738426e2162066 (patch)
treeb3115d8dcc217d146e2e445e9c9a6884babea6c8 /nova/openstack
parent814e109845b3b2546f60e3f537dcfe32893906a3 (diff)
downloadnova-94783b2158e9b92d40974b9bb0738426e2162066.tar.gz
nova-94783b2158e9b92d40974b9bb0738426e2162066.tar.xz
nova-94783b2158e9b92d40974b9bb0738426e2162066.zip
Sync in matchmaker and qpid Conf changes from oslo
The following should use integers not strings. * matchmaker_heartbeat_freq * matchmaker_heartbeat_ttl * qpid_port Fixes bug 1159889 and bug 1161679 Change-Id: I2f055929ffa48ead300d2a3efdb0ce0692a13716
Diffstat (limited to 'nova/openstack')
-rw-r--r--nova/openstack/common/rpc/impl_qpid.py4
-rw-r--r--nova/openstack/common/rpc/matchmaker.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/nova/openstack/common/rpc/impl_qpid.py b/nova/openstack/common/rpc/impl_qpid.py
index fd4b25e7f..d3cc12d3c 100644
--- a/nova/openstack/common/rpc/impl_qpid.py
+++ b/nova/openstack/common/rpc/impl_qpid.py
@@ -40,8 +40,8 @@ qpid_opts = [
cfg.StrOpt('qpid_hostname',
default='localhost',
help='Qpid broker hostname'),
- cfg.StrOpt('qpid_port',
- default='5672',
+ cfg.IntOpt('qpid_port',
+ default=5672,
help='Qpid broker port'),
cfg.ListOpt('qpid_hosts',
default=['$qpid_hostname:$qpid_port'],
diff --git a/nova/openstack/common/rpc/matchmaker.py b/nova/openstack/common/rpc/matchmaker.py
index e4862396a..dcee752b2 100644
--- a/nova/openstack/common/rpc/matchmaker.py
+++ b/nova/openstack/common/rpc/matchmaker.py
@@ -35,10 +35,10 @@ matchmaker_opts = [
default='/etc/nova/matchmaker_ring.json',
help='Matchmaker ring file (JSON)'),
cfg.IntOpt('matchmaker_heartbeat_freq',
- default='300',
+ default=300,
help='Heartbeat frequency'),
cfg.IntOpt('matchmaker_heartbeat_ttl',
- default='600',
+ default=600,
help='Heartbeat time-to-live.'),
]