elastic / curator

Curator: Tending your Elasticsearch indices
Other
3.05k stars 635 forks source link

Curator pod/jobs does not show any logs if there is any syntactical errors in config file #1543

Open prashant407 opened 4 years ago

prashant407 commented 4 years ago

No logs appear in curator pods/jobs

Hi,

We are using Curator in Kubernetes platform. If in curator config there is indentation issue, curator pod does not show any logs. Even after using DEBUG mode there are no logs in curator pods.

Expected Behavior

If there is any issue with the indentation in that case curator pod should display some logs.

Actual Behavior

If there is any issue with the indentation then there are no logs in the curator pod. abc-curator-1588941960 1/1 6s 4m35s abc-curator-1588942080 1/1 5s 2m34s abc-curator-1588942200 1/1 6s 34s

[root@vm-XX-XX-XX-XX abc]# kubectl logs abc-curator-1588941720-fqnnc -n abc [root@vm-XX-XX-XX-XX abc]#

Steps to Reproduce the Problem

  1. Change some indentation of any parameter in the curator config
  2. Deploy the curator chart.
  3. Check the curator pod logs and Job status of curator.

Specifications

Context

If there is any syntactical errors in config while deploying the curator then it should through some error message or some logs.

DaveyDevOps commented 4 years ago

Is this related to Curator failing silently with invalid yaml #1504 lack of bad yaml feedback?

untergeek commented 4 years ago

@DaveyDevOps almost certainly, because:

  1. Change some indentation of any parameter in the curator config

implies that very thing.