From a67bce77e12b5af7fd5fae7946c96d483ecede92 Mon Sep 17 00:00:00 2001 From: Jakub Libosvar Date: Tue, 1 Oct 2013 18:27:44 +0000 Subject: [PATCH] Switch agent report_interval option to float Being able to set report_interval > 0 and < 1 makes it easier to consistently reproduce rpc race conditions. Change-Id: I4d907159147177e98b043e7e800aea5cf8c23103 Related-Bug: #1224001 --- neutron/agent/common/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neutron/agent/common/config.py b/neutron/agent/common/config.py index c4c7c795e25..e00d43cc972 100644 --- a/neutron/agent/common/config.py +++ b/neutron/agent/common/config.py @@ -32,8 +32,8 @@ ] AGENT_STATE_OPTS = [ - cfg.IntOpt('report_interval', default=4, - help=_('Seconds between nodes reporting state to server')), + cfg.FloatOpt('report_interval', default=4, + help=_('Seconds between nodes reporting state to server')), ]