【 使用环境 】生产环境
【 OB or 其他组件 】OCP4.3.5
【 使用版本 】
【问题描述】
接口:/api/v2/compute/hosts
可以获取到所有服务器列表,示例:
{
"alias": null,
"architecture": "x86_64",
"checkSystemInfoProductTypes": null,
"checkSystemInfoRiskyCount": 0,
"checkSystemInfoStatus": "UNINITIALIZED",
"checkSystemInfoTaskId": -1,
"createTime": "2023-08-30T11:23:26+08:00",
"description": null,
"hostAgentId": 9,
"hostAgentStatus": "AVAILABLE",
"hostAgentVersion": "4.3.5-20250319105844",
"hostTags": [
{
"obproxyClusterId": 3,
"obproxyClusterName": "idc1",
"type": "idc1"
}
],
"id": 7,
"idcDescription": null,
"idcId": 6,
"idcName": "idc1",
"innerIpAddress": "10.10.10.142",
"ioPerformance": [],
"kind": "DEDICATED_PHYSICAL_MACHINE",
"name": "xxxx",
"operatingSystem": "5.10.0-25-amd64",
"operatingSystemRelease": "10",
"operatingTaskInstanceId": null,
"publishPorts": null,
"regionDescription": null,
"regionId": 2,
"regionName": "sys_region",
"serialNumber": null,
"services": [
{
"name": "xxxx",
"softwarePackageId": 1,
"type": "xxxx",
"version": "4.2.0.0-7"
}
],
"sshPort": 22,
"status": "ONLINE",
"statusAnalysis": null,
"tags": null,
"typeDescription": null,
"typeId": 2,
"typeName": "xxxx",
"updateTime": "2025-05-21T09:46:53+08:00",
"vpcId": 1,
"vpcName": "system-default"
}
值得注意的是 “hostAgentStatus”: “AVAILABLE”,是AVAILABLE但是入参请求以后:
/api/v2/compute/hosts?status=AVAILABLE
{
"contents": [],
"page": {
"number": 1,
"size": 5000,
"totalElements": 0,
"totalPages": 0
}
}
结果就查不到了
【复现路径】问题出现前后相关操作
【附件及日志】推荐使用OceanBase敏捷诊断工具obdiag收集诊断信息,详情参见链接(右键跳转查看):
【备注】基于 LLM 和开源文档 RAG 的论坛小助手已开放测试,在发帖时输入 [@论坛小助手] 即可召唤小助手,欢迎试用!