[katello-devel] Agent Reporting Enabled Repositories

Jeff Ortel jortel at redhat.com
Thu Jan 19 14:22:31 UTC 2012



On 01/19/2012 02:37 AM, Lukas Zapletal wrote:
> On Wed, Jan 18, 2012 at 01:18:22PM -0600, Jeff Ortel wrote:
>> I assume the katello REST call will be something like this?
>>
>> url: /bla/bla/consumer/<id>/repos/enabled
>> payload:
>>   [<repoid>,...]
>>
>> Please let me know when the API is designed.
>>
>> Comments?
>>
>
> So the API should enable all listed repos and disable all the others,
> right?
>

Sort of.  When using pulp with katello, the enabled repos reported by the (katello) agent 
are really used to manage the consumer/repo association which we call "bind".  The 
"repoid" list on (pulp) consumer objects is a list of these associations.  But you're 
basically correct.  You need to bind (in pulp) any repos reported as enabled if they don't 
already appear in the "repoid" list on the queried (pulp) consumer object.  Conversely, 
you need to unbind (in pulp) any repos that appear in the (pulp) consumer "repoid" list 
that do not appear in the reported list of enabled repos.

Make sense?




More information about the katello-devel mailing list