There are currently 3 different blocking issues in stable/liberty due
to library releases: webob 1.5, oslo.db 3.0.0, and
oslo.versionedobjects 0.11.0. This is a squashed fix for all of them
as none can land without the others.
Issue #1 - oslo.db
Add testresources used by oslo.db fixture
If we use oslo.db fixtures, we'll need the package or
the next version of oslo.db release will break us.
(Cherry-picked from 4bcc264878)
Closes-Bug: #1503501
Issue #2 - oslo.versionedobjects
Drop unused obj_to_primitive() override
This was a band-aid override until o.vo gained the obj_relationships fix
that this method overrides. That has been in place since o.vo 0.8.0, which
means this is long since no longer necessary (and is actually blocking our
ability to absorb bug fixes to this code in o.vo). Further, we no longer
use this directly because we're doing backports based on version manifests,
which means we no longer consult child_versions _or_ obj_relationships.
(cherry picked from commit 142f1d9cc4)
Issue #3 - webob
Default ConvertedException code to 500
webob 1.5.0 released on 10/11 has change f6c749011 which
strictly enforces status codes in exceptions, and 0 is not
a valid status code so tests fail.
Change the default to 500 to match the default in the parent
class in webob.
Closes-Bug: #1505153
(cherry picked from commit 10438c0fc3)
Change-Id: I1e06e77308a7dd23209124f0807d61fb52470188