Bug 761056

Summary: RFE: pulp-consumer should be able to report currently bound repos
Product: [Retired] Pulp Reporter: Bowe Strickland <bowe>
Component: user-experienceAssignee: pulp-bugs
Status: CLOSED WORKSFORME QA Contact: Preethi Thomas <pthomas>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: cduryee, rbarlow, 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: 2014-11-11 22:17:04 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 Bowe Strickland 2011-12-07 16:09:10 UTC
it's hard from the consumer to determine currently bound repos, making, for example, a puppet "unless => ..." clause difficult.  Info can be scraped from "yum repolist", but this not exacting.

I propose:

"pulp-consumer repo list --bound" which reports all bound repos, and

"pulp-consumer repo list --bound --repoid=the-repoid-in-question", 
which return 0 on success and non-zero on failure.


--b

Comment 1 Chris Duryee 2014-11-11 22:17:04 UTC
I think something like "pulp-consumer rpm repos --fields=name" will do the trick.

For example (on pulp 2.4.3):

$ pulp-consumer  rpm repos --fields=name       
+----------------------------------------------------------------------+
                              Repositories
+----------------------------------------------------------------------+

Id:           zoo


Marking BZ as closed/worksforme. If the above command doesn't work for you, feel free to re-open this bug or create a new one.