Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The output of of pulp-admin tasks lists contains many successful runs of the past days. In many cases the engineer is only interrested in the current running or waiting tasks. And in troubleshooting for Failed tasks. And to limit the output also a filter on the last X day(s).
The current command always retruns everything resulting in 1+MB text output
# pulp-admin tasks list > pulp.tasks.list.`date '+%Y%m%d%H%M'`
# ls -l pulp.tasks.list.*
-rw-r--r-- 1 root root 1301224 Aug 4 13:54 pulp.tasks.list.201508041354
# grep State: $(ls -1 pulp.tasks.list.* | tail -n1) |sort |uniq -c
2 State: Running
3516 State: Successful
2 State: Waiting
Version-Release number of selected component (if applicable):
How reproducible:
Steps to Reproduce:
1.
Have system with load running for at least a week including 50 RedHat repo syncs for 7 days.
3. List pulp tasks
Actual results:
All tasks returned for 7 Days
Expected results:
Able to filter State:
- Waiting, Running, Failed, Successful
Able to limit timerange:
- E.g. Last 24h, last 4h
Additional info:
For anyone that may come across this bugzilla and are unfamiliar with the pulp-admin-client, you may find the following KCS useful:
https://access.redhat.com/solutions/1295653
Comment 6pulp-infra@redhat.com
2015-10-26 17:55:44 UTC
The Pulp upstream bug status is at ON_QA. Updating the external tracker on this bug.
Comment 7pulp-infra@redhat.com
2015-10-26 17:55:48 UTC
The Pulp upstream bug priority is at Normal. Updating the external tracker on this bug.
VERIFIED.
@satellite-6.2.0-21.1.el7sat.noarch
pulp-admin-client-2.8.3.3-1.el7sat.noarch
# pulp-admin tasks list -h
Command: list
Description: lists tasks queued (waiting) or running on the server
Available Arguments:
--all, -a - if specified, all tasks in all states are shown
--state, -s - comma-separated list of tasks states desired to be shown.
Example: "running,waiting,canceled,successful,failed". Do not
include spaces.
>>> new options to filter the output were added
# pulp-admin tasks list --all |sort |uniq -c|grep State:
111 State: Successful
1 State: Waiting
# pulp-admin tasks list --state waiting |sort |uniq -c|grep State:
1 State: Waiting
# pulp-admin tasks list --state successful |sort |uniq -c|grep State:
111 State: Successful
# pulp-admin tasks list --state waiting,successful |sort |uniq -c|grep State:
111 State: Successful
1 State: Waiting
# pulp-admin tasks list |sort |uniq -c|grep State:
1 State: Waiting
>>> by default it lists waiting and running tasks only
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/RHBA-2016:1501
Description of problem: The output of of pulp-admin tasks lists contains many successful runs of the past days. In many cases the engineer is only interrested in the current running or waiting tasks. And in troubleshooting for Failed tasks. And to limit the output also a filter on the last X day(s). The current command always retruns everything resulting in 1+MB text output # pulp-admin tasks list > pulp.tasks.list.`date '+%Y%m%d%H%M'` # ls -l pulp.tasks.list.* -rw-r--r-- 1 root root 1301224 Aug 4 13:54 pulp.tasks.list.201508041354 # grep State: $(ls -1 pulp.tasks.list.* | tail -n1) |sort |uniq -c 2 State: Running 3516 State: Successful 2 State: Waiting Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. Have system with load running for at least a week including 50 RedHat repo syncs for 7 days. 3. List pulp tasks Actual results: All tasks returned for 7 Days Expected results: Able to filter State: - Waiting, Running, Failed, Successful Able to limit timerange: - E.g. Last 24h, last 4h Additional info: