We previously used ElasticSearch Curator for managing log
retention. Now that we have moved to OpenSearch, we can use
the Index State Management (ISM) plugin which is bundled with
OpenSearch.
This change adds support for automating the configuration of
the ISM plugin via the OpenSearch API. By default, it has
similar behaviour to the previous ElasticSearch Curator
default policy.
Closes-Bug: #2047037
Change-Id: I5c6d938f2bc380f1575ee4f16fe17c6dca37dcba
(cherry picked from commit 5e5a2dca0900e5c167e1ab55ef6dc14198ce2903)
Reviewed: https:/ /review. opendev. org/c/openstack /kolla- ansible/ +/904096 /opendev. org/openstack/ kolla-ansible/ commit/ e5750d0e94a78ab d46d8811130bd7d bf4ccd037a
Committed: https:/
Submitter: "Zuul (22348)"
Branch: stable/2023.2
commit e5750d0e94a78ab d46d8811130bd7d bf4ccd037a
Author: Doug Szumski <email address hidden>
Date: Wed Dec 7 14:50:21 2022 +0000
Set a log retention policy for OpenSearch
We previously used ElasticSearch Curator for managing log
retention. Now that we have moved to OpenSearch, we can use
the Index State Management (ISM) plugin which is bundled with
OpenSearch.
This change adds support for automating the configuration of
the ISM plugin via the OpenSearch API. By default, it has
similar behaviour to the previous ElasticSearch Curator
default policy.
Closes-Bug: #2047037
Change-Id: I5c6d938f2bc380 f1575ee4f16fe17 c6dca37dcba 167e1ab55ef6dc1 4198ce2903)
(cherry picked from commit 5e5a2dca0900e5c