[katello-devel] New repoid format in Pulp

Lukas Zapletal lzap at redhat.com
Mon Feb 6 16:49:12 UTC 2012


So I pushed implementation of the binding stuff WITHOUT this change. I
did not touch the format of repoids.

Having said that, I vote for changing repoids to katello database ids
(numbers 1, 2, 3, 4...). But that is another story.

LZ

On Fri, Feb 03, 2012 at 12:17:07PM +0100, Lukas Zapletal wrote:
> Hello,
> 
> I am going to change repoid format in Pulp. Currently it has this form:
> 
> OrgName_EnvName_ProductName_RepoName_arch_version
> 
> I am going to change this to the following format:
> 
> OrgName_EnvName_Label_arch_version
> 
> By "Label" I mean label in Candlepin, this value is used as yum
> repositoryid (the id in the [square_brackets] in the repo file). It is
> unique and nicely formatted, I mean instead of "Red Hat Enterprise
> Linux" something like "rhel6-server".
> 
> For Library products the repoid will be as short as:
> 
> ACME_Corporation_rhel6-server_6Server_1
> 
> The side effect is it should be shorter, but the primary reason is our
> new binding/unbinding feature. Yum plugin will be sending list of repos
> a consumer is bound to. And to process this in Katello we need to be
> able to find the repoid in Pulp. The only way would be to query
> Candlepin and find the product, but the only query parameter could be
> the label. Candlepin does not have API call like this one.
> 
> We (me and Ivan) find this format nicer plus it saves this additional
> API call. If there are no objections, I will push the change along with
> my binding branch. It will need full reset probably, will announce.
> 
> -- 
> Later,
> 
>  Lukas Zapletal | E32E400A
>  RHN Satellite Engineering
>  Red Hat Czech s.r.o. Brno
> 
> _______________________________________________
> katello-devel mailing list
> katello-devel at redhat.com
> https://www.redhat.com/mailman/listinfo/katello-devel

-- 
Later,

 Lukas Zapletal | E32E400A
 RHN Satellite Engineering
 Red Hat Czech s.r.o. Brno




More information about the katello-devel mailing list