Prometheus task "Copying over prometheus config file" has been broken since 10.0.0.0rc1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
kolla-ansible |
Fix Released
|
High
|
Radosław Piliszek | ||
Ussuri |
Fix Released
|
High
|
Mark Goddard | ||
Victoria |
Fix Released
|
High
|
Radosław Piliszek |
Bug Description
Found in: kolla-ansible Ussuri 10.0.0.0rc2.dev15.
Problem: when Prometheus is enabled, a prometheus.yml file needs to be generated from the inventory and host facts for prometheus-server. No overrides are being used for the Prometheus role.
TASK [prometheus : Copying over prometheus config file] runs successfully, however, the contents of the produced prometheus.yml file located on the monitoring nodes are: {}
E.g.
root@z141-
(prometheus-
(prometheus-
prometheus.yml
(prometheus-
{}
As if there was no attempt to render the jinja template at roles/prometheu
After further investigation the reason was found to be the commit 956a29f (https:/
Reverting the previous version of the task "Copying over prometheus config file" (as in stable/train, for instance) produces the output properly and correctly.
Indeed it is broken. I've also found other issues with the current approach. I will propose a proper patch soon. (backport to Ussuri)