Unable to install keystone: Connection Refused

asked 2018-07-08 23:02:06 -0500

lonedarkwolf27 gravatar image

updated 2018-07-09 09:46:38 -0500

This is my first time installing openstack manually and after follwing all step of guides, when i try to create a domain, i get this error:

An unexpected error prevented the server from fulfilling your request. (HTTP 500) (Request-ID: req-eea2a822-5805-4f8d-a3be-adc29755d070)

After going through the log file, i saw this

2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi     sql_connection=sql_connection, **engine_kwargs)
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/debtcollector/renames.py", line 43, in decorator
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi     return wrapped(*args, **kwargs)
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 184, in create_engine
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi     test_conn = _test_connection(engine, max_retries, retry_interval)
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi   File "/usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/engines.py", line 370, in _test_connection
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi     six.reraise(type(de_ref), de_ref)
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi   File "<string>", line 2, in reraise
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi DBConnectionError: (pymysql.err.OperationalError) (2003, "Can't connect to MySQL server on 'localhost' ([Errno 111] Connection refused)") (Background on this error at: http://sqlalche.me/e/e3q8)
2018-07-08 23:54:01.276 2763 ERROR keystone.common.wsgi

The firewalld and Network Manager is off, i can ping my controller and when i ran netstat, the port was on listenning, what should i do?

edit retag flag offensive close merge delete

Comments

1

Have you tried mysql -h localhost? Can you connect to the database this way?

Bernd Bausch gravatar imageBernd Bausch ( 2018-07-09 09:49:53 -0500 )edit