本帖最后由 pig2 于 2015-9-13 13:22 编辑
执行 :su -s /bin/sh -c "keystone-manage db_sync" keystone 有以下图片的报错
root@controller:~# su -s /bin/sh -c "keystone-manage db_sync" keystone
2015-09-13 12:45:10.067 3204 CRITICAL keystone [-] ArgumentError: Invalid SQLite URL: sqlite://keystone:KEYSTONE_DBPASS@controller/keystone
Valid SQLite URL forms are:
sqlite:///:memory: (or, sqlite://)
sqlite:///relative/path/to/file.db
sqlite:////absolute/path/to/file.db
2015-09-13 12:45:10.067 3204 TRACE keystone Traceback (most recent call last):
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/bin/keystone-manage", line 44, in <module>
2015-09-13 12:45:10.067 3204 TRACE keystone cli.main(argv=sys.argv, config_files=config_files)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 307, in main
2015-09-13 12:45:10.067 3204 TRACE keystone CONF.command.cmd_class.main()
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/cli.py", line 74, in main
2015-09-13 12:45:10.067 3204 TRACE keystone migration_helpers.sync_database_to_version(extension, version)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/common/sql/migration_helpers.py", line 204, in sync_database_to_version
2015-09-13 12:45:10.067 3204 TRACE keystone _sync_common_repo(version)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/common/sql/migration_helpers.py", line 157, in _sync_common_repo
2015-09-13 12:45:10.067 3204 TRACE keystone engine = sql.get_engine()
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 188, in get_engine
2015-09-13 12:45:10.067 3204 TRACE keystone return _get_engine_facade().get_engine()
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/keystone/common/sql/core.py", line 176, in _get_engine_facade
2015-09-13 12:45:10.067 3204 TRACE keystone _engine_facade = db_session.EngineFacade.from_config(CONF)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 795, in from_config
2015-09-13 12:45:10.067 3204 TRACE keystone retry_interval=conf.database.retry_interval)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 711, in __init__
2015-09-13 12:45:10.067 3204 TRACE keystone **engine_kwargs)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/oslo/db/sqlalchemy/session.py", line 378, in create_engine
2015-09-13 12:45:10.067 3204 TRACE keystone engine = sqlalchemy.create_engine(url, **engine_args)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/__init__.py", line 346, in create_engine
2015-09-13 12:45:10.067 3204 TRACE keystone return strategy.create(*args, **kwargs)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/sqlalchemy/engine/strategies.py", line 82, in create
2015-09-13 12:45:10.067 3204 TRACE keystone (cargs, cparams) = dialect.create_connect_args(u)
2015-09-13 12:45:10.067 3204 TRACE keystone File "/usr/lib/python2.7/dist-packages/sqlalchemy/dialects/sqlite/pysqlite.py", line 321, in create_connect_args
2015-09-13 12:45:10.067 3204 TRACE keystone " sqlite:////absolute/path/to/file.db" % (url,))
2015-09-13 12:45:10.067 3204 TRACE keystone ArgumentError: Invalid SQLite URL: sqlite://keystone:KEYSTONE_DBPASS@controller/keystone
2015-09-13 12:45:10.067 3204 TRACE keystone Valid SQLite URL forms are:
2015-09-13 12:45:10.067 3204 TRACE keystone sqlite:///:memory: (or, sqlite://)
2015-09-13 12:45:10.067 3204 TRACE keystone sqlite:///relative/path/to/file.db
2015-09-13 12:45:10.067 3204 TRACE keystone sqlite:////absolute/path/to/file.db
|