Jan 25 19:49:14 juju-c6d44f-zaza-c448271c27a9-0 (keystone): 2023-01-25 19:49:14,574 CRITICAL Unhandled error
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3250, in _wrap_pool_connect
return fn() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 310, in connect
return _ConnectionFairy._checkout(self) File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 868, in _checkout
fairy = _ConnectionRecord.checkout(pool) File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 476, in checkout
rec = pool._do_get() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 145, in _do_get
with util.safe_reraise(): File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
compat.raise_( File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 143, in _do_get
return self._create_connection() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 256, in _create_connection
return _ConnectionRecord(self) File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 371, in __init__
self.__connect() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 665, in __connect
with util.safe_reraise(): File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
compat.raise_( File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 661, in __connect
self.dbapi_connection = connection = pool._invoke_creator(self) File "/usr/lib/python3/dist-packages/sqlalchemy/engine/create.py", line 590, in connect
return dialect.connect(*cargs, **cparams) File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 597, in connect
return self.dbapi.connect(*cargs, **cparams) File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 353, in __init__
self.connect() File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 633, in connect
self._request_authentication() File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 932, in _request_authentication
auth_packet = _auth.caching_sha2_password_auth(self, auth_packet) File "/usr/lib/python3/dist-packages/pymysql/_auth.py", line 266, in caching_sha2_password_auth
pkt = _roundtrip(conn, data) File "/usr/lib/python3/dist-packages/pymysql/_auth.py", line 120, in _roundtrip
pkt = conn._read_packet() File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 692, in _read_packet
packet_header = self._read_bytes(4) File "/usr/lib/python3/dist-packages/pymysql/connections.py", line 748, in _read_bytes
raise err.OperationalError(pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/bin/keystone-manage", line 10, in <module>
sys.exit(main()) File "/usr/lib/python3/dist-packages/keystone/cmd/manage.py", line 41, in main
cli.main(argv=sys.argv, developer_config_file=developer_config) File "/usr/lib/python3/dist-packages/keystone/cmd/cli.py", line 1374, in main
CONF.command.cmd_class.main() File "/usr/lib/python3/dist-packages/keystone/cmd/cli.py", line 354, in main
upgrades.offline_sync_database_to_version( File "/usr/lib/python3/dist-packages/keystone/common/sql/upgrades.py", line 255, in offline_sync_database_to_version
expand_schema() File "/usr/lib/python3/dist-packages/keystone/common/sql/upgrades.py", line 216, in expand_schema
_db_sync(branch=EXPAND_BRANCH) File "/usr/lib/python3/dist-packages/keystone/common/sql/upgrades.py", line 157, in _db_sync
with sql.session_for_write() as session: File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen) File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 1054, in _transaction_scope
with current._produce_block( File "/usr/lib/python3.10/contextlib.py", line 135, in __enter__
return next(self.gen) File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 653, in _session
self.session = self.factory._create_session( File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 414, in _create_session
self._start() File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 504, in _start
self._setup_for_connection( File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/enginefacade.py", line 529, in _setup_for_connection
engine = engines.create_engine( File "/usr/lib/python3/dist-packages/debtcollector/renames.py", line 43, in decorator
return wrapped(*args, **kwargs) File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/engines.py", line 211, in create_engine
test_conn = _test_connection(engine, max_retries, retry_interval) File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/engines.py", line 394, in _test_connection
raise de_ref File "/usr/lib/python3/dist-packages/oslo_db/sqlalchemy/engines.py", line 386, in _test_connection
return engine.connect() File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3204, in connect
return self._connection_cls(self, close_with_result=close_with_result) File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 96, in __init__
else engine.raw_connection() File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3283, in raw_connection
return self._wrap_pool_connect(self.pool.connect, _connection) File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3253, in _wrap_pool_connect
Connection._handle_dbapi_exception_noconnection( File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 2098, in _handle_dbapi_exception_noconnection
util.raise_(newraise, with_traceback=exc_info[2], from_=e) File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 3250, in _wrap_pool_connect
return fn() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 310, in connect
return _ConnectionFairy._checkout(self) File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 868, in _checkout
fairy = _ConnectionRecord.checkout(pool) File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 476, in checkout
rec = pool._do_get() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 145, in _do_get
with util.safe_reraise(): File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
compat.raise_( File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception File "/usr/lib/python3/dist-packages/sqlalchemy/pool/impl.py", line 143, in _do_get
return self._create_connection() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 256, in _create_connection
return _ConnectionRecord(self) File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 371, in __init__
self.__connect() File "/usr/lib/python3/dist-packages/sqlalchemy/pool/base.py", line 665, in __connect
with util.safe_reraise(): File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 70, in __exit__
I'm hitting an issue testing against 8.0.32- 0buntu0. 22.04.2~ test1:
Apologies on the formatting.. for readability the tracebacks are also available here: /paste. ubuntu. com/p/zDzy29775 q/plain/
https:/
Jan 25 19:49:14 juju-c6d44f- zaza-c448271c27 a9-0 (keystone): 2023-01-25 19:49:14,574 CRITICAL Unhandled error python3/ dist-packages/ sqlalchemy/ engine/ base.py" , line 3250, in _wrap_pool_connect python3/ dist-packages/ sqlalchemy/ pool/base. py", line 310, in connect y._checkout( self) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 868, in _checkout rd.checkout( pool) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 476, in checkout python3/ dist-packages/ sqlalchemy/ pool/impl. py", line 145, in _do_get reraise( ): File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ util/langhelper s.py", line 70, in __exit__ python3/ dist-packages/ sqlalchemy/ util/compat. py", line 207, in raise_ python3/ dist-packages/ sqlalchemy/ pool/impl. py", line 143, in _do_get connection( ) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 256, in _create_connection rd(self) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 371, in __init__ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 665, in __connect reraise( ): File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ util/langhelper s.py", line 70, in __exit__ python3/ dist-packages/ sqlalchemy/ util/compat. py", line 207, in raise_ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 661, in __connect connection = connection = pool._invoke_ creator( self) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ engine/ create. py", line 590, in connect connect( *cargs, **cparams) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ engine/ default. py", line 597, in connect connect( *cargs, **cparams) File "/usr/lib/ python3/ dist-packages/ pymysql/ connections. py", line 353, in __init__ python3/ dist-packages/ pymysql/ connections. py", line 633, in connect authentication( ) File "/usr/lib/ python3/ dist-packages/ pymysql/ connections. py", line 932, in _request_ authentication sha2_password_ auth(self, auth_packet) File "/usr/lib/ python3/ dist-packages/ pymysql/ _auth.py" , line 266, in caching_ sha2_password_ auth python3/ dist-packages/ pymysql/ _auth.py" , line 120, in _roundtrip python3/ dist-packages/ pymysql/ connections. py", line 692, in _read_packet python3/ dist-packages/ pymysql/ connections. py", line 748, in _read_bytes Error(pymysql. err.Operational Error: (2013, 'Lost connection to MySQL server during query')The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/usr/lib/
return fn() File "/usr/lib/
return _ConnectionFair
fairy = _ConnectionReco
rec = pool._do_get() File "/usr/lib/
with util.safe_
compat.raise_( File "/usr/lib/
raise exception File "/usr/lib/
return self._create_
return _ConnectionReco
self.__connect() File "/usr/lib/
with util.safe_
compat.raise_( File "/usr/lib/
raise exception File "/usr/lib/
self.dbapi_
return dialect.
return self.dbapi.
self.connect() File "/usr/lib/
self._request_
auth_packet = _auth.caching_
pkt = _roundtrip(conn, data) File "/usr/lib/
pkt = conn._read_packet() File "/usr/lib/
packet_header = self._read_bytes(4) File "/usr/lib/
raise err.Operational
Traceback (most recent call last): File "/usr/bin/ keystone- manage" , line 10, in <module> python3/ dist-packages/ keystone/ cmd/manage. py", line 41, in main argv=sys. argv, developer_ config_ file=developer_ config) File "/usr/lib/ python3/ dist-packages/ keystone/ cmd/cli. py", line 1374, in main cmd_class. main() File "/usr/lib/ python3/ dist-packages/ keystone/ cmd/cli. py", line 354, in main offline_ sync_database_ to_version( File "/usr/lib/ python3/ dist-packages/ keystone/ common/ sql/upgrades. py", line 255, in offline_ sync_database_ to_version python3/ dist-packages/ keystone/ common/ sql/upgrades. py", line 216, in expand_schema branch= EXPAND_ BRANCH) File "/usr/lib/ python3/ dist-packages/ keystone/ common/ sql/upgrades. py", line 157, in _db_sync for_write( ) as session: File "/usr/lib/ python3. 10/contextlib. py", line 135, in __enter__ python3/ dist-packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 1054, in _transaction_scope _produce_ block( File "/usr/lib/ python3. 10/contextlib. py", line 135, in __enter__ python3/ dist-packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 653, in _session _create_ session( File "/usr/lib/ python3/ dist-packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 414, in _create_session python3/ dist-packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 504, in _start for_connection( File "/usr/lib/ python3/ dist-packages/ oslo_db/ sqlalchemy/ enginefacade. py", line 529, in _setup_ for_connection create_ engine( File "/usr/lib/ python3/ dist-packages/ debtcollector/ renames. py", line 43, in decorator python3/ dist-packages/ oslo_db/ sqlalchemy/ engines. py", line 211, in create_engine n(engine, max_retries, retry_interval) File "/usr/lib/ python3/ dist-packages/ oslo_db/ sqlalchemy/ engines. py", line 394, in _test_connection python3/ dist-packages/ oslo_db/ sqlalchemy/ engines. py", line 386, in _test_connection python3/ dist-packages/ sqlalchemy/ engine/ base.py" , line 3204, in connect n_cls(self, close_with_ result= close_with_ result) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ engine/ base.py" , line 96, in __init__ raw_connection( ) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ engine/ base.py" , line 3283, in raw_connection pool_connect( self.pool. connect, _connection) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ engine/ base.py" , line 3253, in _wrap_pool_connect _handle_ dbapi_exception _noconnection( File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ engine/ base.py" , line 2098, in _handle_ dbapi_exception _noconnection (newraise, with_traceback= exc_info[ 2], from_=e) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ util/compat. py", line 207, in raise_ python3/ dist-packages/ sqlalchemy/ engine/ base.py" , line 3250, in _wrap_pool_connect python3/ dist-packages/ sqlalchemy/ pool/base. py", line 310, in connect y._checkout( self) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 868, in _checkout rd.checkout( pool) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 476, in checkout python3/ dist-packages/ sqlalchemy/ pool/impl. py", line 145, in _do_get reraise( ): File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ util/langhelper s.py", line 70, in __exit__ python3/ dist-packages/ sqlalchemy/ util/compat. py", line 207, in raise_ python3/ dist-packages/ sqlalchemy/ pool/impl. py", line 143, in _do_get connection( ) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 256, in _create_connection rd(self) File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 371, in __init__ python3/ dist-packages/ sqlalchemy/ pool/base. py", line 665, in __connect reraise( ): File "/usr/lib/ python3/ dist-packages/ sqlalchemy/ util/langhelper s.py", line 70, in __exit__
sys.exit(main()) File "/usr/lib/
cli.main(
CONF.command.
upgrades.
expand_schema() File "/usr/lib/
_db_sync(
with sql.session_
return next(self.gen) File "/usr/lib/
with current.
return next(self.gen) File "/usr/lib/
self.session = self.factory.
self._start() File "/usr/lib/
self._setup_
engine = engines.
return wrapped(*args, **kwargs) File "/usr/lib/
test_conn = _test_connectio
raise de_ref File "/usr/lib/
return engine.connect() File "/usr/lib/
return self._connectio
else engine.
return self._wrap_
Connection.
util.raise_
raise exception File "/usr/lib/
return fn() File "/usr/lib/
return _ConnectionFair
fairy = _ConnectionReco
rec = pool._do_get() File "/usr/lib/
with util.safe_
compat.raise_( File "/usr/lib/
raise exception File "/usr/lib/
return self._create_
return _ConnectionReco
self.__connect() File "/usr/lib/
with util.safe_