OVS metrics attempted to collect, but no sudoers and no ovs on the system

Bug #1891781 reported by Xav Paice
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Telegraf Charm
Fix Released
Critical
Jose Guedez

Bug Description

Using charm release cs:telegraf-38, a unit with no OVS installed was reporting errors:

[inputs.exec] Error in plugin: exec: exit status 1 for command '/var/lib/juju/agents/unit-telegraf-prometheus-0/.venv/bin/python /var/lib/juju/agents/unit-telegraf-prometheus-0/charm/files/telegraf_exec_metrics.py --metric ovs_dpctl': sudo: no tty present and no askpass program specified...

The sudoers entry telegraf_sudoers was missing entirely on this unit. Even adding it, copied from another unit, wasn't enough to clear the error.

This particular unit then attempted to send an email for every exec that failed, and filled the disk.

Tags: sts

Related branches

Changed in charm-telegraf:
importance: Undecided → Critical
status: New → Triaged
Jose Guedez (jfguedez)
Changed in charm-telegraf:
assignee: nobody → Jose Guedez (jfguedez)
Jose Guedez (jfguedez)
Changed in charm-telegraf:
status: Triaged → In Progress
Revision history for this message
Alvaro Uria (aluria) wrote :

Released at cs:~llama-charmers-next/telegraf-4

Changed in charm-telegraf:
milestone: none → 20.10
status: In Progress → Fix Committed
Revision history for this message
Junien F (axino) wrote :

Is it possible to backport the fix for this critical bug to the "regular" telegraf charm before the 20.10 release ?

Thanks

Revision history for this message
Nikolay Vinogradov (nikolay.vinogradov) wrote :

Seeing this on the deployment.

Revision history for this message
Haw Loeung (hloeung) wrote :

Same here, causing cron spam and bringing down our MX server.

Revision history for this message
David Coronel (davecore) wrote :

subscribed ~field-medium for awareness

Revision history for this message
Haw Loeung (hloeung) wrote :

Can we get the charm built with this fix and published?

Felipe Reyes (freyes)
tags: added: sts
Revision history for this message
Andrea Ieri (aieri) wrote :

This seems to be available in the 20.10 release:

$ git --no-pager branch -r --contains 2def7
  origin/HEAD -> origin/master
  origin/bug/1896467
  origin/master
  origin/stable/20.10

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.