Project

Profile

Help

Story #941

closed

As a user, I can list tasks by resource name

Added by Ben.Stanley almost 9 years ago. Updated about 5 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

As a maintainer of a large pulp repository, I need to be able to monitor what tasks are using a specific resource.

And then you want to know what task is using that resource:

pulp-admin tasks list --using=<repo-name>

Make sure you can use --using at the same time as --state provided by #851.


Related issues

Related to Pulp - Story #851: As a user, I can see tasks in particular statesCLOSED - CURRENTRELEASEipanova@redhat.com

Actions
Actions #1

Updated by Ben.Stanley almost 9 years ago

Story #851 is very similar to this.

Actions #2

Updated by bmbouter almost 9 years ago

  • Related to Story #851: As a user, I can see tasks in particular states added
Actions #3

Updated by bmbouter almost 9 years ago

  • Tracker changed from Issue to Story
  • Subject changed from As a user, I can list tasks by filters (e.g. Running) to As a user, I can list tasks by resource name
  • Description updated (diff)

Switching to a story because it's a feature request.

Also I removed the filtering-by-state portions which are already implemented with #851.

pulp-admin tasks list --state= Running

I rewrote the story to only include the functionality that current is not available.

pulp-admin tasks list --using=<repo-name>

Also I imagine this use case

pulp-admin tasks list --waiting=<repo-name>

Would be available by using the --using along with --state which is provided by #851.

Regarding the issue that the tasks list in Pulp 2.5.1 fails to mention the resources that a task is using is printed, but I have never seen anything in it. That should be filed as a separate bug since it's not part of this feature request.

Actions #4

Updated by bmbouter almost 9 years ago

  • Description updated (diff)

Removing the workaround originally suggested by Ben.Stanley since it's not part of the story directly.

The only way to perform this kind of filtering at the moment is to use Perl multi-line regular 
expressions to extract the relevant entries from the tasks list --details output [0], which is really awkward.

[0] [[https://www.redhat.com/archives/pulp-list/2015-May/msg00001.html]]

I'll note that the Task search API should provide all of this.

Actions #5

Updated by bmbouter about 5 years ago

  • Status changed from NEW to CLOSED - WONTFIX
Actions #6

Updated by bmbouter about 5 years ago

Pulp 2 is approaching maintenance mode, and this Pulp 2 ticket is not being actively worked on. As such, it is being closed as WONTFIX. Pulp 2 is still accepting contributions though, so if you want to contribute a fix for this ticket, please reopen or comment on it. If you don't have permissions to reopen this ticket, or you want to discuss an issue, please reach out via the developer mailing list.

Actions #7

Updated by bmbouter about 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF