Upgrading from train(el7) to ussuri(el8): Packet sequence number wrong - got 2 expected 1
Bug #1894077 reported by
Igor Gnatenko
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Expired
|
Undecided
|
Unassigned |
Bug Description
We are trying to upgrade our OpenStack from Train (based on CentOS 7) to the Ussuri (based on CentOS 8) and during `neutron-db-manage upgrade --expand` I see it failing with a following traceback. I've tried googling this, but only thing I found was "wrong usage of PyMySQL" which sounds like a bug somewhere in OpenStack.
python3-
python3-
python3-
python3-
Traceback: http://
We run MariaDB 10.3.17 with ProxySQL + Galera cluster.
To post a comment you must log in.
Pasting the initial portion for reference: [root@novatron0 1a ~]# neutron-db-manage upgrade --expand runtime. migration] Context impl MySQLImpl. runtime. migration] Will assume non-transactional DDL. runtime. migration] Context impl MySQLImpl. runtime. migration] Will assume non-transactional DDL. runtime. migration] Running upgrade c613d0b82681 -> c3e9d13c4367 runtime. migration] Running upgrade c3e9d13c4367 -> 86274d77933e runtime. migration] Running upgrade 86274d77933e -> f4b9654dd40c runtime. migration] Running upgrade f4b9654dd40c -> a010322604bc runtime. migration] Running upgrade a010322604bc -> 263d454a9655 runtime. migration] Running upgrade 263d454a9655 -> Ibac91d24da2 pool.impl. QueuePool] Exception during reset or similar python3. 6/site- packages/ sqlalchemy/ engine/ base.py" , line 1244, in _execute_context python3. 6/site- packages/ sqlalchemy/ engine/ default. py", line 552, in do_execute execute( statement, parameters) python3. 6/site- packages/ pymysql/ cursors. py", line 170, in execute python3. 6/site- packages/ pymysql/ cursors. py", line 328, in _query python3. 6/site- packages/ pymysql/ connections. py", line 517, in query _affected_ rows = self._read_ query_result( unbuffered= unbuffered) python3. 6/site- packages/ pymysql/ connections. py", line 732, in _read_query_result python3. 6/site- packages/ pymysql/ connections. py", line 1077, in read ._read_ packet( ) python3. 6/site- packages/ pymysql/ connections. py", line 684, in _read_packet check_error( ) python3. 6/site- packages/ pymysql/ protocol. py", line 220, in check_error raise_mysql_ exception( self._data) python3. 6/site- packages/ pymysql/ err.py" , line 109, in raise_mysql_ exception err.InternalErr or: (-1, '\x01\x02\ x02\x00\ x00\x00\ rEnabling keys')
[NAX][NO TICKET]
INFO [alembic.
INFO [alembic.
Running upgrade (expand) for neutron ...
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
INFO [alembic.
ERROR [sqlalchemy.
Traceback (most recent call last):
File "/usr/lib64/
cursor, statement, parameters, context
File "/usr/lib64/
cursor.
File "/usr/lib/
result = self._query(query)
File "/usr/lib/
conn.query(q)
File "/usr/lib/
self.
File "/usr/lib/
result.read()
File "/usr/lib/
first_packet = self.connection
File "/usr/lib/
packet.
File "/usr/lib/
err.
File "/usr/lib/
raise errorclass(errno, errval)
pymysql.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): python3. 6/site- packages/ sqlalchemy/ engine/ base.py" , line 739, in _rollback_impl engine. dialect. do_rollback( self.connection ) python3. 6/site- packages/ sqlalchemy/ dialects/ mysql/base. py", line 2227, in do_rollback connection. rollback( ) python3. 6/site- packages/ pymysql/ connections. py", line 430, in rollback _read_ok_ packet( ) python3. 6/site- packages/ pymysql/ connections. py", line 394, in _read_ok_packet python3. 6/site- packages/ pymysql/ connections. py", line 671, in _read_packet err.InternalErr or: Packet sequence number wrong - got 2 expected 1
File "/usr/lib64/
self.
File "/usr/lib64/
dbapi_
File "/usr/lib/
self.
File "/usr/lib/
pkt = self._read_packet()
File "/usr/lib/
% (packet_number, self._next_seq_id))
pymysql.