Alaram histories are never removed from aodh database

Bug #1891888 reported by Takashi Kajinami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tripleo
Fix Released
Undecided
Takashi Kajinami

Bug Description

In Aodh, alarm histories are not automatically removed and we need the following 2 configurations to have old alarm histories removed from database

1. alarm_history_time_to_live parameter(default: -1) is set and has positive value

2. aodh-expirer command is executed periodically

Note that the similar expiration for Panko was previously introduced as a fix for another bug[1], and we should implement the same for aodh.

 [1] https://bugs.launchpad.net/tripleo/+bug/1746514

Changed in tripleo:
assignee: nobody → Takashi Kajinami (kajinamit)
status: New → In Progress
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to puppet-tripleo (master)

Reviewed: https://review.opendev.org/746424
Committed: https://git.openstack.org/cgit/openstack/puppet-tripleo/commit/?id=dadf19c6e3b8525b45c0350c81f3d8af14bfaa8c
Submitter: Zuul
Branch: master

commit dadf19c6e3b8525b45c0350c81f3d8af14bfaa8c
Author: Takashi Kajinami <email address hidden>
Date: Mon Aug 17 08:39:48 2020 +0900

    Add support for aodh-expirer cron job

    Related-Bug: #1891888
    Depends-on: https://review.opendev.org/#/c/746241/
    Change-Id: I9bc8a4ffde6e24edaa9744478d699ccc5243b784

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to tripleo-heat-templates (master)

Reviewed: https://review.opendev.org/746425
Committed: https://git.openstack.org/cgit/openstack/tripleo-heat-templates/commit/?id=46113c54531c5fd801097f5a85a6c37e0fa5ac68
Submitter: Zuul
Branch: master

commit 46113c54531c5fd801097f5a85a6c37e0fa5ac68
Author: Takashi Kajinami <email address hidden>
Date: Mon Aug 17 08:54:07 2020 +0900

    Add aodh-expirer cron job

    This patch introduces aodh_api_cron container to aodh-expirer cron job,
    which is required to remove old alarm histories from database.

    Closes-Bug: #1891888
    Depends-on: https://review.opendev.org/#/c/746241/
    Depends-on: https://review.opendev.org/#/c/746424/
    Change-Id: I023efc0cb6b7775aafa4b1fcc9049197724669e5

Changed in tripleo:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/tripleo-heat-templates 14.0.0

This issue was fixed in the openstack/tripleo-heat-templates 14.0.0 release.

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.