[katello-devel] New repoid format in Pulp

Justin Sherrill jsherril at redhat.com
Fri Feb 3 15:24:26 UTC 2012


On 02/03/2012 09:04 AM, Ivan Nečas wrote:
> On 02/03/2012 03:00 PM, Justin Sherrill wrote:
>> On 02/03/2012 08:22 AM, Lukas Zapletal wrote:
>>> On Fri, Feb 03, 2012 at 07:53:10AM -0500, Bryan Kearney wrote:
>>>> Unique across the org I assume?
>>>>
>>> Yes, it contains org and env and label. This is unique.
>>>
>>> For custom content we create label in the format of
>>> "reponame-product_id" which is also unique.
>>>
>> Is there a reason why we don't just use a random hash/or id number? 
>> Just curious :)
> It get's into redhat.repo, so the user actually sees it. You can also 
> see it when calling
>
> yum info {package}
>
> in "From repo" attribute. So this helps him fast identification of the 
> source.
>
> -- Ivan

Not sure that my previous email went through...

Referring to the pulp' repo id here:

Ah that makes sense. Its just annoying because the pulp repo ids cannot 
change right? So if the name of anything that the id is composed of 
changes, the id will still have that old name. Today you can rename 
environments, but you can't rename repos.

Would the following cause an issue?

1. create environment Dev
2. promote repo X to dev
3. rename environment Dev to Foo
4. Create a new environment called Dev after Foo
5. promote repo X to Dev

I'm guessing the above would fail at step 5 because the ID would have 
already been taken in pulp correct? If we ever allow renaming of a 
repository the same issue would occur right?

-Justin


>>
>> -Justin
>>
>> _______________________________________________
>> katello-devel mailing list
>> katello-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/katello-devel
>
>




More information about the katello-devel mailing list