[Bug 1450945] Re: sahara can't create database schema by default
James Page
james.page at ubuntu.com
Thu Sep 17 08:58:33 UTC 2015
Still a problem for Kilo:
Setting up sahara-common (2015.1.0-0ubuntu1~cloud0) ...
Traceback (most recent call last):
File "/usr/bin/sahara-db-manage", line 10, in <module>
sys.exit(main())
File "/usr/lib/python2.7/dist-packages/sahara/db/migration/cli.py", line 110, in main
CONF.command.func(config, CONF.command.name)
File "/usr/lib/python2.7/dist-packages/sahara/db/migration/cli.py", line 49, in do_upgrade_downgrade
do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
File "/usr/lib/python2.7/dist-packages/sahara/db/migration/cli.py", line 30, in do_alembic_command
getattr(alembic_cmd, cmd)(config, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 165, in upgrade
script.run_env()
File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 382, in run_env
util.load_python_file(self.dir, 'env.py')
File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 241, in load_python_file
module = load_module_py(module_id, path)
File "/usr/lib/python2.7/dist-packages/alembic/compat.py", line 79, in load_module_py
mod = imp.load_source(module_id, path, fp)
File "/usr/lib/python2.7/dist-packages/sahara/db/migration/alembic_migrations/env.py", line 95, in <module>
run_migrations_online()
File "/usr/lib/python2.7/dist-packages/sahara/db/migration/alembic_migrations/env.py", line 79, in run_migrations_online
poolclass=pool.NullPool)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/__init__.py", line 362, in create_engine
return strategy.create(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 51, in create
dialect_cls = u.get_dialect()
AttributeError: 'NoneType' object has no attribute 'get_dialect'
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to ubuntu-cloud-archive.
https://bugs.launchpad.net/bugs/1450945
Title:
sahara can't create database schema by default
Status in ubuntu-cloud-archive:
Fix Released
Bug description:
Sahara does not support SQLite, so sahara-common will fail to be
installed if /etc/sahara/sahara.conf does not contain valid database
connection and if the database does not actually exist and is not running.
We should not try to run the db_sync during the postinstall, because
it's not obvious deployers already have the database up and running
and moreover the sahara configuration file ready to connect to MySQL
(chicken and egg).
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-archive/+bug/1450945/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list