Merge "Don't heartbeat manually in the cloudkitty orchestrator"

This commit is contained in:
Zuul 2018-11-20 17:41:54 +00:00 committed by Gerrit Code Review
commit 7ef878ea34
2 changed files with 6 additions and 2 deletions

View File

@ -258,7 +258,7 @@ class Orchestrator(object):
self.coord = coordination.get_coordinator(
CONF.orchestrator.coordination_url,
uuidutils.generate_uuid().encode('ascii'))
self.coord.start()
self.coord.start(start_heart=True)
def _lock(self, tenant_id):
lock_name = b"cloudkitty-" + str(tenant_id).encode('ascii')
@ -308,7 +308,6 @@ class Orchestrator(object):
lock.release()
self.coord.heartbeat()
# NOTE(sheeprine): Slow down looping if all tenants are
# being processed
eventlet.sleep(1)

View File

@ -0,0 +1,5 @@
---
fixes:
- |
cloudkitty-processor crashes which happened when using distributed
tooz locks have been fixed.