ceilometer compute metrics don't work on metal AIO
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I installed OpenStack AIO with ceilometer and gnocchi using the following commands:
git clone -b 26.1.1 https:/
cd /opt/openstack-
scripts/
export SCENARIO=
scripts/
cd playbooks
openstack-ansible setup-hosts.yml
openstack-ansible setup-infrastru
openstack-ansible setup-openstack.yml
After completing the install and starting a test instance, some metrics appeared in "openstack metric list", but the cpu and memory.usage metrics I was most interested in did not. After wasting a lot of time debugging this I finally figured out that openstack-ansible misconfigured ceilometer due to the following lines in the ceilometer.conf.j2 template in the os_ceilometer role:
{% if 'ceilometer_
polling_namespaces = central
{% elif 'ceilometer_
polling_namespaces = compute
{% endif %}
In a metal AIO build, group_names contains both ceilometer_
polling_namespaces = central,compute
but instead I got:
polling_namespaces = central
After fixing the config manually and restarting ceilometer services, metrics started working fine. Or you can add the following to user_variables.yml as a workaround:
ceilometer_
DEFAULT:
polling_
Fix proposed to branch: master /review. opendev. org/c/openstack /openstack- ansible- os_ceilometer/ +/882466
Review: https:/