Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2010114

Summary: Openstack ceilometer archival policy is not taking effect
Product: Red Hat OpenStack Reporter: Ahmed El-Rayess <aelrayes>
Component: openstack-tripleo-heat-templatesAssignee: Matthias Runge <mrunge>
Status: CLOSED ERRATA QA Contact: Leonid Natapov <lnatapov>
Severity: medium Docs Contact:
Priority: low    
Version: 16.2 (Train)CC: apevec, lmadsen, mburns
Target Milestone: z3Keywords: Triaged, ZStream
Target Release: 16.2 (Train on RHEL 8.4)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-11.6.1-2.20220104004842.31a431d.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-03-23 22:29:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ahmed El-Rayess 2021-10-03 20:44:03 UTC
Description of problem:
the archival policy is always running with high, although the archival policy rule is set to low

Version-Release number of selected component (if applicable):
OpenStack 16.2

How reproducible:
always

Steps to Reproduce:
1. deploy openstack using the enable-legacy-telemetry.yaml
2. set GnocchiArchivePolicy: 'low'
3. create a new instance
4. check the archival policy rules 'openstack metric archive-policy-rule list'
5. check the policy applied on the metrics being collected 'openstack metric list'

Actual results:
all metrics are using the high policy

Expected results:
all metrics should be using the low policy

Additional info:
this has been already fixed upstream in https://review.opendev.org/c/openstack/tripleo-heat-templates/+/796709

Comment 1 Matthias Runge 2021-10-04 05:58:13 UTC
backport to wallaby: https://review.opendev.org/c/openstack/tripleo-heat-templates/+/812197

Default Archive policy has been dropped as well, configuring the archive policy via PipelinePublishers is be the way forward. This can be used with and without the mentioned backport. 

One would override it via:
```
  PipelinePublishers:
    - gnocchi://?archive_policy=low
```

Comment 4 Matthias Runge 2021-10-05 09:05:46 UTC
merged to stable/wallaby, cherry-picked to victoria https://review.opendev.org/c/openstack/tripleo-heat-templates/+/812436

Comment 6 Matthias Runge 2021-11-11 07:04:28 UTC
The patch was merged in train https://review.opendev.org/c/openstack/tripleo-heat-templates/+/816346

The automated downstream build is openstack-tripleo-heat-templates-11.6.1-2.20211108130549.bfe00e7.el8osttrunk

Comment 13 errata-xmlrpc 2022-03-23 22:29:32 UTC
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 (Moderate: Red Hat OpenStack Platform 16.2 (openstack-tripleo-heat-templates) security update), 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-2022:0995