Ask Your Question
0

Openstack create project

asked 2017-04-11 12:46:25 -0500

md_network_engineer gravatar image

Hi all-

After running this command: openstack project create --domain default --description "Service Project" service

I get this error: An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-aeea7014-de36-4cbc-a09a-145bd289d289)

Here is the log from /var/log/keystone/keystone.conf (Sorry about the formatting)

2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi created_value = creator() 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/dogpile/cache/region.py", line 1216, in creator 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi return fn(arg, *kw) 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/resource/core.py", line 675, in get_domain_by_name 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi domain_id=None) 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/keystone/resource/backends/sql.py", line 52, in get_project_by_name 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi with sql.session_for_read() as session: 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi return self.gen.next() 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 944, in _transaction_scope 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi allow_async=self._allow_async) as resource: 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib64/python2.7/contextlib.py", line 17, in __enter__ 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi return self.gen.next() 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 558, in _session 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi bind=self.connection, mode=self.mode) 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 317, in _create_session 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi self._start() 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 403, in _start 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi engine_args, maker_args) 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py", line 427, in _setup_for_connection 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi sql_connection=sql_connection, **engine_kwargs) 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 155, in create_engine 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi test_conn = _test_connection(engine, max_retries, retry_interval) 2017-04-11 12:16:30.865 2021 ERROR keystone.common.wsgi File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 339, in _test_connection 2017-04-11 12:16:30.865 2021 ... (more)

edit retag flag offensive close merge delete

Comments

1

The error is "Can't connect to MySQL server on 'controller' ([Errno -2] Name or service not known)" Could it be that "controller" is not in /etc/hosts? In any case, troubleshoot you Mysql connection.

Bernd Bausch gravatar imageBernd Bausch ( 2017-04-11 17:08:43 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-04-12 09:09:11 -0500

md_network_engineer gravatar image

Needed to run this cmd again: # su -s /bin/sh -c "keystone-manage db_sync" keystone

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2017-04-11 12:46:25 -0500

Seen: 284 times

Last updated: Apr 12 '17