telegraf invalid TOML syntax

Bug #1875613 reported by XiaojueGuan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
XiaojueGuan
Ussuri
Fix Released
Medium
XiaojueGuan

Bug Description

(deploy) root@k-node1:~# pip freeze | grep kolla
kolla==9.1.0.dev387
kolla-ansible==9.1.0.dev588

the globals.yml file is https://github.com/albertjone/kolla-config/blob/master/kolla-config/multinode/globals.yml

when use kolla-ansible to deploy it failed with following detail:
```
+ 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__:Deleting /etc/telegraf/telegraf.conf
INFO:__main__:Copying /var/lib/kolla/config_files/telegraf.conf to /etc/telegraf/telegraf.conf
INFO:__main__:Setting permission for /etc/telegraf/telegraf.conf
INFO:__main__:Writing out command to execute
++ cat /run_command
+ CMD='telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d/'
+ ARGS=
+ sudo kolla_copy_cacerts
+ [[ ! -n '' ]]
+ . kolla_extend_start
++ TELEGRAF_LOG_DIR=/var/log/kolla/telegraf
++ [[ ! -d /var/log/kolla/telegraf ]]
++ mkdir -p /var/log/kolla/telegraf
+++ stat -c %a /var/log/kolla/telegraf
++ [[ 2755 != \7\5\5 ]]
++ chmod 755 /var/log/kolla/telegraf
+ echo 'Running command: '\''telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d/'\'''
+ exec telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d/
Running command: 'telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d/'
2020-04-28T09:53:24Z I! Starting Telegraf 1.14.1
2020-04-28T09:53:24Z E! [telegraf] Error running agent: Error parsing /etc/telegraf/telegraf.conf, line 20: invalid TOML syntax
+ 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__:Deleting /etc/telegraf/telegraf.conf
INFO:__main__:Copying /var/lib/kolla/config_files/telegraf.conf to /etc/telegraf/telegraf.conf
INFO:__main__:Setting permission for /etc/telegraf/telegraf.conf
INFO:__main__:Writing out command to execute
INFO:__main__:Setting permission for /var/log/kolla/telegraf
```

Changed in kolla-ansible:
assignee: nobody → XiaojueGuan (xiaojuegaun)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/724215

Changed in kolla-ansible:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/724215
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=7ad7c8804641bdb0dfecc20e0f221f74a52f717b
Submitter: Zuul
Branch: master

commit 7ad7c8804641bdb0dfecc20e0f221f74a52f717b
Author: xiaojueguan <email address hidden>
Date: Wed Apr 29 11:11:05 2020 +0800

    Fix telegraf invalid TOML syntax

    Change-Id: Ie3022d1721f43dc84e4228331d0d2f6f3a3c7ebd
    Closes-Bug: 1875613

Changed in kolla-ansible:
status: In Progress → Fix Released
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
milestone: none → 10.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.