Bug 696685

Summary: [RFE] We need an API to retrieve all repos with sync status
Product: [Retired] Pulp Reporter: Jay Dobies <jason.dobies>
Component: async/tasksAssignee: pulp-bugs
Status: CLOSED NOTABUG QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: medium    
Version: MasterCC: mhrivnak, skarmark
Target Milestone: ---Keywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-26 20:38:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jay Dobies 2011-04-14 15:55:50 UTC
Currently, if I want to show a list of all repos, schedules, and their current sync status, it requires a lot of round-tripping.

1 - call to retrieve the repo list
n - for each repo, call to get repo to get scheduling info
n - for each repo, call to get the list of all tasks on the given repo

Even on a local server with only 4 repos, the cost of these calls is noticable. IMO, this sort of view is pretty integral to using/monitoring Pulp and should be supported in a single API call.

Comment 1 Jay Dobies 2012-11-16 14:30:46 UTC
Jason - I think this is possible with the tagging in v2, if I were to do a search for just sync operations and then resolve it against the list of total repos. But there might be an easier way. We'll need this for RHUI. Can you comment if you think this need is reasonably met or if we need to do more work in this area?

Comment 2 Michael Hrivnak 2013-09-26 20:38:14 UTC
This request is very old, and this does not seem to be a problem at this point. Please re-open if you believe there is work to be done on this.