telegraf install hook failing if telegraf.conf exists before telegraf package

Bug #1799263 reported by Drew Freiberger
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Telegraf Charm
Expired
Medium
Unassigned

Bug Description

the apt hooks to install telegraf are failing at this prompt to install telegraf:

Configuration file '/etc/telegraf/telegraf.conf'
 ==> File on system created by you or by a script.
 ==> File also in package provided by package maintainer.
   What would you like to do about it ? Your options are:
    Y or I : install the package maintainer's version
    N or O : keep your currently-installed version
      D : show the differences between the versions
      Z : start a shell to examine the situation
 The default action is to keep your current version.
*** telegraf.conf (Y/I/N/O/D/Z) [default=N] ? n

Please update to force "N" on the package maintainer file update to allow for upgrades/hooks to properly install/upgrade telegraf.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

This can also carry over to locking dpkg for other charms. Suggest adding update-status hook routine to check for need to configure telegraf dpkg and force a "no" response.

Revision history for this message
Drew Freiberger (afreiberger) wrote :

Workaround:

dpkg --configure telegraf --force-confold

Revision history for this message
Wouter van Bommel (woutervb) wrote :

How can this situation replicated using charms to handle the deployment?

Changed in charm-telegraf:
status: New → Incomplete
Changed in charm-telegraf:
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Telegraf Charm because there has been no activity for 60 days.]

Changed in charm-telegraf:
status: Incomplete → Expired
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.