BigSwitch: Watchdog thread start after servers

Start the watchdog thread after the servers have
been initialized.

Closes-Bug: #1293799
Change-Id: Ic7ae1f55bd7faed6edde84d9d0b52fc8fe7a1fc1
This commit is contained in:
Kevin Benton 2014-03-17 13:39:50 -07:00
parent 903aa84ff9
commit dafe6598c7
1 changed files with 2 additions and 2 deletions

View File

@ -245,8 +245,6 @@ class ServerPool(object):
# Hash to send to backend with request as expected previous
# state to verify consistency.
self.consistency_hash = cdb.get_consistency_hash()
eventlet.spawn(self._consistency_watchdog,
cfg.CONF.RESTPROXY.consistency_interval)
if not servers:
raise cfg.Error(_('Servers not defined. Aborting server manager.'))
@ -262,6 +260,8 @@ class ServerPool(object):
self.server_proxy_for(server, int(port))
for server, port in (s.rsplit(':', 1) for s in servers)
]
eventlet.spawn(self._consistency_watchdog,
cfg.CONF.RESTPROXY.consistency_interval)
LOG.debug(_("ServerPool: initialization done"))
def get_capabilities(self):