diff --git a/ansible/roles/elasticsearch/templates/elasticsearch-curator-actions.yml.j2 b/ansible/roles/elasticsearch/templates/elasticsearch-curator-actions.yml.j2 index 0ef452874b839981780f3a6f0d3f0cc471f933ea..3da7c5a7222dcb453efe0415656b7b14ad415c72 100644 --- a/ansible/roles/elasticsearch/templates/elasticsearch-curator-actions.yml.j2 +++ b/ansible/roles/elasticsearch/templates/elasticsearch-curator-actions.yml.j2 @@ -1,10 +1,11 @@ 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 }}" diff --git a/releasenotes/notes/bug-1954720-4fc48610a56f3e98.yaml b/releasenotes/notes/bug-1954720-4fc48610a56f3e98.yaml new file mode 100644 index 0000000000000000000000000000000000000000..61c42fadd4cdc5e593db612915975686f380ec2c --- /dev/null +++ b/releasenotes/notes/bug-1954720-4fc48610a56f3e98.yaml @@ -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>`__