OCP 接管集群报错

OCP 接管集群报错:2022-09-30 15:43:45.413 WARN 44 — [pool-manual-subtask-executor3,57aae6cb316d458b,2a6616ac031c] c.a.o.c.t.engine.runner.RunnerFactory : Execute task failed, subtask=SubtaskInstanceEntity{id=104, name=Check observer process user, state=FAILED, operation=RETRY, className=com.alipay.ocp.service.task.business.host.CheckObserverProcessUserTask, seriesId=15, startTime=2022-09-30T15:43:45.334+08:00, endTime=2022-09-30T15:43:45.412+08:00}, failedMessage=The user of observer process must be admin, current is root

10

11

com.alipay.ocp.core.exception.UnexpectedException: [OCP UnexpectedException]: status=500 INTERNAL_SERVER_ERROR, errorCode=OB_CLUSTER_TAKEOVER_OBSERVER_WRONG_USER, args=root

12

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_312]

13

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[na:1.8.0_312]

14

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_312]

15

at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_312]

16

at com.alipay.ocp.core.util.ExceptionUtils.newException(ExceptionUtils.java:96) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

17

at com.alipay.ocp.core.util.ExceptionUtils.throwException(ExceptionUtils.java:90) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

18

at com.alipay.ocp.core.util.ExceptionUtils.unExpected(ExceptionUtils.java:77) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

19

at com.alipay.ocp.service.task.business.host.CheckObserverProcessUserTask.run(CheckObserverProcessUserTask.java:56) ~[ocp-service-3.3.0-20220427.jar!/:3.3.0-20220427]

20

at com.alipay.ocp.core.task.runtime.Subtask.retry(Subtask.java:49) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

21

at com.alipay.ocp.core.metadb.task.model.SubtaskInstanceEntity.retry(SubtaskInstanceEntity.java:233) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

22

at com.alipay.ocp.core.task.engine.runner.JavaTaskRunner.doExecute(JavaTaskRunner.java:30) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0

23

-20220427]

24

at com.alipay.ocp.core.task.engine.runner.JavaTaskRunner.run(JavaTaskRunner.java:20) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

25

at com.alipay.ocp.core.task.engine.runner.RunnerFactory.doRun(RunnerFactory.java:113) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

26

at com.alipay.ocp.core.task.engine.runner.RunnerFactory.redirectOutputIfNotSysSchedule(RunnerFactory.java:185) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

27

at com.alipay.ocp.core.task.engine.runner.RunnerFactory.run(RunnerFactory.java:102) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

28

at com.alipay.ocp.core.task.engine.coordinator.worker.subtask.ReadySubtaskWorker.lambda$submitTask$3(ReadySubtaskWorker.java:123) ~[ocp-core-3.3.0-20220427.jar!/:3.3.0-20220427]

29

at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_312]

30

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_312]

31

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_312]

32

at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_312]

ocp 目前只支持使用admin用户部署的OB,可以参考:

1 个赞