oat 安装 ocp报错

[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

您好,OAT问题是企业版功能范畴,建议你通过以下方式寻求帮助:

1.如你所在的企业客户已签署OceanBase企业版销售合同,请你联系客户经理;

2.如你所在的企业客户尚未签署OceanBase企业版销售合同,你可通过OceanBase官网商务咨询页面留下你的联系方式,OceanBase企业版的业务顾问会在一个工作日内与你联系。

OceanBase官网商务咨询

https://www.oceanbase.com/contactus?fromPage=https%3A%2F%2Fwww.oceanbase.com%2Fsoftwarecenter-enterprise&dataSources=softwarecenter-enterprise_footercontact_d2022

这一步有提示,资源池的名字被使用了。。你这是重复执行过一次是吧,把原来的资源池清理掉重新来

我也这样认为,我把两个租户的资源配置了一样,可能这个东西识别不了,就只建了一个资源池公用了