提供一下:
1、obd --version
2、obd 部署集群的OB yaml附件,敏感信息可以脱敏
3、obd 的日志,默认在 ~/.obd/log/obd 文件
上面的附件没有obd日志
[2024-01-04 11:23:25.090] [96b4f9ce-aab0-11ee-a902-005056af9aa8] [DEBUG] – OBD-5000: alter system bootstrap REGION “sys_region” ZONE “zone1” SERVER “10 .22.224.51:2882”,REGION “sys_region” ZONE “zone2” SERVER “10.22.224.52:2882” execute failed
如上的操作执行后,如果还是初始化失败,麻烦把zone1对应的节点上 observer.log日志附件发一下,日志里需要有"main.cpp" 关键字。
可以试试指定组件启动。obd clguster start name -c ocp-express -sip 如果还报错再给下日志
[2024-01-05 15:57:44.840] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [DEBUG] – YDXP@10.22.224.51 execute: cat /pgdb/YDXP/ocp/ocp-express/run/ocp-express.pid
[2024-01-05 15:57:44.888] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [DEBUG] – exited code 1, error output:
[2024-01-05 15:57:44.888] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [DEBUG] cat: /pgdb/YDXP/ocp/ocp-express/run/ocp-express.pid: No such file or directory
我看日志中有这段内容有关系嘛?
- 没有这个pid文件。
- 失败也应该是连接超时导致的。
可以restart 重启下试试看 或者根据路径创建个pid文件试试
[2024-01-05 16:02:45.487] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [DEBUG] – connect 10.22.224.51 -P2883 -umeta@ocp -pheximw2pc9
[2024-01-05 16:02:46.493] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [ERROR] 10.22.224.51: failed to connect meta db
[2024-01-05 16:02:46.507] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [INFO] e[31m[ERROR]e[39m 10.22.224.51: failed to connect meta db
[2024-01-05 16:02:46.508] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [INFO]
[2024-01-05 16:02:46.508] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [DEBUG] - sub start ref count to 0
[2024-01-05 16:02:46.508] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [DEBUG] - export start
[2024-01-05 16:02:46.508] [1a87875e-aba0-11ee-b6c9-005056af9aa8] [ERROR] ocp-express start failed