[katello-devel] New repoid format in Pulp

Todd Sanders tsanders at redhat.com
Thu Feb 9 21:04:08 UTC 2012


On 02/03/2012 06:17 AM, 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.
>

Will this result in spaces in the pulp repoid *if* the OrgName or 
EnvName has spaces in it?

-Todd




More information about the katello-devel mailing list