Use versioned objects instead of sqlalchemy references

Registered by aeva black

The db/api layer currently passes references to sqlalchemy result sets back, and these are used throughout the code. Nova went through considerable "growing pains" to get away from doing this, so we should learn from that and not repeat it.

Instead, let's use the versioned objects that Nova is moving to!
https://review.openstack.org/#/c/27456

This may get factored into Oslo at some point, but we can start using it before then.

Blueprint information

Status:
Complete
Approver:
aeva black
Priority:
Essential
Drafter:
None
Direction:
Approved
Assignee:
Roman Prykhodchenko
Definition:
Approved
Series goal:
Accepted for havana
Implementation:
Implemented
Milestone target:
milestone icon havana-1
Started by
Roman Prykhodchenko
Completed by
Roman Prykhodchenko

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/db-objects,n,z

Addressed by: https://review.openstack.org/31810
    Port base object from Nova.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.