GheRivero/debostack — Issue #3: Installing Glance bombs out
Author: Technologov
Created: 2012-02-29 16:39:46+00:00
State: open

Platform: Debian Wheezy/testing + DebOStack repo:
deb http://debostack.org/debian sid main

# apt-get dist-upgrade
...
Setting up glance-common (2012.1~e3+git73-g63f3af7-1) ...
Setting up glance-api (2012.1~e3+git73-g63f3af7-1) ...

Configuration file `/etc/glance/glance-api.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** glance-api.conf (Y/I/N/O/D/Z) [default=N] ? Y
Installing new version of config file /etc/glance/glance-api.conf ...
Starting OpenStack Image Service API: glance-api.
Setting up glance-registry (2012.1~e3+git73-g63f3af7-1) ...
dbconfig-common: writing config to /etc/dbconfig-common/glance-registry.conf

Creating config file /etc/dbconfig-common/glance-registry.conf with new version
dbconfig-common: flushing administrative password
Traceback (most recent call last):
File "/usr/bin/glance-manage", line 128, in
main()
File "/usr/bin/glance-manage", line 124, in main
dispatch_cmd(conf, args)
File "/usr/bin/glance-manage", line 99, in dispatch_cmd
cmd_func(conf, args)
File "/usr/bin/glance-manage", line 87, in do_db_sync
glance.registry.db.migration.db_sync(conf, version=db_version)
File "/usr/lib/python2.7/dist-packages/glance/registry/db/migration.py", line 119, in db_sync
_version_control(conf)
File "/usr/lib/python2.7/dist-packages/glance/registry/db/migration.py", line 108, in _version_control
return versioning_api.version_control(sql_connection, repo_path)
File "", line 2, in version_control
File "/usr/lib/python2.7/dist-packages/migrate/versioning/util/__init__.py", line 159, in with_engine
return f(*a, **kw)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/api.py", line 250, in version_control
ControlledSchema.create(engine, repository, version)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 139, in create
table = cls._create_table_version(engine, repository, version)
File "/usr/lib/python2.7/dist-packages/migrate/versioning/schema.py", line 180, in _create_table_version
if not table.exists():
File "/usr/lib/python2.7/dist-packages/sqlalchemy/schema.py", line 568, in exists
self.name, schema=self.schema)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2274, in run_callable
conn = self.contextual_connect()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/base.py", line 2340, in contextual_connect
self.pool.connect(),
File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 210, in connect
return _ConnectionFairy(self).checkout()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 371, in __init__
rec = self._connection_record = pool._do_get()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 697, in _do_get
con = self._create_connection()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 174, in _create_connection
return _ConnectionRecord(self)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 256, in __init__
self.connection = self.__connect()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/pool.py", line 316, in __connect
connection = self.__pool._creator()
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 80, in connect
return dialect.connect(*cargs, **cparams)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py", line 280, in connect
return self.dbapi.connect(*cargs, **cparams)
File "/usr/lib/python2.7/dist-packages/MySQLdb/__init__.py", line 81, in Connect
return Connection(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/MySQLdb/connections.py", line 187, in __init__
super(Connection, self).__init__(*args, **kwargs2)
sqlalchemy.exc.OperationalError: (OperationalError) (1045, "Access denied for user 'glance-registry'@'localhost' (using password: YES)") None None
Starting OpenStack Image Service Registry: glance-registry.
Setting up glance (2012.1~e3+git73-g63f3af7-1) ...
Setting up python-nova (2012.1~e3+git1583-g36100f6-1) ...

======================
Any ideas ?

Thanks in advance,
-Technologov