← Back to team overview

openstack team mailing list archive

Does work glance-manage?

 

I am trying to

glance-manage db_sync

# glance-manage db_sync
Traceback (most recent call last):
  File "/usr/bin/glance-manage", line 144, in <module>
    main()
  File "/usr/bin/glance-manage", line 140, in main
    dispatch_cmd(options, args)
  File "/usr/bin/glance-manage", line 112, in dispatch_cmd
    cmd_func(options, args)
  File "/usr/bin/glance-manage", line 100, in do_db_sync
    glance.registry.db.migration.db_sync(options, version=db_version)
  File "/usr/lib/python2.7/site-packages/glance/registry/db/migration.py",
line 119, in db_sync
    _version_control(options)
  File "/usr/lib/python2.7/site-packages/glance/registry/db/migration.py",
line 108, in _version_control
    return versioning_api.version_control(sql_connection, repo_path)
  File "<string>", line 2, in version_control
  File
"/usr/lib/python2.7/site-packages/migrate/versioning/util/__init__.py", line
160, in with_engine
    return f(*a, **kw)
  File "/usr/lib/python2.7/site-packages/migrate/versioning/api.py", line
248, in version_control
    ControlledSchema.create(engine, repository, version)
  File "/usr/lib/python2.7/site-packages/migrate/versioning/schema.py", line
130, in create
    table = cls._create_table_version(engine, repository, version)
  File "/usr/lib/python2.7/site-packages/migrate/versioning/schema.py", line
171, in _create_table_version
    if not table.exists():
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/schema.py", line 466,
in exists
    self.name, schema=self.schema)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line
1765, in run_callable
    conn = self.contextual_connect()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/base.py", line
1829, in contextual_connect
    self.pool.connect(),
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 191, in
connect
    agent = _ConnectionFairy(self)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 369, in
__init__
    rec = self._connection_record = pool.get()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 213, in
get
    return self.do_get()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 600, in
do_get
    c = self.create_connection()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 147, in
create_connection
    return _ConnectionRecord(self)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 253, in
__init__
    self.connection = self.__connect()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/pool.py", line 319, in
__connect
    connection = self.__pool._creator()
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/strategies.py",
line 82, in connect
    return dialect.connect(*cargs, **cparams)
  File "/usr/lib64/python2.7/site-packages/sqlalchemy/engine/default.py",
line 249, in connect
    return self.dbapi.connect(*cargs, **cparams)
sqlalchemy.exc.OperationalError: (OperationalError) unable to open database
file None None


Try to
# glance-manage db_version
ERROR: database 'sqlite:///var/lib/glance/glance.sqlite' is not under
migration control

but in glance-registry.conf:
sql_connection = sqlite:////var/lib/glance/glance.sqlite


When I try to add new image all works fine. I use diablo release packages
from
http://koji.fedoraproject.org/koji/buildinfo?buildID=265640