【已评审】支持redfish标准接口Managers资源新增属性

背景

redfish资源升级,新增标准属性。

关联ISSUE

[需求]: Managers相关资源支持redfish新标准

整体方案

本议题关联的方案,均基于 openUBMC 现有 Redfish 服务框架与内部数据采集模块实现,无外部平台 SDK 依赖,具体如下:
遵循 Redfish 标准,在现有 rackmount 的 Redfish 服务模块基础上,新增 / 扩展接口及属性,通过支持服务的访问权限,响应管理员的 GET 查询请求。​​方案均不改变现有接口功能与响应格式,对现有在网功能无兼容性影响。

评审点

新增redfish标准接口属性:
Managers 接口下新增RemoteRedfishServiceUri、ServiceIdentification、Certificates、RemoteAccountService、SecurityPolicy属性

详细描述

场景:
URI:/redfish/v1/Managers/:managerid

操作权限:ReadOnly
变化类型:新增属性
操作类型:GET
应用场景:redfish接口新增属性Managers支持服务访问权限
详细描述:

一级属性 二级属性 取值类型 操作权限 属性说明
RemoteRedfishServiceUri object ReadOnly 与此远程管理器相关的资源或对象的链接
ServiceIdentification string ReadOnly 产品实例标识符
Certificates @odata.id object ReadOnly 用户身份证书集合的链接
RemoteAccountService @odata.id string ReadOnly 与此远程管理器相关的资源或对象的链接
SecurityPolicy @odata.id object ReadOnly 与此远程管理器相关的资源或对象的链接

schema说明,查看manager.v1_9_0.json

  "RemoteRedfishServiceUri": {
    "description": "The URI of the Redfish service root for the remote manager that this resource represents.",
    "format": "uri-reference",
    "longDescription": "This property shall contain the URI of the Redfish service root for the remote manager that this resource represents.  This property shall only be present when providing aggregation of Redfish services.",
    "readonly": true,
    "type": [
        "string",
        "null"
    ],
    "versionAdded": "v1_5_0"
    },

RspBody响应体示例

{
    "NetworkProtocol": {
        "@odata.id": "/redfish/v1/Managers/1/NetworkProtocol"
    },
    "EthernetInterfaces": {
        "@odata.id": "/redfish/v1/Managers/1/EthernetInterfaces"
    },
    "LogServices": {
        "@odata.id": "/redfish/v1/Managers/1/LogServices"
    },
    "VirtualMedia": {
        "@odata.id": "/redfish/v1/Managers/1/VirtualMedia"
}

评审结论

同意URI:/redfish/v1/Managers/:managerid新增标准属性ServiceIdentification、RemoteAccountService,类型为string,只支持GET操作。新增标准属性RemoteRedfishServiceUri、Certificates、SecurityPolicy,类型为object,只支持GET操作

遗留问题

无

@byosoft_fanghanxia 这个操作权限是什么?需要明确具体的权限,当前是GET资源的话权限应该是 ReadOnly