【 使用环境 】 测试环境
【 OB or 其他组件 】ocp
【 使用版本 】4.2.2
【问题描述】通过ocp部署时,出现如下错误:
(1)[ERROR] request error: HTTPConnectionPool(host=‘xxxx’, port=2886): Max retries exceeded with url: /api/v1/status
(Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x2b9f1540fbb0>: Failed to establish a new connection: [Errno 111] Connection refused’))
(2)[ERROR] do takeover precheck got exception:<10.202.249.126>
目前问题已经解决了,说下我碰到的两个问题:
(1)[ERROR] request error: HTTPConnectionPool(host=‘xxxx’, port=2886): Max retries exceeded with url: /api/v1/status
(Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x2b9f1540fbb0>: Failed to establish a new connection: [Errno 111] Connection refused’))
第一个是这个错误。在通过部署ocp时,我把默认的目录都改成我这边的磁盘,/data/home 、/data/home/admin这两个目录下,并且已经赋值admin的权限了,但是一直出现上面的错误。
之后把所有的路径都改成了ocp安装默认的路径,即:/data、/home下,就没出现上面的问题了,目前不太清楚是什么问题,感觉是一些权限设置问题。
(2)[ERROR] do takeover precheck got exception:<10.202.249.126>
这是第二个错误。意思就是ocp无法接管我这台observer,这是在部署好ocp最后出现的问题。然后通过日志分析得出如下:
Details:
Node: 10.202.249.126
Status: Completed
FileName: /root/.obdiag/analyze_pack_20240426172217/10_202_249_126/observer.log.20240426164910443
ErrorCode: -4012
Message: Timeout
Count: 1
Cause: Internal Error
Solution: Contact OceanBase Support
First Found Time: 2024-04-26 16:47:03.223840
Last Found Time: 2024-04-26 16:47:03.223840
Trace_IDS: {‘B420ACAF97E-000616FBF26C213C-0-0’}
Node: 10.202.249.126
Status: Completed
FileName: /root/.obdiag/analyze_pack_20240426172217/10_202_249_126/observer.log.20240426164910443
ErrorCode: -5150
Message: Tenant not in this server
Count: 67
Cause: Internal Error
Solution: Contact OceanBase Support
First Found Time: 2024-04-26 16:46:20.552034
Last Found Time: 2024-04-26 16:46:27.424730
Trace_IDS: [‘B420ACAF97E-000616FBF11C213D-0-0’]