Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1483966

Summary: installing rh-mongodb34 does not pull the necessary packages
Product: Red Hat Software Collections Reporter: Marek Skalický <mskalick>
Component: rh-mongodb34Assignee: Marek Skalický <mskalick>
Status: CLOSED ERRATA QA Contact: Vaclav Danek <vdanek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-mongodb34CC: databases-maint, hhorak, kanderso, mskalick, neugens, trepik, vdanek
Target Milestone: rc   
Target Release: 3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rh-mongodb34-3.0-13.el7, rh-mongodb34-3.0-13.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1478882 Environment:
Last Closed: 2017-10-24 09:55:18 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 Marek Skalický 2017-08-22 11:58:56 UTC
+++ This bug was initially created as a clone of Bug #1478882 +++

Description of problem:

I tried to install the rh-mongodb32 collection, after enabling rhel-workstation-rhscl-7-rpms, but the collection only carries a minimal set of packages, which doesn't give me a fully functional mongo (i.e. the mongo binary is missing, but mongod is present):

 rh-mongodb32-boost-chrono
 rh-mongodb32-boost-filesystem
 rh-mongodb32-boost-program-options
 rh-mongodb32-boost-regex
 rh-mongodb32-boost-system
 rh-mongodb32-boost-thread
 rh-mongodb32-libstemmer
 rh-mongodb32-mongodb-server
 rh-mongodb32-mozjs38
 rh-mongodb32-runtime
 rh-mongodb32-yaml-cpp
 
I tried this on a RHEL 7.4 Workstation, fresh install from DVD. I'm not sure if this is intentional though, according to this guide:

https://www.softwarecollections.org/en/scls/rhscl/rh-mongodb32/

I should be able to just install rh-mongodb32 and then run "mongo". It appears that the rh-mongodb32 should at least install also  rh-mongodb32-mongodb and perhaps the rh-mongodb32-mongo-tools, or in alternative, the guide on the website should be changed to reflect that we need to manually install those packages.

Version-Release number of selected component (if applicable):
rh-mongodb32 on RHEL 7.4.

How reproducible:

Always, at least on a fresh install.

Steps to Reproduce:
1. sudo yum install rh-mongodb32
2  $ scl enable rh-mongodb32 bash
3. $ mongo

Actual results:

bash: mongo: command not found...

Expected results:

mongo should start.

Additional info:

--- Additional comment from Red Hat Bugzilla Rules Engine on 2017-08-08 01:32:27 EDT ---

Since this bug report was entered in Red Hat Bugzilla, the release flag has been set to ? to ensure that it is properly evaluated for this release.

--- Additional comment from Honza Horak on 2017-08-08 01:40:58 EDT ---

This was designed deliberately this way, because there may be cases when user only wants the server package be installed (when accessing the database from another node and when no unneeded software should be installed due to saving disk space and avoid potential security risk).

We don't have soft dependencies in RHEL-7 which would make mongo binary installed by default and still allow users to uninstall it. On the other hand having normal dependency in the meta package, users would still be able to install only the server (they would install just the rh-mongodb32-mongodb-server package by name, without installing rh-mongodb32 meta package). So this way we would get to sane default and still allow installing it.

--- Additional comment from Mario Torre on 2017-08-08 05:45:23 EDT ---

(In reply to Honza Horak from comment #2)
> This was designed deliberately this way, because there may be cases when
> user only wants the server package be installed (when accessing the database
> from another node and when no unneeded software should be installed due to
> saving disk space and avoid potential security risk).
> 
> We don't have soft dependencies in RHEL-7 which would make mongo binary
> installed by default and still allow users to uninstall it. On the other
> hand having normal dependency in the meta package, users would still be able
> to install only the server (they would install just the
> rh-mongodb32-mongodb-server package by name, without installing rh-mongodb32
> meta package). So this way we would get to sane default and still allow
> installing it.

Yes, that makes totally sense. The website should probably be updated to reflect that though, since the instructions are confusing otherwise. It doesn't seem to be a wiki or I would do it myself.

--- Additional comment from Mario Torre on 2017-08-08 05:46:53 EDT ---

Btw, I don't know why I marked the bug private, that was a mistake on my part, can we set it public and visible to all?

--- Additional comment from Marek Skalický on 2017-08-11 01:27:13 EDT ---

OK. I've set it to public.

Comment 1 Marek Skalický 2017-08-22 11:59:50 UTC
Same apply to rh-mongodb34 - to install rh-mongodb34-mongodb and rh-mognodb34-mongo-tools by default too.

Comment 5 errata-xmlrpc 2017-10-24 09:55:18 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://access.redhat.com/errata/RHEA-2017:3027