[Openstack-operators] 转发:Error on sync keystone to mysql db
Saverio Proto
zioproto at gmail.com
Wed Sep 7 07:45:34 UTC 2016
Is the connection to the database properly working ?
Saverio
2016-09-07 5:01 GMT+02:00 <fengyan1732 at sina.com>:
> 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?
>
> _______________________________________________
> OpenStack-operators mailing list
> OpenStack-operators at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>
More information about the OpenStack-operators
mailing list