Ceilometer configuration missing on deploy

Bug #1845365 reported by Carlos Augusto da Silva Martins
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
New
Undecided
Unassigned

Bug Description

The deployment of ceilometer has a empty value of "hosts" in the section "ceilometer central_container" in file /etc/openstack deploy/openstack inventory.json.

The first error has the following output:
fatal: [controller3]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}

After changing the value of variable 'no_log' in task 'Add service user' of the file "/etc/ansible/roles/os_ceilometer/tasks/ceilometer_service_setup.yml", show this error:

fatal: [mini-controller3]: FAILED! => {"msg": "The conditional check 'groups['ceilometer_central_container'] is defined and inventory_hostname == groups['ceilometer_central_container'][0]' failed. The error was: error while evaluating conditional (groups['ceilometer_central_container'] is defined and inventory_hostname == groups['ceilometer_central_container'][0]): list object has no element 0\n\nThe error appears to have been in '/etc/ansible/roles/os_ceilometer/tasks/ceilometer_service_setup.yml': line 26, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n block:\n - name: Add service user\n ^ here\n"}

A fix for this issue is inserting the hostnames of "metering-infra_hosts" in variable "hosts" in section "ceilometer central_container" of the file "/etc/openstack deploy/openstack inventory.json".

My config file "openstack_user_config.yml" has the necessary configuration for ceilometer as the examples show:
"metering-infra_hosts" and "metering-compute_hosts" are configured. Maybe I forgot something Or really is a bug?

The branch is Rocky.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.