7022319: Ceilometer doesn’t return any metering data and times out

This document (7022319) is provided subject to the disclaimer at the end of this document.

Environment

SUSE OpenStack Cloud 6

Situation

Ceilometer API calls end up with “Request returned failure status: 504”

Resolution

This is known issue. Removing the old data from database resolves the problem.

This can be achieved by installing a fixed package or editing path in the cronjob.

Cause

Ceilometer collects the metering information, that grows over time and clean up process is required to remove the old data. This is the task of ceilometer-expirer. However the cronjob is not working due to wrong path to the configuration directory.

Following can be seen in the logs:

2017-10-17T16:06:07.295754+02:00 d00-22-19-0e-2e-8d run-crons[30889]: openstack-ceilometer-expirer.cron returned 1

Therefore ceilometer API calls are timing out as the amount of information is so large that it cannot be processed within defined 60 seconds timeout period.

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented “AS IS” WITHOUT WARRANTY OF ANY KIND.

Related:

7022318: Horizon resource usage showing just glance meters

This document (7022318) is provided subject to the disclaimer at the end of this document.

Environment

SUSE OpenStack Cloud 6

Situation

In Resource Usage tab in Horizon only Image (glance service) meters are retrieved. CPU, RAM, network and disk usage details are not displayed.

Resolution

Manually increase the “default_api_return_limit” ceilometer configuration option value by creating a custom /etc/ceilometer/ceilometer.conf.d/101-ceilometer-api.conf configuration file on each controller node with the following contents:

[api]

default_api_return_limit = 1000

Cause

The ceilometer admin dashboard in Horizon doesn’t specify a limit for the number of entries returned by ceilometer API calls. Default_api_return_limit configuration option is used to limit the number of returned entries, which on certain systems may be too low.

Ceilometer CLI doesn’t suffer from this limitation. Following command takes precedence over default_api_return_limit and can be used to verify whether ceilometer has the data available :

ceilometer meter-list -l 5000

Disclaimer

This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented “AS IS” WITHOUT WARRANTY OF ANY KIND.

Related: