问题现象
OCP 接管主机时,Install ocp agent 子任务失败,报错 “failed to execute ssh command:/tmp/xxxx/install_package.sh,exit code:1”。

子任务日志中存在类似信息:
file /home/admin/ocp_agent/site-packages/mysqlx/result.pyc from install of ocp-agent-ce-4.2.2-20240315150922.el7.x86_64 conflicts with file from package ocp-agent-4.3.0-20240617185251.el7.x86_64
file /home/admin/ocp_agent/site-packages/mysqlx/statement.pyc from install of ocp-agent-ce-4.2.2-20240315150922.el7.x86_64 conflicts with file from package ocp-agent-4.3.0-20240617185251.el7.x86_64
file /home/admin/ocp_agent/site-packages/six.pyc from install of ocp-agent-ce-4.2.2-20240315150922.el7.x86_64 conflicts with file from package ocp-agent-4.3.0-20240617185251.el7.x86_64, err=, extOut=null, exitStatus=1)
可能原因
主机上已经安装过高版本的 ocp-agent-ce,与当前正在安装的 ocp-agent-ce 版本冲突。
影响版本
OCP 所有版本。
解决方法及规避方式
卸载已经安装的高版本 ocp-agent-ce,重试 OCP 接管主机任务,通过子任务安装正确版本的 ocp-agent-ce。