Logs:
+ sudo -E kolla_set_configs
INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json
INFO:__main__:Validating config file
INFO:__main__:Kolla config strategy set to: COPY_ALWAYS
INFO:__main__:Copying service configuration files
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/log/kolla/prometheus
INFO:__main__:Setting permission for /var/log/kolla/prometheus/cadvisor.INFO
INFO:__main__:Setting permission for /var/log/kolla/prometheus/cadvisor.z141-ost-ctrl1.root.log.WARNING.20200522-235920.6
INFO:__main__:Setting permission for /var/log/kolla/prometheus/cadvisor.z141-ost-ctrl1.root.log.INFO.20200522-234931.6
INFO:__main__:Setting permission for /var/log/kolla/prometheus/cadvisor.z141-ost-ctrl1.root.log.INFO.20200522-235920.6
INFO:__main__:Setting permission for /var/log/kolla/prometheus/cadvisor.WARNING
INFO:__main__:Setting permission for /var/log/kolla/prometheus/cadvisor.z141-ost-ctrl1.root.log.WARNING.20200522-234931.6
++ cat /run_command
+ CMD='/opt/elasticsearch_exporter/elasticsearch_exporter -es.uri http://10.81.0.1:9200 -web.listen-address 10.81.0.1:9108'
+ ARGS=
+ sudo kolla_copy_cacerts
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ [[ ! -d /var/log/kolla/prometheus ]]
+++ stat -c %a /var/log/kolla/prometheus
++ [[ 2755 != \7\5\5 ]]
++ chmod 755 /var/log/kolla/prometheus
+ echo 'Running command: '\''/opt/elasticsearch_exporter/elasticsearch_exporter -es.uri http://10.81.0.1:9200 -web.listen-address 10.81.0.1:9108'\'''
Running command: '/opt/elasticsearch_exporter/elasticsearch_exporter -es.uri http://10.81.0.1:9200 -web.listen-address 10.81.0.1:9108'
+ exec /opt/elasticsearch_exporter/elasticsearch_exporter -es.uri http://10.81.0.1:9200 -web.listen-address 10.81.0.1:9108
elasticsearch_exporter: error: unknown short flag '-e', try --help
Cause:
In ansible/roles/prometheus/templates/prometheus-elasticsearch-exporter.json.j2 the syntax is missing dashes in a couple of places:
Currently: "command": "/opt/elasticsearch_exporter/elasticsearch_exporter -es.uri http://{{ api_interface_address | put_address_in_context('url') }}:{{ elasticsearch_port }} -web.listen-address {{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_elasticsearch_exporter_port }}",
Should be: "command": "/opt/elasticsearch_exporter/elasticsearch_exporter --es.uri http://{{ api_interface_address | put_address_in_context('url') }}:{{ elasticsearch_port }} --web.listen-address {{ api_interface_address | put_address_in_context('url') }}:{{ prometheus_elasticsearch_exporter_port }}",
Thanks for the bug. What version of kolla-ansible are you running?