Database tables not created in glance.registry.db.api.register_models()

Bug #712575 reported by Jay Pipes
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
Critical
Jay Pipes

Bug Description

jpipes@serialcoder:~/repos/glance/trunk$ ./bin/glance-registry --sql-connection=sqlite:///glance.sqlite --daemonize
jpipes@serialcoder:~/repos/glance/trunk$ sqlite3 glance.sqlite
SQLite version 3.7.2
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .tables

Oops.

Problem is this in glance.registry.db.api:

BASE = declarative_base()

Changing that to:

BASE = models.BASE

fixes it.

Related branches

Revision history for this message
Dan Prince (dan-prince) wrote :

After observing the same behavior I applied the same fix and it works for me too.

Changed in glance:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in glance:
milestone: cactus-2011-02-21 → 2011.2
status: Fix Committed → Fix Released
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.