Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1414549 - Establish and set sensible defaults for ceilometer data retention period
Establish and set sensible defaults for ceilometer data retention period
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-heat-templates (Show other bugs)
10.0 (Newton)
Unspecified Unspecified
high Severity medium
: z8
: 10.0 (Newton)
Assigned To: Emilien Macchi
Sasha Smolyak
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-01-18 15:10 EST by Andreas Karis
Modified: 2018-05-17 11:42 EDT (History)
7 users (show)

See Also:
Fixed In Version: openstack-tripleo-heat-templates-5.3.8-8.el7
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2018-05-17 11:40:53 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 462203 None None None 2017-05-03 12:08 EDT
Red Hat Product Errata RHSA-2018:1593 None None None 2018-05-17 11:42 EDT

  None (edit)
Description Andreas Karis 2017-01-18 15:10:09 EST
Description of problem:
https://access.redhat.com/solutions/2215701

The current default value in Director based deployments for these values:
~~~
[database]
#(IntOpt) Number of seconds that alarm histories are kept in the database for (<= 0 means forever).
#alarm_history_time_to_live = -1
# (IntOpt) Number of seconds that events are kept in the database for (<= 0 means forever).
event_time_to_live = -1
# (IntOpt) Number of seconds that samples are kept in the database for (<= 0 means forever).
metering_time_to_live = -1
~~~

Databases regularly fill up root disks with these settings. We should set these to a reasonable value. Definitely not infinite retention.
Comment 3 David Juran 2017-10-02 12:43:28 EDT
In OSP10, with Aodh deployed by default, shouldn't the alarm_history_time_to_live parameter also be set in aodh.conf?
Comment 4 Sasha Smolyak 2017-11-13 09:36:46 EST
1. 
[heat-admin@controller-0 ~]$ sudo docker exec -ti ceilometer_agent_central cat /etc/ceilometer/ceilometer.conf | grep time_to_live
# Deprecated group/name - [database]/time_to_live
#metering_time_to_live = -1
metering_time_to_live=-1
event_time_to_live=-1

Although in /usr/share/openstack-tripleo-heat-templates/puppet/services/ceilometer-collector.yaml all the changes are according to gerrit:

  CeilometerEventTTL:
    default: '86400'
    description: Number of seconds that events are kept in the database for
                 (<= 0 means forever)
    type: string
  CeilometerMeteringTTL:
    default: '86400'
    description: Number of seconds that samples are kept in the database for
                 (<= 0 means forever)
    type: string

2. 
[heat-admin@controller-0 ~]$ sudo docker exec -ti aodh_api cat /etc/aodh/aodh.conf | grep alarm_history_time_to_live
#alarm_history_time_to_live = -1

This default was never fixed

The defaults aren't changed
openstack-tripleo-heat-templates-7.0.3-0.20171024200823.el7ost.noarch
Comment 5 Pradeep Kilambi 2017-11-13 10:10:02 EST
Your test is incorrect, you need collector deployed in order to set the ttl. As those are mongodb only settings really.
Comment 22 errata-xmlrpc 2018-05-17 11:40:53 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2018:1593

Note You need to log in before you can comment on or make changes to this bug.