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] ac5db911a1/curator/cli.py (L217-L224)

Change-Id: I9fb4b25514f5890adfac2f4007ec4a819fc9f566
Closes-Bug: #1954720
This commit is contained in:
Jeffrey Zhang 2021-12-14 09:04:59 +08:00 committed by Radosław Piliszek
parent d04eb75a2a
commit 6e3f741ace
2 changed files with 24 additions and 16 deletions

View File

@ -1,26 +1,11 @@
actions:
1:
action: close
description: >-
Closes indices
options:
ignore_empty_list: True
filters:
- filtertype: pattern
kind: prefix
value: "{{ elasticsearch_curator_index_pattern }}"
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: "{{ elasticsearch_curator_soft_retention_period_days }}"
2:
action: delete_indices
description: >-
Delete indicies
options:
ignore_empty_list: True
continue_if_exception: True
filters:
- filtertype: pattern
kind: prefix
@ -31,3 +16,20 @@ actions:
timestring: '%Y.%m.%d'
unit: days
unit_count: "{{ elasticsearch_curator_hard_retention_period_days }}"
2:
action: close
description: >-
Closes indices
options:
ignore_empty_list: True
continue_if_exception: True
filters:
- filtertype: pattern
kind: prefix
value: "{{ elasticsearch_curator_index_pattern }}"
- filtertype: age
source: name
direction: older
timestring: '%Y.%m.%d'
unit: days
unit_count: "{{ elasticsearch_curator_soft_retention_period_days }}"

View File

@ -0,0 +1,6 @@
---
fixes:
- |
Continue to run all actions if one action failed in Elasticsearch
curator.
`LP#1954720 <https://bugs.launchpad.net/kolla/+bug/1954720>`__