Bug #15967
closedforeman-debug collects just few mongo task statuses
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1329980
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?
Updated by Dominic Cleal over 8 years ago
- Project changed from Foreman to Katello
- Category deleted (
foreman-debug)
Updated by Lukas Zapletal over 8 years ago
- Assignee deleted (
Lukas Zapletal)
I have no idea what these tasks are for. Someone from Katello please do the patch.
Updated by Justin Sherrill over 8 years ago
ideally we would just collect a weeks worth or something, not all
Updated by Justin Sherrill over 8 years ago
- Category set to Tooling
- Translation missing: en.field_release set to 114
- Difficulty set to easy
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-packaging/pull/478 added
Updated by The Foreman Bot about 7 years ago
- Pull request https://github.com/Katello/katello-packaging/pull/554 added
Updated by Amit Upadhye about 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-packaging|135278990552240aba43745d8d96a19a923a6daf.
Updated by Jonathon Turel over 4 years ago
- Target version changed from Katello Backlog to Katello Recycle Bin