Actions
Bug #50717
closedcephadm: prometheus.yml.j2 contains "tab" character
% 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"
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
Updated by Dimitri Savineau almost 3 years ago
- Assignee set to Dimitri Savineau
- Pull request ID set to 41343
Updated by Dimitri Savineau almost 3 years ago
- Status changed from New to Fix Under Review
Updated by Kefu Chai almost 3 years ago
- Status changed from Fix Under Review to Pending Backport
- Backport set to pacific
Updated by Sage Weil almost 3 years ago
- Status changed from Pending Backport to Resolved
Actions