Cleanup handling of SQLAlchemy session in DB access layer
1. Use common session handling code already implemented in Oslo (DONE)
2. Don't pass session instances to public DB methods (DONE)
3. Use explicit transactions only when necessary (DONE)
4. Fix incorrect usage of sessions throughout the DB-related code (DONE)
Blueprint information
- Status:
- Complete
- Approver:
- John Griffith
- Priority:
- Medium
- Drafter:
- Roman Podoliaka
- Direction:
- Approved
- Assignee:
- Roman Podoliaka
- Definition:
- Approved
- Series goal:
- Accepted for havana
- Implementation:
-
Implemented
- Milestone target:
-
2013.2
- Started by
- Thierry Carrez
- Completed by
- Roman Podoliaka
Related branches
Related bugs
Sprints
Whiteboard
Gerrit topic: https:/
Addressed by: https:/
Add common Oslo DB code to the source tree
Addressed by: https:/
Migrate to Oslo DB code
Gerrit topic: https:/
Addressed by: https:/
Move resource usage sync functions to db backend
Addressed by: https:/
WIP: remove session from public DB API methods
Gerrit topic: https:/
Addressed by: https:/
Improve DB API test coverage
Addressed by: https:/
Execute DB API methods in a single transaction
Addressed by: https:/
Fix volume_
Addressed by: https:/
Call get_session() only when necessary
Work Items
Dependency tree

* Blueprints in grey have been implemented.