Fix instantiation of manager.AgentManager on cmd.polling.create_polling_service

The commit 28f0a70da9 broke the selection of polling
 namespaces. When creating the agent manager we should define the polling group
 that we want to use. Otherwise, Ceilometer will for instance enable the "central"
 polling methods in the compute nodes, and vice versa.

Change-Id: I179c95a7bfaf5d9722037618108fc882d85fda5a
Signed-off-by: Rafael Weingärtner <rafael@apache.org>
(cherry picked from commit 6ba6726aee)
This commit is contained in:
Rafael Weingärtner 2019-11-14 13:26:15 -03:00 committed by Mark Goddard
parent 35c73570eb
commit 4ffd6782c0
1 changed files with 1 additions and 2 deletions

View File

@ -84,8 +84,7 @@ def create_polling_service(worker_id, conf=None):
if conf is None:
conf = _prepare_config()
conf.log_opt_values(LOG, log.DEBUG)
return manager.AgentManager(worker_id,
conf)
return manager.AgentManager(worker_id, conf, conf.polling_namespaces)
def main():