Fail in nova

asked 2019-01-21 06:45:37 -0600

najeh gravatar image

I received these errors:

nova-status upgrade check

During handling of the above exception, another exception occurred:Traceback (most recent call last):File "/usr/lib/python3/dist-packages/sqlalchemy/engine/", line 2158, in _wrap_pool_connect return fn() File "/usr/lib/python3/dist-packages/sqlalchemy/", line 345, in unique_connection   return _ConnectionFairy._checkout(self) File "/usr/lib/python3/dist-packages/sqlalchemy/", line 791, in _checkout fairy = _ConnectionRecord.checkout(pool)  File "/usr/lib/python3/dist-packages/sqlalchemy/", line 532, in checkout rec = pool._do_get()  File "/usr/lib/python3/dist-packages/sqlalchemy/", line 1196, in _do_get     self._dec_overflow()   File "/usr/lib/python3/dist-packages/sqlalchemy/util/", line 66, in __exit__
compat.reraise(exc_type, exc_value, exc_tb) File "/usr/lib/python3/dist-packages/sqlalchemy/util/", line 187, in reraise
raise value File "/usr/lib/python3/dist-packages/sqlalchemy/", line 1193, in _do_get
return self._create_connection()  File "/usr/lib/python3/dist-packages/sqlalchemy/", line 350, in _create_connection
return _ConnectionRecord(self) File "/usr/lib/python3/dist-packages/sqlalchemy/", line 477, in __init__
self.__connect(first_connect_check=True) File "/usr/lib/python3/dist-packages/sqlalchemy/", line 674, in __connect  connection = pool._invoke_creator(self) File "/usr/lib/python3/dist-packages/sqlalchemy/engine /", line 106, in connect return dialect.connect(*cargs, **cparams) File "/usr/lib/python3/dist-packages/sqlalchemy/engine/", line 411, in connect  return self.dbapi.connect(*cargs, **cparams) File "/usr/lib/python3/dist-packages/pymysql/", line 90, in Connect return Connection(*args, **kwargs) File "/usr/lib/python3/dist-packages/pymysql/", line 699, in __init__  self.connect() File "/usr/lib/python3/dist-packages/pymysql/", line 967, in connect raise exc pymysql.err.OperationalError: (2003, "Can't connect to MySQL server on '' ([Errno 113] EHOSTUNREACH)")

The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3/dist-packages/nova/cmd/", line 774, in main ret = fn(*fn_args, **fn_kwargs) File "/usr/lib/python3/dist-packages/nova/cmd/", line 704, in check  result = func(self) File "/usr/lib/python3/dist-packages/nova/cmd/", line 146, in _check_cellsv2 meta.bind = db_session.get_api_engine() File "/usr/lib/python3/dist-packages/nova/db/sqlalchemy/", line 156, in get_api_engine return api_context_manager.writer.get_engine() File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/", line 814, in get_engine    return self._factory.get_writer_engine() File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/", line 363, in get_writer_engine self._start() File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/", line 496, in _star engine_args, maker_args) File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/", line 520, in _setup_for_connection sql_connection=sql_connection, **engine_kwargs) File "/usr/lib/python3/dist-packages/debtcollector/", line 43, in decorator  return wrapped(*args, **kwargs) File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/", line 202, in create_engine test_conn = _test_connection(engine, max_retries, retry_interval) File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/", line 388, in _test_connection six.reraise(type(de_ref), de_ref) File "/usr/lib/python3/dist-packages/", line 692, in ...
edit retag flag offensive close merge delete


It would seem that neither the database nor Keystone are running on that server.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-21 07:26:21 -0600 )edit

but the status of apache2 and mysql is running

what can i do?

najeh gravatar imagenajeh ( 2019-01-21 07:54:40 -0600 )edit

Mysql is not accessible: Can't connect to MySQL server on '' You need to find out what prevents the mysql client from accessing the server. Firewall? Connectivity problem? This is normal network troubleshooting.

Apache may be running, but what about Keystone? Is it accessible?

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-21 08:32:06 -0600 )edit

keystone is not accessible because i can't access to any openstack information (servers, images ports, etc) as i mentioned above in the question with the command 'openstack server list' How can i solve that please ?

najeh gravatar imagenajeh ( 2019-01-21 09:31:14 -0600 )edit

Is keystone running on host If yes, confirm it listens at port 5000. Based on the error nessage “aucun chemin d’accès...”, I guess it is not. Find out why. Use the log files.

Bernd Bausch gravatar imageBernd Bausch ( 2019-01-21 09:42:07 -0600 )edit