Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Curator fails when no index matches pattern #57

Open
AnatolyRugalev opened this issue May 31, 2018 · 0 comments
Open

Curator fails when no index matches pattern #57

AnatolyRugalev opened this issue May 31, 2018 · 0 comments

Comments

@AnatolyRugalev
Copy link

AnatolyRugalev commented May 31, 2018

This is a BUG REPORT

Version of Helm and Kubernetes:

$ helm version
Client: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.8.2", GitCommit:"a80231648a1473929271764b920a8e346f6de844", GitTreeState:"clean"}
$ kubectl version
Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.3", GitCommit:"d2835416544f298c919e2ead3be3d0864b52323b", GitTreeState:"clean", BuildDate:"2018-02-07T12:22:21Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

What happened:
I deployed this chart with Curator enabled, but I don't have any log indexes yet.

What you expected to happen:
I expect Curator CronJob to finish successfully even if no index matches pattern

Anything else we need to know:

Curator has an ignore_empty_list option which helps to resolve this issue. My working action looks like this:

      1:
        action: delete_indices
        description: "Clean up ES by deleting old indices"
        options:
          timeout_override:
          continue_if_exception: False
          disable_action: False
          ignore_empty_list: True # Added this line
        filters:
        - filtertype: age
          source: name
          direction: older
          timestring: '%Y.%m.%d'
          unit: days
          unit_count: 3
          field:
          stats_result:
          epoch:
          exclude: False
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant