Limit polling namespaces in API container

Removes the "compute" polling namespace from the ceilometer-polling
agent inside the API container.

By default both the "compute" and "central" polling namespaces are
enabled [1], and the compute namespace requires libvirt to be
installed or else ceilometer-polling will fail to start [2]. Since
we are not hosting instances inside the API container, we can
disable the namespace.

[1]: 4108d6d2cb/ceilometer/cmd/polling.py (L65)
[2]: http://logs.openstack.org/22/391522/2/check/gate-openstack-ansible-openstack-ansible-aio-ubuntu-xenial/6837eba/logs/openstack/aio1_ceilometer_api_container-2218d6eb/ceilometer/ceilometer-polling.log.txt.gz

Change-Id: I2046eb03bf26c62ac822d9a81847417bfcf24fb1
This commit is contained in:
Logan V 2017-01-26 10:35:44 -06:00
parent e58f6e0082
commit 54e2b6e4ca
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@ meter_dispatchers = database
event_dispatchers = database
{% endif %}
{% if 'ceilometer_agent_central' in group_names %}
polling_namespaces = central
{% endif %}
[oslo_policy]
policy_file = /etc/ceilometer/policy.json