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 #1

Updated by Dominic Cleal over 7 years ago

  • Project changed from Foreman to Katello
  • Category deleted (foreman-debug)
Actions #2

Updated by Lukas Zapletal over 7 years ago

  • Assignee deleted (Lukas Zapletal)

I have no idea what these tasks are for. Someone from Katello please do the patch.

Actions #3

Updated by Justin Sherrill over 7 years ago

ideally we would just collect a weeks worth or something, not all

Actions #4

Updated by Justin Sherrill over 7 years ago

  • Category set to Tooling
  • translation missing: en.field_release set to 114
  • Difficulty set to easy
Actions #5

Updated by Eric Helms over 7 years ago

  • Category changed from Tooling to 173
Actions #6

Updated by The Foreman Bot almost 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/478 added
Actions #7

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/Katello/katello-packaging/pull/554 added
Actions #8

Updated by Amit Upadhye over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #9

Updated by Jonathon Turel almost 4 years ago

  • Target version changed from Katello Backlog to Katello Recycle Bin
Actions

Also available in: Atom PDF