Fix ceilometer polling process not able to coordinate issue
Add option start_heart=True when start partition_coordinator to prevent old member be overwritten when new member joined group Besides upadte member information each time before doing poll Change-Id: I3d0acda90a57b4cb32468433f6bd593a038e76ec Closes-Bug: #1787125 Signed-off-by: Leehom Li (feli5) <feli5@cisco.com>
This commit is contained in:
parent
413f9a3261
commit
4e627004f6
|
@ -401,7 +401,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()
|
||||
|
||||
|
@ -417,6 +417,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
|
||||
|
|
Loading…
Reference in New Issue