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:
parent
d04eb75a2a
commit
6e3f741ace
@ -1,26 +1,11 @@
|
|||||||
actions:
|
actions:
|
||||||
1:
|
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
|
action: delete_indices
|
||||||
description: >-
|
description: >-
|
||||||
Delete indicies
|
Delete indicies
|
||||||
options:
|
options:
|
||||||
ignore_empty_list: True
|
ignore_empty_list: True
|
||||||
|
continue_if_exception: True
|
||||||
filters:
|
filters:
|
||||||
- filtertype: pattern
|
- filtertype: pattern
|
||||||
kind: prefix
|
kind: prefix
|
||||||
@ -31,3 +16,20 @@ actions:
|
|||||||
timestring: '%Y.%m.%d'
|
timestring: '%Y.%m.%d'
|
||||||
unit: days
|
unit: days
|
||||||
unit_count: "{{ elasticsearch_curator_hard_retention_period_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 }}"
|
||||||
|
6
releasenotes/notes/bug-1954720-4fc48610a56f3e98.yaml
Normal file
6
releasenotes/notes/bug-1954720-4fc48610a56f3e98.yaml
Normal 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>`__
|
Loading…
Reference in New Issue
Block a user