observer不能直连2881登录

【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】
【 使用版本 】社区版4.1
【问题描述】
【问题现象及影响】
社区版ocp 4.0.3 创建的集群:

OB 1-1-1 集群:
192.168.51.233 2881
192.168.51.235 2881
192.168.51.234 2881

绑定obproxy集群:
192.168.51.233 2883
192.168.51.235 2883
192.168.51.234 2883

目前发现,只能通过obporxy 的2883端口 连接ob,
直连2881时报错:
ERROR 1045 (42000): Access denied for user ‘root’@‘xxx.xxx.xxx.xxx’ (using password: YES)

[root@OceanBaseDB-3 ~]# obclient -h192.168.51.235 -P2883 -uroot@sys#test -p'OB_root@999' -Doceanbase -A 
Welcome to the OceanBase.  Commands end with ; or \g.
Your OceanBase connection id is 107773
Server version: OceanBase_CE 4.1.0.0 (r101000022023050809-bd50a54ac52a82c5cd3b100781d5ed252822ccd0) (Built May  8 2023 09:32:12)

Copyright (c) 2000, 2018, OceanBase and/or its affiliates. All rights reserved.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

obclient [oceanbase]> quit
Bye
[root@OceanBaseDB-3 ~]# obclient -h192.168.51.235 -P2881 -uroot@sys#test -p'OB_root@999' -Doceanbase -A 
ERROR 1045 (42000): Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES)
1 个赞

通过2881直连observer的时候不要加集群名:
obclient -h192.168.51.235 -P2881 -uroot@sys -p’OB_root@999’ -Doceanbase -A

1 个赞