【已评审】redfish接口新增属性支持场景化节能器件节能生效状态查询

背景

场景化节能能力增强,当前场景化节能已经支持CPU调频能力。基于客户实际使用场景观测,存在长期的npu和计算节点空闲的情况,场景化节能能力新增NPU调频能力。现有的EnergySavingStatus属性仅表示CPU的节能生效状态,不再适用多种器件参与的节能生效状态查询。
为完善场景化节能功能,提供查询参与场景化节能器件的节能生效状态的redfish接口;

关联ISSUE

【需求】新增查询场景化节能器件生效状态接口

整体方案

EnergySavingService 资源新增对象EnergySavingStatusPerDomain表示场景化节能器件的生效状态,EnergySavingStatusPerDomain对象包含 CPUSubsystem和 NPUSubsystem属性;

评审点:EnergySavingService 资源新增属性

Redfish URI: /redfish/v1/Managers/manager_id/EnergySavingService
资源版本:EnergySavingService.v1_0_0

属性列表:
注1:列表内属性默认均支持GET操作。
注2:若属性在Schema中未显式定义readonly关键字,则默认只读。

属性名 类型 示例/默认值/取值约束 readonly 易变属性 实现PATCH 操作权限 描述
EnergySavingStatusPerDomain object / / / / / /
CPUSubsystem string 取值: Activated生效、 Inactivated不生效、Unknown通信丢失或故障等无法及时获取到状态,硬件不支持的场景不显示 true 否 否 ReadOnly 场景化节能CPU使能状态
NPUSubsystem string 取值: Activated生效、 Inactivated不生效、Unknown通信丢失或故障等无法及时获取到状态,硬件不支持的场景不显示 true 否 否 ReadOnly 场景化节能NPU使能状态

Schema定义 :

        "CPUStatus": {
            "type": "string",
            "enum": [
                "Activated",
                "Inactivated",
                "Unknown"
            ],
            "enumDescriptions": {
                "Activated": "The CPU energy saving status is activated.",
                "Inactivated": "The CPU energy saving status is inactivated.",
                "Unknown": "The CPU energy saving status is unknown."
            },
            "enumLongDescriptions": {
                "Activated": "This value indicates that the CPU energy saving component is running and energy saving is active.",
                "Inactivated": "This value indicates that the CPU energy saving component is running but energy saving is inactive.",
                "Unknown": "This value indicates that the CPU energy saving component is running but energy saving status is unknown."
            }
        },
        "NPUStatus": {
            "type": "string",
            "enum": [
                "Activated",
                "Inactivated",
                "Unknown"
            ],
            "enumDescriptions": {
                "Activated": "The NPU energy saving status is activated.",
                "Inactivated": "The NPU energy saving status is inactivated.",
                "Unknown": "The NPU energy saving status is unknown."
            },
            "enumLongDescriptions": {
                "Activated": "This value indicates that the NPU energy saving component is running and energy saving is active.",
                "Inactivated": "This value indicates that the NPU energy saving component is running but energy saving is inactive.",
                "Unknown": "This value indicates that the NPU energy saving component is running but energy saving status is unknown."            
             }
        },
        "EnergySavingStatusPerDomain": {
            "type": "object",
            "patternProperties": {
                "^([a-zA-Z_][a-zA-Z0-9_]*)?@(odata|Redfish|Message|Privileges)\\.[a-zA-Z_][a-zA-Z0-9_.]+$": {
                    "type": [
                        "array",
                        "boolean",
                        "number",
                        "null",
                        "object",
                        "string"
                    ],
                    "description": "This property shall specify a valid odata or Redfish property."
                }
            },
            "additionalProperties": false,
            "properties": {
                "CPUSubsystem": {
                    "$ref": "#/definitions/CPUStatus",
                    "readonly": true,
                    "description": "The energy saving status of CPU.",
                    "longDescription": "This property shall contain the CPU energy saving status."
                },
                "NPUSubsystem": {
                    "$ref": "#/definitions/NPUStatus",
                    "readonly": true,
                    "description": "The energy saving status of NPU.",
                    "longDescription": "This property shall contain the NPU energy saving status."
                }
            }
        }

评审结论

同意redfish接口/redfish/v1/Managers/{ManagerId}/EnergySavingService新增属性EnergySavingStatusPerDomain,类型为object,表示场景化节能器件的生效状态,包括两个子属性

  • CPUSubsystem:类型为string,表示CPU的节能生效状态;
  • NPUSubsystem:类型为string,表示NPU的节能生效状态;

遗留问题

UNKNOWN属性取值需要在schema中明确说明 – 已闭环

【预审】

  1. 这两个属性是 OEM 属性还是标准属性明确清楚,Redfish URI 笔误修复
  2. SavingStatus 中的 Unknown 是什么状态,要补充说明一下