Project

General

Profile

Actions

Bug #15967

closed

foreman-debug collects just few mongo task statuses

Added by Zach Huntington-Meath over 7 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
Fixed in Releases:
Found in Releases:

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?

Actions

Also available in: Atom PDF