Skip to content
Snippets Groups Projects
Commit 6e3f741a authored by Jeffrey Zhang's avatar Jeffrey Zhang Committed by Radosław Piliszek
Browse files

Continue to run all actions if one action failed in curator

This patch also configure delete indices action before close indices.
more info check curator source code[0].

[0] https://github.com/elastic/curator/blob/ac5db911a1b4266908540bbaf44f697be85bb028/curator/cli.py#L217-L224

Change-Id: I9fb4b25514f5890adfac2f4007ec4a819fc9f566
Closes-Bug: #1954720
parent d04eb75a
No related branches found
No related tags found
No related merge requests found
actions:
1:
action: close
action: delete_indices
description: >-
Closes indices
Delete indicies
options:
ignore_empty_list: True
continue_if_exception: True
filters:
- filtertype: pattern
kind: prefix
......@@ -14,13 +15,14 @@ actions:
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: "{{ elasticsearch_curator_soft_retention_period_days }}"
unit_count: "{{ elasticsearch_curator_hard_retention_period_days }}"
2:
action: delete_indices
action: close
description: >-
Delete indicies
Closes indices
options:
ignore_empty_list: True
continue_if_exception: True
filters:
- filtertype: pattern
kind: prefix
......@@ -30,4 +32,4 @@ actions:
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: "{{ elasticsearch_curator_hard_retention_period_days }}"
unit_count: "{{ elasticsearch_curator_soft_retention_period_days }}"
---
fixes:
- |
Continue to run all actions if one action failed in Elasticsearch
curator.
`LP#1954720 <https://bugs.launchpad.net/kolla/+bug/1954720>`__
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment