Remove use of ORM in resource_provider.py
The nova/objects/
context.
and non-ORM queries that look like this:
rp = sa.alias(_RP_TBL, name="rp")
sel = sa.select(
sel = sel.where(rp.c.name == rp_name)
return ctx.session.
The former query style tends to generate overly-verbose and sometimes inefficient SQL, especially when used with joined_load and other SQLAlchemy ORM tooling.
Make the resource_
Blueprint information
- Status:
- Complete
- Approver:
- Matt Riedemann
- Priority:
- Low
- Drafter:
- Jay Pipes
- Direction:
- Approved
- Assignee:
- Jay Pipes
- Definition:
- Approved
- Series goal:
- Accepted for queens
- Implementation:
-
Implemented
- Milestone target:
-
queens-1
- Started by
- Matt Riedemann
- Completed by
- Matt Riedemann
Related branches
Related bugs
Sprints
Whiteboard
Approved as a specless cleanup blueprint.
Gerrit topic: https:/
Addressed by: https:/
rp: de-ORM ResourceProvide
Addressed by: https:/
rp: Move RP._get|
Addressed by: https:/
rp: Remove RP.get_traits() method
Addressed by: https:/
rp: move RP._set_traits() to module scope
Addressed by: https:/
rp: remove CRUD operations on Inventory class
Addressed by: https:/
rp: streamline InventoryList.
Addressed by: https:/
rp: remove dead code in Allocation.
Addressed by: https:/
rp: remove ability to delete 1 allocation record
Addressed by: https:/
rp: fix up AllocList.
Addressed by: https:/
rp: rework AllocList.
Addressed by: https:/
rp: remove _HasAResourcePr
Addressed by: https:/
rp: break functions out of _set_traits()
Gerrit topic: https:/
Work Items
Dependency tree

* Blueprints in grey have been implemented.