【 使用环境 】测试环境
【 OB or 其他组件 】obd web
【 使用版本 】4.2.0
【问题描述】obd web 部署ocp时 检查都通过了,但是部署时报错 Access denied for user ‘root’ 失败
部署时选择新建集群,ocp_meta和ocp_monitor 都是新建的,为啥会有密码报错的事
2026-05-13 15:02:02,113 ERROR wrapper (task.py:135) [280cf929dd254a2293552711049a9262] task 2 got exception
Traceback (most recent call last):
File "service/common/task.py", line 121, in wrapper
File "concurrent/futures/_base.py", line 456, in result
File "concurrent/futures/_base.py", line 401, in __get_result
File "concurrent/futures/thread.py", line 58, in run
File "service/handler/ocp_handler.py", line 840, in _do_install
File "_stdio.py", line 1209, in wrapper
File "_stdio.py", line 1170, in func_wrapper
File "tool.py", line 790, in __init__
File "tool.py", line 824, in _connect
File "pymysql/connections.py", line 361, in __init__
File "pymysql/connections.py", line 669, in connect
File "pymysql/connections.py", line 957, in _request_authentication
File "pymysql/connections.py", line 775, in _read_packet
File "pymysql/protocol.py", line 219, in raise_for_error
File "pymysql/err.py", line 150, in raise_mysql_exception
pymysql.err.OperationalError: (1045, "Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES)")
grep -r 'Access denied' *.log
bootstrap.log: sql 55: INSERT INTO `ocp_ob_error_code`(`error_code`,`error_code_definition`,`error_code_description`) VALUES (4043,'OB_PASSWORD_WRONG','Access denied for user') ON DUPLICATE KEY UPDATE `error_code_definition`='OB_PASSWORD_WRONG',`error_code_description`='Access denied for user'
bootstrap.log: sql 520: INSERT INTO `ocp_ob_error_code`(`error_code`,`error_code_definition`,`error_code_description`) VALUES (5036,'OB_ERR_NO_PRIVILEGE','Access denied') ON DUPLICATE KEY UPDATE `error_code_definition`='OB_ERR_NO_PRIVILEGE',`error_code_description`='Access denied'
bootstrap.log: sql 627: INSERT INTO `ocp_ob_error_code`(`error_code`,`error_code_definition`,`error_code_description`) VALUES (5170,'OB_ERR_NO_DB_PRIVILEGE','Access denied for user to database') ON DUPLICATE KEY UPDATE `error_code_definition`='OB_ERR_NO_DB_PRIVILEGE',`error_code_description`='Access denied for user to database'
sql 54: INSERT INTO `ocp_ob_error_code`(`error_code`,`error_code_definition`,`
error_code_description`) VALUES (4042,'OB_USER_NOT_EXIST','Can not find any matching r
ow in the user table') ON DUPLICATE KEY UPDATE `error_code_definition`='OB_USER_NOT_EX
IST',`error_code_description`='Can not find any matching row in the user table'
sql 55: INSERT INTO `ocp_ob_error_code`(`error_code`,`error_code_definition`,`error_code_description`) VALUES (4043,'OB_PASSWORD_WRONG','Access denied for user') ON DUPLICATE KEY UPDATE `error_code_definition`='OB_PASSWORD_WRONG',`error_code_description`='Access denied for user'
sql 56: INSERT INTO `ocp_ob_error_code`(`error_code`,`error_code_definition`,`error_code_description`) VALUES (4044,'OB_SKEY_VERSION_WRONG','Wrong skey version') ON DUPLICATE KEY UPDATE `error_code_definition`='OB_SKEY_VERSION_WRONG',`error_code_description`='Wrong skey version'