【 使用环境 】生产环境
【 OB or 其他组件 】OCP,OB
【 使用版本 】OCP版本号: 4.3.4-20250114101305,OB版本4.2.2
【问题描述】OCP升级OB集群4.2.2.0->4.2.5.1报错
【复现路径】软件包都按要求准备好,点升级后运行任务报错
【附件及日志】
subtask_11030566.log (27.7 KB)
错误码
CMP10003
错误信息
OCP-Agent 任务 96a75a2b-3d0c-4207-91c5-3e6d9644a77f 失败,错误信息:OcpAgentError: code = 1500, message = Execute shell command failed: failed to execute command: Command{user=root, program=sh, outputType=combined, cmd=export PYTHONPATH=/home/admin/ocp_agent/site-packages:$PYTHONPATH && python /tmp/rpms/extract/oceanbase-ce-4.2.2.1-101000012024030709.el7.x86_64.rpm/home/admin/oceanbase/etc/upgrade_checker.py -h127.0.0.1 -P2881 -uroot@sys --password=xxx -l /tmp/4.2.2.1-101000012024030709_upgrade_checker_20250117211420.log, timeout=30m0s}, exitCode: 1, output: File “/tmp/rpms/extract/oceanbase-ce-4.2.2.1-101000012024030709.el7.x86_64.rpm/home/admin/oceanbase/etc/upgrade_checker.py”, line 33 except mysql.connector.Error, e: ^ SyntaxError: invalid syntax , error: exit status 1