Bug 1041794

Summary: [RFE][glance]: Glance DB refactoring
Product: Red Hat OpenStack Reporter: RHOS Integration <rhos-integ>
Component: RFEsAssignee: RHOS Maint <rhos-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: markmc, yeylon
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://blueprints.launchpad.net/glance/+spec/glance-db-refactoring
Whiteboard: upstream_milestone_none upstream_status_unknown upstream_definition_new
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-03-19 17:28:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description RHOS Integration 2013-12-12 19:21:09 UTC
Cloned from launchpad blueprint https://blueprints.launchpad.net/glance/+spec/glance-db-refactoring.

Description:

Before we support more backend db. It's necessary to refactor to avoid replicating current faults to another potential new backends. Below is some items we can improve based on the discussion markwash and me.
1.  Remove Context to avoid stamp coupling.
2.  Expecting the db api to do business logic (like who can see what images)
3.  Using filter = {…} which is hard to use, makes monster functions, and doesn't cover all the cases we need, it should be replaced
4.  The interface is just silly, probably shouldn't be a module full of functions, rather something more OO, similar to the Repo and Models

Specification URL (additional information):

None