问题现象
使用 OCP V4.2.2 升级 OceanBase 集群时,提示 “未找到升级所需安装包”。

经过如下方式排查均未发现问题:
- 在 OCP 系统管理 > 软件包管理 中已存在对应版本的安装包。
- 执行
sha1sum *.rpm | awk '{print $1}'命令对比软件包 SHA1 值,对比结果一致。

查看 OCP 日志得到如下信息:
2024-07-10 13:09:49.203 ERROR 34734 --- [http-nio-0.0.0.0-8080-exec-6,7148c73583234406,2fa929e5e7e9] c.o.ocp.core.util.ExceptionUtils : Checked Exception: com.oceanbase.ocp.core.exception.UnexpectedException occurred with code error.ob.cluster.upgrade.rpm.not.found, and args [x86_64, 4.2.1.7-107000162024060611]
2024-07-10 13:09:49.211 ERROR 34734 --- [http-nio-0.0.0.0-8080-exec-6,7148c73583234406,2fa929e5e7e9] c.o.o.s.c.trace.RequestTracingAspect : Unexpected API Error: [POST /api/v2/ob/clusters/1000001/upgrade client=xx.xx.xx.xx, traceId=7148c73583234406, args=UpgradeObClusterParam(upgradeMode=ROLLING, destVersion=4.2.1.7-107000162024060611, operatingSystem=el8, rpmFileName=null, freezeServer=false),1000001,, duration=114 ms]
可能原因
OCP V4.3.2 之前版本不支持升级 el8 系统的 OceanBase 集群版本。
影响版本
OCP V4.3.2 之前版本。
解决方法及规避方式
升级 OCP 至 V4.3.2 或更高版本。