commit 4ffd6782c069753854890af14f33369abe396304 Author: Rafael Weingärtner Date: Thu Nov 14 13:26:15 2019 -0300 Fix instantiation of manager.AgentManager on cmd.polling.create_polling_service The commit 28f0a70da99b2fde2479ce6a5c62128ab75554af 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 (cherry picked from commit 6ba6726aee103b8474ba79d31880e2af77167f0f) diff --git a/ceilometer/cmd/polling.py b/ceilometer/cmd/polling.py index a135329..c4b80c1 100644 --- a/ceilometer/cmd/polling.py +++ b/ceilometer/cmd/polling.py @@ -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():