Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
foreman-debug collects mongo collection task_status (worth used for investigating pulp task issues). BUT the command in
/usr/share/foreman/script/foreman-debug.d/katello-debug.sh
collects only 20 rows of that table/collection, due to the default (non-clever) limitation of mongo. Please collect _all_ the rows, by replacing:
add_cmd "mongo pulp_database --eval \"db.task_status.find().pretty().shellPrint()\"" "mongo-task_status"
by:
add_cmd "mongo pulp_database --eval \"DBQuery.shellBatchSize = 100000;; db.task_status.find().pretty().shellPrint()\"" "mongo-task_status"
(i.e. add "DBQuery.shellBatchSize = 100000;" there)
Version-Release number of selected component (if applicable):
katello-debug-2.2.0.19-1.el7sat.noarch
How reproducible:
100%
Steps to Reproduce:
1. foreman-debug
2. unpack collected f-d
3. check mongo-task_status
Actual results:
mongo-task_status has just 20 entries and the file ends with:
Type "it" for more
Expected results:
mongo-task_status to have all entries
Additional info:
Since the table/collection might be quite big and collecting it might not be necessary, isn't it better to collect e.g. all tasks from past one week or so? Or additionally older not finished tasks?
Chris, this is expected. When you install the command, it will work.
We cannot make mongo CLI a dependency of foreman-debug. If you really think the output must be always there, then file new BZ aganst Packaging to add this as Katello package RPM dependency.
Please confirm first that it works fine when the command is present. I think it is mongo-client RPM package, not sure.
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