Project

General

Profile

Actions

Bug #50717

closed

cephadm: prometheus.yml.j2 contains "tab" character

Added by marek czardybon almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Urgent
Category:
cephadm/monitoring
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
pacific
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Hello.

in file /usr/share/ceph/mgr/cephadm/templates/services/prometheus/prometheus.yml.j2 provided by package
ceph-mgr-cephadm-16.2.3-0.el8.noarch in section :

{% for haproxy in haproxy_targets %}
      - targets: [{{ haproxy.url }}]
        labels:
          instance: '{{ haproxy.service }}'
{% endfor %}

in line "instance: '{{ haproxy.service }}'" at the front there is <tab><space><space> characters.

<tab> are not allowed by YAML.
this error causes that prometheus fails to start when I've deployed haproxy as part of ingress service with error :

couldn't load configuration (--config.file=\"/etc/prometheus/prometheus.yml\"): parsing YAML file /etc/prometheus/prometheus.yml: yaml: line 47: found character that cannot start any token"

Actions #1

Updated by Sebastian Wagner almost 3 years ago

  • Project changed from Ceph to Orchestrator
  • Subject changed from prometheus.yml.j2 contains "tab" character to cephadm: prometheus.yml.j2 contains "tab" character
  • Category set to cephadm/monitoring
  • Priority changed from Normal to Urgent
Actions #2

Updated by Dimitri Savineau almost 3 years ago

  • Assignee set to Dimitri Savineau
  • Pull request ID set to 41343
Actions #3

Updated by Dimitri Savineau almost 3 years ago

  • Status changed from New to Fix Under Review
Actions #4

Updated by Kefu Chai almost 3 years ago

  • Status changed from Fix Under Review to Pending Backport
  • Backport set to pacific
Actions #5

Updated by Sage Weil almost 3 years ago

  • Status changed from Pending Backport to Resolved
Actions

Also available in: Atom PDF