Bug 1209229

Summary: openldap-servers leverages 'find' from findutils which is not a dep of the rpm
Product: Red Hat Enterprise Linux 7 Reporter: Erik M Jacobs <ejacobs>
Component: openldapAssignee: Matus Honek <mhonek>
Status: CLOSED ERRATA QA Contact: Patrik Kis <pkis>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3CC: bleanhar, ebenes, harald, jsynacek, mhonek, pkis
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: missing findutils dependency Consequence: postinstall script may have failed in certain containerized environments Fix: dependency was added Result: postinstall scripts work even in containerized environments
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-19 08:53:02 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Erik M Jacobs 2015-04-06 18:20:29 UTC
Description of problem:
The openldap-servers package uses a postscript which leverages the "find" command. However, "findutils" (the package that provides it) is not a dependency of the RPM.

Therefore, on a Docker EL7 instance when trying to use openldap-servers, you will find that the configs are not generated in %post because the find command was not found and exited unsuccessfully. This also does not seem to generate an error when installing the RPM.

How reproducible:
100%

Steps to Reproduce:
1. Start with a Docker el7 container
2. install openldap-servers

Actual results:
config is not properly generated in /etc/openldap/slapd.d

Expected results:
config should be generated

Additional info:

Comment 2 Jan Synacek 2015-04-07 13:03:20 UTC
Yes, that is because findutils are part of the base installation (on Fedora and on RHEL). Trying to 'yum remove' findutils completely wrecks the whole RHEL-7 installation.

I'd say that your container is broken anyway without findutils.

Comment 3 Erik M Jacobs 2015-04-07 13:32:12 UTC
If by "my container" you mean the RHEL7 container from registry.access.redhat.com then I suppose you are correct.

While it may be part of the *base* installation on RHEL, the EL7 Docker image does not use "base".

None of that has anything to do with the fact that:

1) The %post script for this package doesn't fail properly in the absence of findutils
2) The package doesn't properly declare all of its dependencies

So which is it? Is your package broken because it doesn't properly fail and doesn't declare all of its dependencies, or is the Red Hat provided Docker image "broken" because it works fine but doesn't support your package?

Comment 4 Harald Hoyer 2015-04-09 09:58:01 UTC
(In reply to Jan Synacek from comment #2)
> Yes, that is because findutils are part of the base installation (on Fedora
> and on RHEL). Trying to 'yum remove' findutils completely wrecks the whole
> RHEL-7 installation.
> 
> I'd say that your container is broken anyway without findutils.

well, I can remove findutils just fine and have a working minimal system.

reopening

Comment 10 errata-xmlrpc 2015-11-19 08:53:02 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2131.html