Telegraf: Telegraf dependency to shadow-utils not appropriate for Suse 12.3

Created on 25 Feb 2018  路  6Comments  路  Source: influxdata/telegraf

Bug report

The installation of telegraf fails on Suse 12.3 (Enterprise) due to a dependency issue. Recent telegraf versions require shadow-utils, and this package does not exist in Suse 12.3.

The installation can be forced (rpm -i --nodeps telegraf-...), and then telegraf worked well for me. So I suspect that the dependency is not required for Suse12.3. I suspect that telegraf wants to ensure that useradd is available, and this in Suse12.3 is part of the shadow package.

So I think that the dependency list for Suse should be modified. For RHEL/CentOS it was OK for me.

Relevant telegraf.conf:

n/a

System info:

Tested with telegraf-1.5.0-1.x86_64.rpm and telegraf-1.5.2-1.x86_64.rpm. Worked with CentOS/RHEL 7.4, but failed with SUSE Linux Enterprise Server 12 patchlevel 3. I did not test older Suse versions.

Steps to reproduce:

suse1:/tmp # zypper install /tmp/telegraf-1.5.2-1.x86_64.rpm
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: nothing provides shadow-utils needed by telegraf-1.5.2-1.x86_64
Solution 1: do not install telegraf-1.5.2-1.x86_64
Solution 2: break telegraf-1.5.2-1.x86_64 by ignoring some of its dependencies
...

Expected behavior:

Clean installation not requiring to ignore a (false?) alarm about the dependency

Actual behavior:

see above.

Additional info:

[Include gist of relevant config, logs, etc.]

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

Current behavior:

Desired behavior:

Use case: [Why is this important (helps with prioritizing requests)]

arepackaging bug platforsuse

Most helpful comment

As a workaround you can install with no dependencies:

sudo rpm -i --nodeps telegraf-1.7.2-1.x86_64.rpm

All 6 comments

Workaround:

github.com/influxdata/telegraf $ diff scripts/build.py scripts/build_suse.py
649c649
<                             fpm_command += "--depends coreutils --depends shadow-utils --rpm-posttrans {}".format(POSTINST_SCRIPT)
---
>                             fpm_command += "--depends coreutils --depends shadow --rpm-posttrans {}".format(POSTINST_SCRIPT)

Im having the same issue ( for influxdb and kapacitor as well ). Im installing on a custom distro and the shadow-utils dependency is getting in the way.

As a workaround you can install with no dependencies:

sudo rpm -i --nodeps telegraf-1.7.2-1.x86_64.rpm

Same on Suse 15/SLE15

Faced the same issue in Aug 2020 on Suse 42.2

This repo is fixing this https://software.opensuse.org//download.html?project=home%3ABerlinOnline%3Atelegraf&package=shadow-utils

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SongYg picture SongYg  路  3Comments

m4ce picture m4ce  路  3Comments

Xiol picture Xiol  路  3Comments

nsteinmetz picture nsteinmetz  路  3Comments

mrcheeky123 picture mrcheeky123  路  3Comments