Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sensu packages missing dependency for useradd/groupadd #15

Open
treydock opened this issue Jul 7, 2018 · 2 comments
Open

sensu packages missing dependency for useradd/groupadd #15

treydock opened this issue Jul 7, 2018 · 2 comments

Comments

@treydock
Copy link

treydock commented Jul 7, 2018

Expected Behavior

I'd expect yum install sensu-agent to succeed.

Current Behavior

Install sensu-agent on amazonlinux:2 docker container and install fails because useradd and groupadd are missing.

Possible Solution

Add Requires: shadow-utils to RPM spec for sensu packages that add users and groups. May be able to instead add Requires: /usr/sbin/useradd instead.

Steps to Reproduce (for bugs)

  1. docker run -it amazonlinux:2 /bin/bash
  2. curl -s https://packagecloud.io/install/repositories/sensu/nightly/script.rpm.sh | bash
  3. yum install sensu-agent
  4. Error:
//var/tmp/rpm-tmp.bsFUZi: line 119: groupadd: command not found
/var/tmp/rpm-tmp.bsFUZi: line 201: useradd: command not found
error: %pre(sensu-agent-2.0.0~nightly+20180707-1.x86_64) scriptlet failed, exit status 127
Error in PREIN scriptlet in rpm package sensu-agent-2.0.0~nightly+20180707-1.x86_64
  Verifying  : sensu-agent-2.0.0~nightly+20180707-1.x86_64                                                                                                                       1/1
u
Failed:
  sensu-agent.x86_64 0:2.0.0~nightly+20180707-1
  1. yum install shadow-utils
  2. yum install sensu-agent - SUCCESS

Context

I am evaluating adding Amazon Linux support to sensu-puppet project for Sensu 2.0.

Your Environment

  • Sensu version used (sensuctl, sensu-backend, and/or sensu-agent): sensu-agent version 2.0.0-nightly#7cb4b9d, build 7cb4b9da29522b7e54d18ea219d5ed8159320ea5, built 2018-07-07T09:19:17+0000
  • Installation method (packages, binaries, docker etc.): RPM
  • Operating System and version (e.g. Ubuntu 14.04): Amazon Linux 2.0
@grepory grepory transferred this issue from sensu/sensu-go Nov 23, 2018
@grepory
Copy link

grepory commented Nov 23, 2018

@preed We may need to do this.

@annaplotkin
Copy link

@treydock Is this still a thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants