Skip to content

Commit b710043

Browse files
jeffrey4lmarkgoddard
authored andcommitted
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 (cherry picked from commit 6e3f741)
1 parent 68b66a3 commit b710043

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
actions:
22
1:
3-
action: close
3+
action: delete_indices
44
description: >-
5-
Closes indices
5+
Delete indicies
66
options:
77
ignore_empty_list: True
8+
continue_if_exception: True
89
filters:
910
- filtertype: pattern
1011
kind: prefix
@@ -14,13 +15,14 @@ actions:
1415
direction: older
1516
timestring: '%Y.%m.%d'
1617
unit: days
17-
unit_count: "{{ elasticsearch_curator_soft_retention_period_days }}"
18+
unit_count: "{{ elasticsearch_curator_hard_retention_period_days }}"
1819
2:
19-
action: delete_indices
20+
action: close
2021
description: >-
21-
Delete indicies
22+
Closes indices
2223
options:
2324
ignore_empty_list: True
25+
continue_if_exception: True
2426
filters:
2527
- filtertype: pattern
2628
kind: prefix
@@ -30,4 +32,4 @@ actions:
3032
direction: older
3133
timestring: '%Y.%m.%d'
3234
unit: days
33-
unit_count: "{{ elasticsearch_curator_hard_retention_period_days }}"
35+
unit_count: "{{ elasticsearch_curator_soft_retention_period_days }}"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
Continue to run all actions if one action failed in Elasticsearch
5+
curator.
6+
`LP#1954720 <https://bugs.launchpad.net/kolla/+bug/1954720>`__

0 commit comments

Comments
 (0)