【 使用环境 】生产测试环境
【 OB or 其他组件 】
【 使用版本 】社区版 OCP 4.0.3 BP1
【问题描述】主机在4.0.3版本中可以添加成功,但是在4.0.3 bp1版本中添加失败
【复现路径】
1.先是报 Execute clock diff failed, 已经确认帐号有sudo免密权限,也试过直接用root帐号也是报同样的错
2023-08-26 10:07:49.761 ERROR 7305 --- [pool-manual-subtask-executor16,57e744fe35414ea1,f51aa4131469] c.o.ocp.core.util.ExceptionUtils : Checked Exception: com.oceanbase.ocp.core.exception.UnexpectedException occurred with code error.common.unexpected, and args [Execute clock diff failed., 192.168.51.222]
2023-08-26 10:07:49.764 WARN 7305 --- [pool-manual-subtask-executor16,57e744fe35414ea1,f51aa4131469] c.o.o.c.t.engine.runner.RunnerFactory : Execute task failed, subtask=SubtaskInstanceOverview{id=11017, name=Pre check for create host, state=FAILED, operation=EXECUTE, className=com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask, seriesId=2, startTime=2023-08-26T10:07:49.453+08:00, endTime=null}, failedMessage=An unknown error has occurred. Cause: Execute clock diff failed.. Error message: 192.168.51.222. Contact the administrator.
com.oceanbase.ocp.core.exception.UnexpectedException: [OCP UnexpectedException]: status=500 INTERNAL_SERVER_ERROR, errorCode=COMMON_UNEXPECTED, args=Execute clock diff failed.,192.168.51.222
at sun.reflect.GeneratedConstructorAccessor524.newInstance(Unknown Source) ~[na:na]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_382]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_382]
at com.oceanbase.ocp.core.util.ExceptionUtils.newException(ExceptionUtils.java:96) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.util.ExceptionUtils.throwException(ExceptionUtils.java:90) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.util.ExceptionUtils.unExpected(ExceptionUtils.java:77) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.checkIsRemoteClockDiffAcceptable(PreCreateHostCheckTask.java:108) ~[ocp-service-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.run(PreCreateHostCheckTask.java:68) ~[ocp-service-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.execute(JavaSubtaskRunner.java:60) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.doRun(JavaSubtaskRunner.java:32) ~[ocp-core-4.0.3-202
30721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.run(JavaSubtaskRunner.java:26) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.doRun(RunnerFactory.java:111) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.redirectOutputIfNotSysSchedule(RunnerFactory.java:183) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.run(RunnerFactory.java:101) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.coordinator.worker.subtask.ReadySubtaskWorker.lambda$null$1(ReadySubtaskWorker.java:127) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_382]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_382]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_382]
2.在论坛里看到 OCP4.0点击租户管理报错 里说可以直接跳过,跳过后执行下一步时,继续报错:
Checked Exception: com.oceanbase.ocp.core.exception.UnexpectedException occurred with code error.file.package.not.exists, and args [[name=t-oceanbase-ocp-agent, version=4.0.3, architecture=x86_64]]
已经确认有上传了从官网下的 ocp agent rpm包,版本是:1.3.1
2023-08-26 10:08:05.394 ERROR 7305 --- [pool-manual-subtask-executor16,57e744fe35414ea1,ac20a2b7211b] c.o.ocp.core.util.ExceptionUtils : Checked Exception: com.oceanbase.ocp.core.exception.UnexpectedException occurred with code error.file.package.not.exists, and args [[name=t-oceanbase-ocp-agent, version=4.0.3, architecture=x86_64]]
2023-08-26 10:08:05.398 WARN 7305 --- [pool-manual-subtask-executor16,57e744fe35414ea1,ac20a2b7211b] c.o.o.c.t.engine.runner.RunnerFactory : Execute task failed, subtask=SubtaskInstanceOverview{id=11020, name=Update host arch info, state=FAILED, operation=EXECUTE, className=com.oceanbase.ocp.service.task.business.host.UpdateHostSystemInfoTask, seriesId=0, startTime=2023-08-26T10:08:04.548+08:00, endTime=null}, failedMessage=Software package [name=t-oceanbase-ocp-agent, version=4.0.3, architecture=x86_64] does not exist.
com.oceanbase.ocp.core.exception.UnexpectedException: [OCP UnexpectedException]: status=500 INTERNAL_SERVER_ERROR, errorCode=FILE_PACKAGE_NOT_EXIST, args=[name=t-oceanbase-ocp-agent, version=4.0.3, architecture=x86_64]
at sun.reflect.GeneratedConstructorAccessor524.newInstance(Unknown Source) ~[na:na]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_382]
at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_382]
at com.oceanbase.ocp.core.util.ExceptionUtils.newException(ExceptionUtils.java:96) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.util.ExceptionUtils.throwException(ExceptionUtils.java:90) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.util.ExceptionUtils.unExpected(ExceptionUtils.java:77) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.service.task.business.host.UpdateHostSystemInfoTask.checkMatchingOcpAgentExist(UpdateHostSystemInfoTask.java:87) ~[ocp-service-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.service.task.business.host.UpdateHostSystemInfoTask.run(UpdateHostSystemInfoTask.java:62) ~[ocp-service-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.execute(JavaSubtaskRunner.java:60) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.doRun(JavaSubtaskRunner.java:32) ~[ocp-core-4.0.3-20
230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.run(JavaSubtaskRunner.java:26) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.doRun(RunnerFactory.java:111) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.redirectOutputIfNotSysSchedule(RunnerFactory.java:183) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.run(RunnerFactory.java:101) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at com.oceanbase.ocp.core.task.engine.coordinator.worker.subtask.ReadySubtaskWorker.lambda$null$1(ReadySubtaskWorker.java:127) ~[ocp-core-4.0.3-20230721.jar!/:4.0.3-20230721]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_382]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_382]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_382]
at java.lang.Thread.run(Thread.java:750) ~[na:1.8.0_382]