AttributeError in Quota API
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
Gabriel Hurley |
Bug Description
There seems to be an import problem in nova.db that causes an AttributeError. Details are as follows:
request:
REQ: curl -i http://
n-api output:
TRACE nova.api.openstack File "/opt/stack/
TRACE nova.api.openstack db.sqlalchemy.
TRACE nova.api.openstack AttributeError: 'module' object has no attribute 'sqlalchemy'
The offending line is here:
https:/
Trying this in a python shell you get the same AttributeError by doing "from nova import db; db.sqlalchemy", whereas this works perfectly:
>>> from nova.db.sqlalchemy import api
>>> api.authorize_
<function authorize_
Looks like there's a bad __init__ or a circular import problem somewhere preventing that import from working as expected.
Changed in nova: | |
importance: | Undecided → Medium |
Changed in nova: | |
milestone: | none → essex-rc3 |
tags: | removed: essex-rc-potential |
Changed in nova: | |
milestone: | essex-rc3 → 2012.1 |
(4:51:20 PM) vishy: gabrielhurley: in no case should code outside the db be calling that
(4:51:46 PM) vishy: gabrielhurley: and if they were it should be a from nova.db.sqlalchemy import api