Cannot import nova.db.sqlalchemy.models

Bug #655699 reported by Chmouel Boudjnah
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Invalid
Undecided
Unassigned

Bug Description

I am following up from bug #654584 as advised by soren I am launching the auth server with :

python /usr/bin/nova-api --flagfile=/etc/nova/nova-api.conf --nodaemonize --FAKE_subdomain=ec2 --verbose start

which does not show me the 404 not found anymore but I am getting different error now :

[.....]

  File "/usr/lib/pymodules/python2.6/nova/api/ec2/__init__.py", line 75, in __call__
    req.path)
  File "/usr/lib/pymodules/python2.6/nova/auth/manager.py", line 261, in authenticate
    user = self.get_user_from_access_key(access_key)
  File "/usr/lib/pymodules/python2.6/nova/auth/manager.py", line 581, in get_user_from_access_key
    user_dict = drv.get_user_from_access_key(access_key)
  File "/usr/lib/pymodules/python2.6/nova/auth/dbdriver.py", line 53, in get_user_from_access_key
    return self._db_user_to_auth_user(db.user_get_by_access_key({}, access))
  File "/usr/lib/pymodules/python2.6/nova/db/api.py", line 585, in user_get_by_access_key
    return IMPL.user_get_by_access_key(context, access_key)
  File "/usr/lib/pymodules/python2.6/nova/utils.py", line 203, in __getattr__
    backend = self.__get_backend()
  File "/usr/lib/pymodules/python2.6/nova/utils.py", line 198, in __get_backend
    self.__backend = __import__(name, None, None, fromlist)
  File "/usr/lib/pymodules/python2.6/nova/db/sqlalchemy/__init__.py", line 22, in <module>
    from nova.db.sqlalchemy import models
ImportError: cannot import name models

The full log is here :

http://is.gd/fNPB9

The command is :

euca-register mybucket/vmlinuz-2.6.32-23-server.manifest.xml

Let me know if you need more information.

Chmouel.

Revision history for this message
Chmouel Boudjnah (chmouel) wrote :

I am launching nova-api as user and not as root so nova.db.sqlalchemy.api could not read the sqlite database from user nova and was failing on import...

Changed in nova:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.