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?
Per 6.3 planning, moving out non acked bugs to the backlog
Created redmine issue http://projects.theforeman.org/issues/15967 from this bug
Upstream bug component is Content Management
Upstream bug component is Infrastructure
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/15967 has been resolved.
Satellite 6.4 foreman-debug mongo-task_status output: COMMAND> mongo pulp_database --eval "DBQuery.shellBatchSize = 200;; db.task_status.find().sort({finish_time: -1}).pretty().shellPrint()" /usr/sbin/foreman-debug: line 79: mongo: command not found
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.
Ok cool, confirmed and verified in Satellite 6.4
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