Bug 1583233 - mongo client not installed by satellite installer
Summary: mongo client not installed by satellite installer
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Installation
Version: 6.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.4.0
Assignee: Chris Roberts
QA Contact: Roman Plevka
URL: http://projects.theforeman.org/issues...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-28 14:05 UTC by Roman Plevka
Modified: 2019-11-05 23:21 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:25:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 24241 0 Normal Resolved New installs are missing mongo client and foreman-debug fails 2020-05-13 08:58:27 UTC
Red Hat Bugzilla 1329980 0 medium CLOSED foreman-debug collects just few mongo task statuses 2021-02-22 00:41:40 UTC

Internal Links: 1329980

Description Roman Plevka 2018-05-28 14:05:51 UTC
Description of problem:
foreman-debug tarball contains a `pulp_running_tasks` file, however it only contains the following:

<pre>
COMMAND> mongo pulp_database /var/tmp/foreman-debug-auxtmp-3lIgY/tmp.k3Z4fmNeaD/pulp_running_tasks.js

/usr/sbin/foreman-debug: line 79: mongo: command not found
</pre>

This was working fine in 6.4.0-1 and has failed in 6.4.0-4.

Version-Release number of selected component (if applicable):
satellite 6.4.0-4


Steps to Reproduce:
1. get satellite 6.4.0 installed per installation instructions
2. generate a foreman-debug tarball using foreman-debug utility
3. check the pulp_running_tasks file from generated tarball

Actual results:
mongo: command not found

Expected results:
the mongo client is present and the file properly shows the running pulp tasks.

Comment 2 Chris Brown 2018-06-18 15:10:09 UTC
Got the same error mentioned above. Ran the following commands on a Satellite 6.4 machine:

# foreman-debug 
# tar xf /var/tmp/foreman-debug-qqurl.tar.xz 
# cat foreman-debug-qqurl/pulp-running_tasks
OMMAND> mongo pulp_database /var/tmp/foreman-debug-auxtmp-n2Kbn/tmp.gxjuzj8dnm/pulp_running_tasks.js

/usr/sbin/foreman-debug: line 79: mongo: command not found

Comment 3 Roman Plevka 2018-07-11 08:56:00 UTC
FAILED QA
for 6.4.0-11
# rpm -q foreman-debug
foreman-debug-1.18.0-0.6.RC2.el7sat.noarch


still the same issue.

Comment 4 Chris Roberts 2018-07-12 20:47:21 UTC
With https://github.com/Katello/katello-installer/pull/658

I am able to see that MongoDB can be called:

[root@sat-6-4-qa-rhel7 foreman-debug-G90DT]# cat pulp-running_tasks 
COMMAND> mongo pulp_database /var/tmp/foreman-debug-auxtmp-gIYdP/tmp.sIlz2MoP4J/pulp_running_tasks.js

MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
MongoDB server version: 3.4.9

Comment 5 Roman Plevka 2018-07-17 09:26:03 UTC
VERIFIED
on sat6.4.0-12

the mongo command cna now be successfully called again:

<pre>
$ cat ~/work/analysis/6.4.0-12/t3/foreman-debug/pulp-running_tasks 
COMMAND> mongo pulp_database /var/tmp/foreman-debug-auxtmp-010bE/tmp.A1dKYv1eFR/pulp_running_tasks.js

MongoDB shell version v3.4.9
connecting to: mongodb://127.0.0.1:27017/pulp_database
MongoDB server version: 3.4.9
{
...
</pre>

Comment 6 Bryan Kearney 2018-10-16 19:25:35 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/RHSA-2018:2927


Note You need to log in before you can comment on or make changes to this bug.