Bug#852658: collectd-core: Won't start without non-required packages libsensors4 liboping0

2017-10-21 Thread Sebastian Harl
Hi,

On Sat, Jan 28, 2017 at 11:35:03AM +0100, Marc Fournier wrote:
> On Thu, Jan 26, 2017 at 08:05:06AM +, Jan Huijsmans wrote:
> > Installation of collectd fails on the start of the package.
> > The package misses files from libsensors4 liboping0, but these
> > packages are only recommended or even suggested.
> 
> The configuration file shipped with the collectd package only loads these
> plugins by default:
> 
> marc@lonquimay:~/src/pkg-collectd/debian$ grep ^LoadPlugin collectd.conf
> LoadPlugin syslog
> LoadPlugin battery
> LoadPlugin cpu
> LoadPlugin df
> LoadPlugin disk
> LoadPlugin entropy
> LoadPlugin interface
> LoadPlugin irq
> LoadPlugin load
> LoadPlugin memory
> LoadPlugin processes
> LoadPlugin rrdtool
> LoadPlugin swap
> LoadPlugin users
> 
> None of them depend on libsensors4 or liboping0 (the sensors and ping
> plugins do, but they aren't enabled by default).
> 
> So my guess is that this system previously had a non-default configuration
> (maybe some config snippets in /etc/collectd/collectd.conf.d/ ?) in place,
> and installing/upgrading collectd-core made the missing runtime
> dependencies strike out.
> 
> Are you able to confirm ?

That's my guess as well.

> NB: I agree such a failure is undesirable. The collectd plugin loading
> mechanism could maybe be changed to not abort startup in this case (just
> skip loading the plugin and emit an error message).

I think I disagree. Daemon startup should imho fail so that people
actually notice. Else, you'll be left with a running daemon that does
not behave as expected / configured.

That said, I'd be happy if we could improve the overall situation. It
keeps coming up but I don't have a good idea for how to solve it yet :-/

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x2F1FFCC7 +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin



signature.asc
Description: Digital signature


Bug#852658: collectd-core: Won't start without non-required packages libsensors4 liboping0

2017-01-28 Thread Marc Fournier
On Thu, Jan 26, 2017 at 08:05:06AM +, Jan Huijsmans wrote:
> Package: collectd-core
> Version: 5.7.0-3
> Severity: grave
> Justification: renders package unusable
> 
> Dear Maintainer,
> 
> Installation of collectd fails on the start of the package.
> The package misses files from libsensors4 liboping0, but these
> packages are only recommended or even suggested.

The configuration file shipped with the collectd package only loads these
plugins by default:

marc@lonquimay:~/src/pkg-collectd/debian$ grep ^LoadPlugin collectd.conf
LoadPlugin syslog
LoadPlugin battery
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin irq
LoadPlugin load
LoadPlugin memory
LoadPlugin processes
LoadPlugin rrdtool
LoadPlugin swap
LoadPlugin users

None of them depend on libsensors4 or liboping0 (the sensors and ping
plugins do, but they aren't enabled by default).

So my guess is that this system previously had a non-default configuration
(maybe some config snippets in /etc/collectd/collectd.conf.d/ ?) in place,
and installing/upgrading collectd-core made the missing runtime
dependencies strike out.

Are you able to confirm ?

NB: I agree such a failure is undesirable. The collectd plugin loading
mechanism could maybe be changed to not abort startup in this case (just
skip loading the plugin and emit an error message).

> Manual installation of libsensors4 liboping0 solved the issue.
> 
> When a package won't complete it's installation without a
> package, it should be a requirement, not anything less.
> 
> Probably an issue with the debian packages as well.

Are you aware of /usr/share/doc/collectd-core/README.Debian.plugins.gz ?

Cheers,
Marc



Bug#852658: collectd-core: Won't start without non-required packages libsensors4 liboping0

2017-01-26 Thread Jan Huijsmans
Package: collectd-core
Version: 5.7.0-3
Severity: grave
Justification: renders package unusable

Dear Maintainer,

Installation of collectd fails on the start of the package.
The package misses files from libsensors4 liboping0, but these
packages are only recommended or even suggested.

Manual installation of libsensors4 liboping0 solved the issue.

When a package won't complete it's installation without a
package, it should be a requirement, not anything less.

Probably an issue with the debian packages as well.

-- System Information:
Distributor ID: Raspbian
Description:Raspbian GNU/Linux 9.0 (stretch)
Release:9.0
Codename:   stretch
Architecture: armv7l

Kernel: Linux 4.4.34-v7+ (SMP w/4 CPU cores)
Locale: LANG=en_US.ISO8859-15, LC_CTYPE=en_US.ISO8859-15 (charmap=ISO-8859-15) 
(ignored: LC_ALL set to en_US.ISO8859-15)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages collectd-core depends on:
ii  debconf [debconf-2.0]  1.5.59
ii  init-system-helpers1.46
ii  libc6  2.24-8+rpi1
ii  libcap21:2.25-1
ii  libltdl7   2.4.6-2
ii  lsb-base   9.20161125+rpi1

Versions of packages collectd-core recommends:
ii  perl 5.24.1~rc4-1
pn  rrdtool  

Versions of packages collectd-core suggests:
ii  apache2 [httpd-cgi] 2.4.25-1
pn  apcupsd 
ii  bind9   1:9.10.3.dfsg.P4-10.1
pn  ceph
pn  chrony  
pn  collectd-dev
pn  default-jre-headless
pn  default-mysql-server
pn  gpsd
pn  hddtemp 
ii  iptables1.6.0+snapshot20161117-4
pn  ipvsadm 
pn  libatasmart4
pn  libconfig-general-perl  
ii  libcurl3-gnutls 7.51.0-1
ii  libdbi1 0.9.0-4
pn  libesmtp6   
pn  libganglia1 
ii  libgcrypt20 1.7.5-2
pn  libgdk-pixbuf2.0-0  
ii  libglib2.0-02.50.2-2
pn  libgps22
pn  libhiredis0.13  
ii  libhtml-parser-perl 3.72-3
ii  libip4tc0   1.6.0+snapshot20161117-4
ii  libip6tc0   1.6.0+snapshot20161117-4
ii  libldap-2.4-2   2.4.44+dfsg-3
pn  liblua5.3-0 
pn  liblvm2app2.2   
ii  libmariadbclient18  10.0.28-2+b1
pn  libmemcached11  
pn  libmicrohttpd12 
ii  libmnl0 1.0.4-2
pn  libmodbus5  
pn  libmosquitto1   
pn  libnotify4  
pn  libnspr4
pn  libnss3 
pn  libopenipmi0
pn  liboping0   
pn  libowcapi-3.1-4 
pn  libpcap0.8  
ii  libperl5.24 5.24.1~rc4-1
ii  libpq5  9.6.1-2
pn  libprotobuf-c1  
ii  libpython2.72.7.13-1
pn  librabbitmq4
pn  librdkafka1 
pn  libregexp-common-perl   
pn  libriemann-client0  
ii  librrd8 1.6.0-1+b1
ii  librrds-perl1.6.0-1+b1
pn  libsensors4 
pn  libsigrok2  
pn  libsnmp30   
ii  libssl1.1   1.1.0c-2
pn  libtokyotyrant3 
ii  libudev1232-8
pn  libupsclient4   
ii  liburi-perl 1.71-1
pn  libvarnishapi1  
pn  libvirt0
pn  libxen-4.6  
ii  libxml2 2.9.4+dfsg1-2.1
ii  libyajl22.1.0-2
pn  lm-sensors  
pn  mbmon   
pn  memcached   
pn  nginx   
pn  notification-daemon 
pn  nut 
pn  olsrd   
pn  openvpn 
pn  pdns-server 
pn  postgresql  
pn  redis-server
pn  slapd   
pn  time-daemon 
pn  varnish 
ii  zlib1g  1:1.2.8.dfsg-4
pn  zookeeper   

-- debconf information:
  collectd/auto-migrate-3-4: false
  collectd/migration-4-5:
  collectd/migration-3-4:
  collectd/auto-migrate-4-5: false
  collectd/postrm_purge_data: true