【 使用环境 】测试环境
【 OB or 其他组件 】ocp v4.4.1
【 使用版本 】
【问题描述】OCP v4.4.0升级到v4.4.1触发重装OCP agent失败
【复现路径】问题出现前后相关操作
【附件及日志】
错误码
CMP10003
错误信息
OCP-Agent 任务 [Reinstall] 失败,错误信息:Module=agentctl, kind=INTERNAL, code=agentctl_reinstall_failed; [panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0xb4512e] goroutine 1 [running]: github.com/oceanbase/obagent/executor/agent.(*Admin).getPackageInfo(0xc000000380, 0xc0000d2000, {0x106ba60, 0xc}, {0x11eac30, 0x7}) /workspace/code-repo/ocp-agent/executor/agent/admin.go:915 +0x6ce github.com/oceanbase/obagent/executor/agent.(*Admin).checkCurrentPkg(0xc000000380, 0xc0000d2000) /workspace/code-repo/ocp-agent/executor/agent/admin.go:715 +0xcb github.com/oceanbase/obagent/executor/agent.(*Admin).ReinstallAgent(0xc000000380, {{{0x7ffdecb06eea, 0x24}}, {{0x7ffdecb06e19, 0x70}, {0x7ffdecb06e95, 0x28}, {0x7ffdecb06ec8, 0x14}}}) /workspace/code-repo/ocp-agent/executor/agent/admin.go:434 +0x4b6 main.defineOperationCommands.func7(0xc000455508, {0xc000214200?, 0x4?, 0x105bcb6?}) /workspace/code-repo/ocp-agent/cmd/agentctl/main.go:395 +0x1fb github.com/spf13/cobra.(*Command).execute(0xc000455508, {0xc0002141c0, 0x4, 0x4}) /home/admin/goworkspace/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:944 +0x87b github.com/spf13/cobra.(*Command).ExecuteC(0x1ae9a00) /home/admin/goworkspace/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:1068 +0x3a5 github.com/spf13/cobra.(*Command).Execute(…) /home/admin/goworkspace/pkg/mod/github.com/spf13/cobra@v1.7.0/command.go:992 main.main() /workspace/code-repo/ocp-agent/cmd/agentctl/main.go:550 +0xe5 ] cause: exit status 2
subtask_4012279.log (35.6 KB)


