[katello-devel] Repo remodeled

Partha Aji paji at redhat.com
Sat Oct 22 00:40:06 UTC 2011


So after discussions with Mike and others I finally got the initial db based model of repositories working. The changes for these are in the repo-remodel branch. So idea is we are going to be treating Repo orchestration similar to that of the consumer (atleast on the pulp side). 
The change introduce the following models
1) Repository : holds the Repo ID, the repo names, things like black listing and env,product bindings the repo belongs to
2) EnvironmentProduct -> a mapping class containing an environment and a product. 

I initially started with binding  Product And Environment through Repository but then ran into issue when even the simplest Product.save required a repo created in pulp for it with the locker environment. Given the delicate nature of the orchestration I preferred keeping the orchestration part as close to the original as possible. 

Operations yet to be done
1) Promotion
2) Permissions


But at the present time, Product.create/product.repos(env) should work.

Partha




More information about the katello-devel mailing list