Generic variable support for projects
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
craton |
Fix Released
|
Critical
|
Thomas Maddox |
Bug Description
To support completion of bug #1648626, which mixes in variables with
projects, we need to resolve the following, as reported in
https:/
1) Removing the RBAC stuff in favor of consuming generic variables
(which doesn't support the RBAC lite that was used for Projects),
caused oslo_db's generic multi-tenancy to be evaluated, which blows up
because the Project table doesn't have 'project_id'.
2) LOG = ... was missing from variables.py. This is used by the
craton.api.v1.base module to introspect the variables module and
execute with its logger.
(Interestingly there's a recent patch proposed
https:/
for other modules, causing some tests to blow up. Maybe we can add a
some annotation stating what the LOG module-level variable is used
for?)
The problem can be readily reproduced by doing a query like so:
$ curl http://
This results in
{
"message": "Unknown Error",
"status": 500
}
A related query appears to be causing a similar error:
$ curl http://
A server error occurred. Please contact the administrator.
Note no JSON error response in this case however! See bug #1665015
Changed in craton: | |
milestone: | none → v0.1.0 |
#2 was solved in https:/ /review. openstack. org/#/c/ 427777/