使用OAT安装OCP报错

【 使用环境 】测试环境

【 OB or 其他组件 】oat

【 使用版本 】oat 4.1.0

【问题描述】
根据【伙伴技术O5】17-5-1-部署OCP(基础)的步骤先后部署oat,初始化服务器,部署metaDB。在部署ocp时,部署任务遇到如下报错,请问这个报错是什么引起的,该如何解决?

[2025-01-24T19:20:20.294+0800] INFO - Dependencies all met for <TaskInstance: init_ocp.create_tenant manual__2025-01-24T11:19:38.653723+00:00 [queued]>
[2025-01-24T19:20:20.303+0800] INFO - Dependencies all met for <TaskInstance: init_ocp.create_tenant manual__2025-01-24T11:19:38.653723+00:00 [queued]>
[2025-01-24T19:20:20.304+0800] INFO - 
--------------------------------------------------------------------------------
[2025-01-24T19:20:20.304+0800] INFO - Starting attempt 2 of 2
[2025-01-24T19:20:20.304+0800] INFO - 
--------------------------------------------------------------------------------
[2025-01-24T19:20:20.321+0800] INFO - Executing <Task(_PythonDecoratedOperator): create_tenant> on 2025-01-24 11:19:38.653723+00:00
[2025-01-24T19:20:20.323+0800] INFO - Started process 42810 to run task
[2025-01-24T19:20:20.326+0800] INFO - Running: ['airflow', 'tasks', 'run', 'init_ocp', 'create_tenant', 'manual__2025-01-24T11:19:38.653723+00:00', '--job-id', '44', '--raw', '--subdir', 'DAGS_FOLDER/init_ocp.py', '--cfg-path', '/tmp/tmpb6zcdafc']
[2025-01-24T19:20:20.329+0800] INFO - Job 44: Subtask create_tenant
[2025-01-24T19:20:20.379+0800] INFO - Running <TaskInstance: init_ocp.create_tenant manual__2025-01-24T11:19:38.653723+00:00 [running]> on host localhost.localdomain
[2025-01-24T19:20:20.445+0800] INFO - Exporting the following env vars:
AIRFLOW_CTX_DAG_OWNER=airflow
AIRFLOW_CTX_DAG_ID=init_ocp
AIRFLOW_CTX_TASK_ID=create_tenant
AIRFLOW_CTX_EXECUTION_DATE=2025-01-24T11:19:38.653723+00:00
AIRFLOW_CTX_TRY_NUMBER=2
AIRFLOW_CTX_DAG_RUN_ID=manual__2025-01-24T11:19:38.653723+00:00
[2025-01-24T19:20:20.445+0800] INFO - use metadb connection
[2025-01-24T19:20:20.446+0800] INFO - Running statement: select a.id, a.ip, a.hardware, b.name as idc, b.region from oat_server a, oat_idc b where a.idc_id=b.id and a.id in (%s), parameters: [1]
[2025-01-24T19:20:20.446+0800] INFO - Rows affected: 1
[2025-01-24T19:20:20.449+0800] ERROR - Task failed with exception
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/airflow/decorators/base.py", line 217, in execute
    return_value = super().execute(context)
  File "/usr/local/lib/python3.9/site-packages/airflow/operators/python.py", line 175, in execute
    return_value = self.execute_callable()
  File "/usr/local/lib/python3.9/site-packages/airflow/operators/python.py", line 192, in execute_callable
    return self.python_callable(*self.op_args, **self.op_kwargs)
  File "/oat/task_engine/dags/init_ocp.py", line 54, in create_tenant
    common.create_tenant(ctx, logger, product='ocp')
  File "/oat/task_engine/plugins/common.py", line 682, in create_tenant
    with pymysql.connect(host=host, port=port, user='root@sys', password=password, charset='utf8mb4',
  File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 353, in __init__
    self.connect()
  File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 633, in connect
    self._request_authentication()
  File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 907, in _request_authentication
    auth_packet = self._read_packet()
  File "/usr/local/lib/python3.9/site-packages/pymysql/connections.py", line 725, in _read_packet
    packet.raise_for_error()
  File "/usr/local/lib/python3.9/site-packages/pymysql/protocol.py", line 221, in raise_for_error
    err.raise_mysql_exception(self._data)
  File "/usr/local/lib/python3.9/site-packages/pymysql/err.py", line 143, in raise_mysql_exception
    raise errorclass(errno, errval)
pymysql.err.OperationalError: (4012, 'Transaction is timeout')
[2025-01-24T19:20:20.455+0800] INFO - Marking task as FAILED. dag_id=init_ocp, task_id=create_tenant, execution_date=20250124T111938, start_date=20250124T112020, end_date=20250124T112020
[2025-01-24T19:20:20.455+0800] INFO - Running statement: update oat_audit set status='failed', update_time=utc_timestamp(), failed_reason=%s where id=%s, parameters: ["failed task instance is init_ocp__create_tenant__20250124 and exception information is (4012, 'Transaction is timeout')", 10]
[2025-01-24T19:20:20.456+0800] INFO - Rows affected: 1
[2025-01-24T19:20:20.476+0800] ERROR - Failed to execute job 44 for task create_tenant ((4012, 'Transaction is timeout'); 42810)
[2025-01-24T19:20:20.498+0800] INFO - Task exited with return code 1
[2025-01-24T19:20:20.525+0800] INFO - 0 downstream tasks scheduled from follow-on schedule check

感谢!

今天再次运行通过了,不知道为什么,中间什么也没做,