[2024-11-20T09:55:10.637+0800] INFO - Running statement: select rollback_status from oat_operationdagrun where id=%s, parameters: [14]
38
[2024-11-20T09:55:10.637+0800] INFO - Rows affected: 1
39
[2024-11-20T09:55:10.639+0800] INFO - Running statement: update oat_operationdagrun set rollback_status=%s where id=%s, parameters: [‘can_rollback’, 14]
40
[2024-11-20T09:55:10.640+0800] INFO - Rows affected: 1
41
[2024-11-20T09:55:10.643+0800] INFO - Running statement: update oat_component set inner_service=json_set(inner_service, ‘$.“root”.status’, ‘ready’) where id=2, parameters: None
42
[2024-11-20T09:55:10.644+0800] INFO - Rows affected: 1
43
[2024-11-20T09:55:10.645+0800] INFO - Execute query: select tenant_id from __all_resource_pool where name=%s, args: (‘root_resource_pool’,)
44
[2024-11-20T09:55:10.647+0800] INFO - Execute rows: 1
45
[2024-11-20T09:55:10.647+0800] ERROR - Task failed with exception
46
Traceback (most recent call last):
47
File “/usr/local/lib/python3.9/site-packages/airflow/decorators/base.py”, line 217, in execute
48
return_value = super().execute(context)
49
File “/usr/local/lib/python3.9/site-packages/airflow/operators/python.py”, line 175, in execute
50
return_value = self.execute_callable()
51
File “/usr/local/lib/python3.9/site-packages/airflow/operators/python.py”, line 192, in execute_callable
52
return self.python_callable(*self.op_args, **self.op_kwargs)
53
File “/oat/task_engine/dags/init_ocp.py”, line 54, in create_tenant
54
common.create_tenant(ctx, logger, product=‘ocp’)
55
File “/oat/task_engine/plugins/common.py”, line 708, in create_tenant
56
raise RuntimeError(
57
RuntimeError: resource pool root_resource_pool is used by tenant 1001, please check
58
[2024-11-20T09:55:10.658+0800] INFO - Marking task as FAILED. dag_id=init_ocp, task_id=create_tenant, execution_date=20241120T015506, start_date=20241120T015509, end_date=20241120T015510
59
[2024-11-20T09:55:10.659+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__20241120 and exception information is resource pool root_resource_pool is used by tenant 1001, please check’, 14]
60
[2024-11-20T09:55:10.660+0800] INFO - Rows affected: 1
61
[2024-11-20T09:55:10.679+0800] ERROR - Failed to execute job 56 for task create_tenant (resource pool root_resource_pool is used by tenant 1001, please check; 32153)
62
[2024-11-20T09:55:10.691+0800] INFO - Task exited with return code 1
63