foreman-debug collects just few mongo task statuses
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
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"
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):
Steps to Reproduce:
2. unpack collected f-d
3. check mongo-task_status
mongo-task_status has just 20 entries and the file ends with:
Type "it" for more
mongo-task_status to have all entries
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?
#8 Updated by Amit Upadhye almost 2 years ago
- % Done changed from 0 to 100
- Status changed from Ready For Testing to Closed
Applied in changeset katello-packaging|135278990552240aba43745d8d96a19a923a6daf.