Merge "Fix ceilometer polling process not able to coordinate issue"

This commit is contained in:
Zuul 2018-09-13 07:34:39 +00:00 committed by Gerrit Code Review
commit fada1c6b94
1 changed files with 6 additions and 1 deletions

View File

@ -384,7 +384,7 @@ class AgentManager(cotyledon.Service):
super(AgentManager, self).run()
self.polling_manager = PollingManager(self.conf)
if self.partition_coordinator:
self.partition_coordinator.start()
self.partition_coordinator.start(start_heart=True)
self.join_partitioning_groups()
self.start_polling_tasks()
@ -400,6 +400,11 @@ class AgentManager(cotyledon.Service):
self._keystone = None
self._keystone_last_exception = None
# Note(leehom): if coordinator enabled call run_watchers to
# update group member info before collecting
if self.partition_coordinator:
self.partition_coordinator.run_watchers()
task.poll_and_notify()
@property