ocp 加载ob server主机时,在安全ocp agent 步骤无法通过

2021-05-20 17:46:09.523 INFO 52 — [ task-3,8f683f579f984306,867c4e1c5886] .s.t.b.h.OcpAgentInstallationTaskService : pos_proxy is not available on host 5 yet

2021-05-20 17:46:09.547 INFO 52 — [ task-3,8f683f579f984306,867c4e1c5886] com.alipay.ocp.core.util.TaskUtils : [TaskUtils] wait 3 seconds

2021-05-20 17:46:12.581 ERROR 52 — [ task-3,8f683f579f984306,867c4e1c5886] com.alipay.ocp.core.util.ExceptionUtils : Checked Exception: com.alipay.ocp.core.exception.UnexpectedException occurred with code error.common.unexpected, and args [Failed to restart pos_proxy]

2021-05-20 17:46:12.633 ERROR 52 — [ task-3,8f683f579f984306,867c4e1c5886] c.a.o.core.task.manager.TaskManagerImpl : got exception while execute task:

com.alipay.ocp.core.exception.UnexpectedException: [OCP UnexpectedException]: status=500 INTERNAL_SERVER_ERROR, errorCode=COMMON_UNEXPECTED, args=Failed to restart pos_proxy

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

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

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

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

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

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

at com.alipay.ocp.core.util.ExceptionUtils.unExpected(ExceptionUtils.java:71) ~[ocp-core-2.5.0-20210105.jar!/:2.5.0-20210105]

at com.alipay.ocp.service.task.business.host.OcpAgentInstallationTaskService.waitForPosProxyRunning(OcpAgentInstallationTaskService.java:181) ~[ocp-service-2.5.0-20210105.jar!/:2.5.0-20210105]

at com.alipay.ocp.service.task.business.host.OcpAgentInstallationTaskService$$FastClassBySpringCGLIB$$d3819f0e.invoke() ~[ocp-service-2.5.0-20210105.jar!/:2.5.0-20210105]

at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) ~[spring-core-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]

at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:685) ~[spring-aop-5.2.4.RELEASE.jar!/:5.2.4.RELEASE]

at com.alipay.ocp.service.task.business.host.OcpAgentInstallationTaskService$$EnhancerBySpringCGLIB$$79be4836.waitForPosProxyRunning() ~[ocp-service-2.5.0-20210105.jar!/:2.5.0-20210105]

at com.alipay.ocp.service.task.business.host.InstallOc

pAgentTask.run(InstallOcpAgentTask.java:65) ~[ocp-service-2.5.0-20210105.jar!/:2.5.0-20210105]

at com.alipay.ocp.core.metadb.task.TaskInstanceEntity.run(TaskInstanceEntity.java:192) ~[ocp-core-2.5.0-20210105.jar!/:2.5.0-20210105]

at com.alipay.ocp.core.task.manager.TaskManagerImpl.lambda$null$1(TaskManagerImpl.java:177) ~[ocp-core-2.5.0-20210105.jar!/:2.5.0-20210105]

at com.alipay.ocp.core.task.manager.TaskManagerImpl.redirectOutputIfNotSysSchedule(TaskManagerImpl.java:221) ~[ocp-core-2.5.0-20210105.jar!/:2.5.0-20210105]

at com.alipay.ocp.core.task.manager.TaskManagerImpl.lambda$executeTask$2(TaskManagerImpl.java:149) ~[ocp-core-2.5.0-20210105.jar!/:2.5.0-20210105]

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_152]

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

at com.alipay.ocp.core.thread.TraceDecorator.lambda$decorate$0(TraceDecorator.java:28) ~[ocp-core-2.5.0-20210105.jar!/:2.5.0-20210105]

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152) ~[na:1.8.0_152]

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

at java.lang.Thread.run(Thread.java:882) ~[na:1.8.0_152]

2021-05-20 17:46:12.723 INFO 52 — [ task-3,8f683f579f984306,867c4e1c5886] c.a.o.c.metadb.task.TaskInstanceEntity : set state failed for task: 581

可能是由于调用主机名访问 API 引起的,可以对应在 Hosts 文件添加解析试试

谢谢,我试试。