Brief Description
-----------------
Stx-openstack apply-failed after host swact controller and lock/unlock standby controller. MariaDB pods in the cluster should not be affected by a swact.
Severity
--------
Major
Steps to Reproduce
------------------
host swact
Lock standby controller
Unlock standby controller
system application-list
Expected Behavior
------------------
stx-openstack apply success
Actual Behavior
----------------
stx-openstack apply failed
Reproducibility
---------------
reproducible
System Configuration
--------------------
Standard 2+2
Branch/Pull Time/Commit
-----------------------
OS="centos"
SW_VERSION="21.05"
BUILD_TARGET="Host Installer"
BUILD_TYPE="Formal"
BUILD_ID="20210401T032802Z"
Timestamp/Logs
--------------
nova scheduler
==============
2021-04-01T20:12:05.392844204Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines [-] Database connection was found disconnected; reconnecting: oslo_db.exception.DBConnectionError: (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query')
2021-04-01T20:12:05.392865121Z stdout F [SQL: SELECT 1]
2021-04-01T20:12:05.392870469Z stdout F (Background on this error at: http://sqlalche.me/e/e3q8)
2021-04-01T20:12:05.392874788Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines Traceback (most recent call last):
2021-04-01T20:12:05.392879282Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib64/python3.6/site-packages/sqlalchemy/engine/base.py", line 1248, in _execute_context
2021-04-01T20:12:05.39288348Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines cursor, statement, parameters, context
2021-04-01T20:12:05.392887573Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib64/python3.6/site-packages/sqlalchemy/engine/default.py", line 590, in do_execute
2021-04-01T20:12:05.39289165Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines cursor.execute(statement, parameters)
2021-04-01T20:12:05.392895426Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib/python3.6/site-packages/pymysql/cursors.py", line 170, in execute
2021-04-01T20:12:05.392900839Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines result = self._query(query)
2021-04-01T20:12:05.392904817Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib/python3.6/site-packages/pymysql/cursors.py", line 328, in _query
2021-04-01T20:12:05.392908972Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines conn.query(q)
2021-04-01T20:12:05.392912707Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib/python3.6/site-packages/pymysql/connections.py", line 517, in query
2021-04-01T20:12:05.392916774Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines self._affected_rows = self._read_query_result(unbuffered=unbuffered)
2021-04-01T20:12:05.392920523Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib/python3.6/site-packages/pymysql/connections.py", line 732, in _read_query_result
2021-04-01T20:12:05.39292429Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines result.read()
2021-04-01T20:12:05.392928166Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib/python3.6/site-packages/pymysql/connections.py", line 1075, in read
2021-04-01T20:12:05.392931826Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines first_packet = self.connection._read_packet()
2021-04-01T20:12:05.392935998Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib/python3.6/site-packages/pymysql/connections.py", line 657, in _read_packet
2021-04-01T20:12:05.392939863Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines packet_header = self._read_bytes(4)
2021-04-01T20:12:05.392943824Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines File "/var/lib/openstack/lib/python3.6/site-packages/pymysql/connections.py", line 707, in _read_bytes
2021-04-01T20:12:05.392947824Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines CR.CR_SERVER_LOST, "Lost connection to MySQL server during query")
2021-04-01T20:12:05.392951943Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines pymysql.err.OperationalError: (2013, 'Lost connection to MySQL server during query')
2021-04-01T20:12:05.392956015Z stdout F 2021-04-01 20:12:05.388 1 ERROR oslo_db.sqlalchemy.engines
......
2021-04-01T20:12:17.417007851Z stdout F 2021-04-01 20:12:17.415 1 ERROR oslo_db.sqlalchemy.engines CR.CR_SERVER_LOST, "Lost connection to MySQL server during query")
2021-04-01T20:12:17.417011342Z stdout F 2021-04-01 20:12:17.415 1 ERROR oslo_db.sqlalchemy.engines oslo_db.exception.DBConnectionError: (pymysql.err.OperationalError) (2013, 'Lost connection to MySQL server during query')
2021-04-01T20:12:17.417025119Z stdout F 2021-04-01 20:12:17.415 1 ERROR oslo_db.sqlalchemy.engines [SQL: SELECT 1]
2021-04-01T20:12:17.417046489Z stdout F 2021-04-01 20:12:17.415 1 ERROR oslo_db.sqlalchemy.engines (Background on this error at: http://sqlalche.me/e/e3q8)
2021-04-01T20:12:17.417051859Z stdout F 2021-04-01 20:12:17.415 1 ERROR oslo_db.sqlalchemy.engines
Mariadb
=======
2021-04-01T20:10:48.639819377Z stderr F 2021-04-01 20:10:48,639 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:48 140439366817472 [Note] InnoDB: Initializing buffer pool, total size = 1G, instances = 8, chunk size = 128M'
2021-04-01T20:10:48.676400175Z stderr F 2021-04-01 20:10:48,676 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:48 140439366817472 [Note] InnoDB: Completed initialization of buffer pool'
2021-04-01T20:10:48.677173326Z stderr F 2021-04-01 20:10:48,677 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:48 140437742954240 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().'
2021-04-01T20:10:48.702813372Z stderr F 2021-04-01 20:10:48,702 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:48 140439366817472 [Note] InnoDB: Highest supported file format is Barracuda.'
2021-04-01T20:10:48.704745594Z stderr F 2021-04-01 20:10:48,704 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:48 140439366817472 [Note] InnoDB: Starting crash recovery from checkpoint LSN=47390445'
2021-04-01T20:10:49.077905158Z stderr F 2021-04-01 20:10:49,077 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140439366817472 [Note] InnoDB: 128 out of 128 rollback segments are active.'
2021-04-01T20:10:49.079157287Z stderr F 2021-04-01 20:10:49,078 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140439366817472 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"'
2021-04-01T20:10:49.079172298Z stderr F 2021-04-01 20:10:49,079 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140439366817472 [Note] InnoDB: Creating shared tablespace for temporary tables'
2021-04-01T20:10:49.079198426Z stderr F 2021-04-01 20:10:49,079 - OpenStack-Helm Mariadb - INFO - b"2021-04-01 20:10:49 140439366817472 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ..."
2021-04-01T20:10:49.080041521Z stderr F 2021-04-01 20:10:49,079 - OpenStack-Helm Mariadb - INFO - b"2021-04-01 20:10:49 140439366817472 [Note] InnoDB: File './ibtmp1' size is now 12 MB."
2021-04-01T20:10:49.082732472Z stderr F 2021-04-01 20:10:49,082 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140439366817472 [Note] InnoDB: Waiting for purge to start'
2021-04-01T20:10:49.132968943Z stderr F 2021-04-01 20:10:49,132 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140439366817472 [Note] InnoDB: 5.7.29 started; log sequence number 47390454'
2021-04-01T20:10:49.133013416Z stderr F 2021-04-01 20:10:49,132 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140437167793920 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool'
2021-04-01T20:10:49.142892943Z stderr F 2021-04-01 20:10:49,142 - OpenStack-Helm Mariadb - INFO - b"2021-04-01 20:10:49 140439366817472 [Note] Plugin 'FEEDBACK' is disabled."
2021-04-01T20:10:49.142916321Z stderr F 2021-04-01 20:10:49,142 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140439366817472 [Note] Recovering after a crash using tc.log'
2021-04-01T20:10:49.143467469Z stderr F 2021-04-01 20:10:49,143 - OpenStack-Helm Mariadb - INFO - b'2021-04-01 20:10:49 140439366817472 [ERROR] Recovery failed! You must enable all engines that were enabled at the moment of the crash'
2021-04-01T20:10:51.281596579Z stderr F 2021-04-01 20:10:51,281 - OpenStack-Helm Mariadb - INFO - b''
2021-04-01T20:10:51.281617047Z stderr F 2021-04-01 20:10:51,281 - OpenStack-Helm Mariadb - INFO - b"2021-04-01 20:10:49 140439366817472 [ERROR] Crash recovery failed. Either correct the problem (if it's, for example, out of memory error) and restart, or delete tc log and start mysqld with --tc-heuristic-recover={commit|rollback}"
2021-04-01T20:10:51.281672087Z stderr F 2021-04-01 20:10:51,281 - OpenStack-Helm Mariadb - INFO - b''
2021-04-01T20:10:51.281699365Z stderr F 2021-04-01 20:10:51,281 - OpenStack-Helm Mariadb - INFO - b"2021-04-01 20:10:49 140439366817472 [ERROR] Can't init tc log"
2021-04-01T20:10:51.281897339Z stderr F 2021-04-01 20:10:51,281 - OpenStack-Helm Mariadb - INFO - Launching MariaDB
This issue is introduced either from "20210331T031417Z" load or "20210401T032802Z" load. Please check these two CHANGLOG.