wait for telegraf to be installed before configuring plugins

Bug #1891880 reported by Laurent Sesquès
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Telegraf Charm
Fix Released
Medium
Unassigned

Bug Description

On an existing unit with configured extra plugins in telegraf.d/, switching from the deb install to the snap, the charm will try to write to /var/snap/telegraf/current/telegraf.d before the snap is installed, leading to e.g.:

FileNotFoundError: [Errno 2] No such file or directory: '/var/snap/telegraf/current/telegraf.d/haproxy.conf'

Although I haven't observed it, the same race condition could happen with the deb package.

Related branches

Revision history for this message
Alvaro Uria (aluria) wrote :

Release to cs:~llama-charmers-next/telegraf-5

Changed in charm-telegraf:
status: New → Fix Committed
importance: Undecided → Medium
milestone: none → 20.10
Linda Guo (lihuiguo)
Changed in charm-telegraf:
status: Fix Committed → Fix Released
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.