[Openstack-operators] 转发:Error on sync keystone to mysql db
vivisquirrel
vivisquirrel at vip.qq.com
Wed Sep 7 08:38:14 UTC 2016
You'd better take a look at the logs of Maria DB/Mysql... or try to login the MariaDB/Mysql using keystone user/password from command line.
-Ryan
------------------ Original ------------------
From: "fengyan1732";<fengyan1732 at sina.com>;
Date: Wed, Sep 7, 2016 11:01 AM
To: "openstack-operators"<openstack-operators at lists.openstack.org>;
Subject: [Openstack-operators] Fwd:Error on sync keystone to mysql db
Hi Everyone,
I'm trying to install identify service on Ubuntu 16.04 LTS. The guide I use: http://docs.openstack.org/mitaka/install-guide-ubuntu/keystone-install.html
When I input this command:"su -s /bin/sh -c "keystone-manage db_sync" keystone", it report error below:
2016-09-06 19:01:07.303 4905 CRITICAL keystone [-] KeyError: 'connection'
2016-09-06 19:01:07.303 4905 ERROR keystone Traceback (most recent call last):
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/bin/keystone-manage", line 10, in <module>
2016-09-06 19:01:07.303 4905 ERROR keystone sys.exit(main())
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/cmd/manage.py", line 47, in main
2016-09-06 19:01:07.303 4905 ERROR keystone cli.main(argv=sys.argv, config_files=config_files)
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/cmd/cli.py", line 992, in main
2016-09-06 19:01:07.303 4905 ERROR keystone CONF.command.cmd_class.main()
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/cmd/cli.py", line 371, in main
2016-09-06 19:01:07.303 4905 ERROR keystone migration_helpers.sync_database_to_version(extension, version)
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/common/sql/migration_helpers.py", line 210, in sync_database_to_version
2016-09-06 19:01:07.303 4905 ERROR keystone _sync_common_repo(version)
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/keystone/common/sql/migration_helpers.py", line 132, in _sync_common_repo
2016-09-06 19:01:07.303 4905 ERROR keystone with sql.session_for_write() as session:
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
2016-09-06 19:01:07.303 4905 ERROR keystone return self.gen.next()
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 759, in _transaction_scope
2016-09-06 19:01:07.303 4905 ERROR keystone allow_async=self._allow_async) as resource:
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
2016-09-06 19:01:07.303 4905 ERROR keystone return self.gen.next()
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 491, in _session
2016-09-06 19:01:07.303 4905 ERROR keystone bind=self.connection, mode=self.mode)
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 272, in _create_session
2016-09-06 19:01:07.303 4905 ERROR keystone self._start()
2016-09-06 19:01:07.303 4905 ERROR keystone File "/usr/lib/python2.7/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 337, in _start
2016-09-06 19:01:07.303 4905 ERROR keystone url_args['connection'],
2016-09-06 19:01:07.303 4905 ERROR keystone KeyError: 'connection'
2016-09-06 19:01:07.303 4905 ERROR keystone
I don't know how to triage and fix this problem, would you like to help me?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-operators/attachments/20160907/978bcd6f/attachment.html>
More information about the OpenStack-operators
mailing list