【已评审】补充基础服务配置导入导出项

背景

BMC自身硬件故障需要更换备件,备件更换后能一键导入客户的所有配置,减少人工操作步骤,提高效率和准确性

关联ISSUE

(AtomGit | GitCode - 全球开发者的开源社区,开源代码托管平台)

整体方案

排查客户化配置(配置导入导出项)是否能全量覆盖装备定制化项,除了部分配置仅在出厂时设置,其他不满足项需要补齐。

评审点

1、新增配置导入导出项支持导入/导出绑定的NCSI网口号
2、新增配置导入导出项支持导入/导出主机名同步策略
3、新增配置导入导出项支持导入/导出是否在FRU Board域扩展信息中增加PCBVer字段
4、新增配置导入导出项支持导入/导出系统软件名称(iBMA名称)
5、新增配置导入导出项支持导入/导出定制化厂商ID

详细描述

1、新增配置导入导出项支持导入/导出NCSI网口号

配置项名称 配置项类别 配置项 归属组件 取值类型 取值说明 默认值 导入导出类型 说明
NCSI网口号 EthGroup NCSIPortNum bmc_network integer 四网口配置取值为0-3,两网口配置取值为0-1 255 ImportAndExport 用于查询和设置绑定的NCSI网口号
NCSI网口号 EthGroups NCSIPortNum bmc_network integer 四网口配置取值为0-3,两网口配置取值为0-1 255 ImportAndExport 用于查询和设置绑定的NCSI网口号

配置项详情:

{
   "ConfigData": {
            "type": "object",
            "properties": {
                "EthGroup": {
                    "type": "object",
                    "properties": {
                        "Id": {
                            "type": "integer",
                            "AttributeType": "ExportOnly"
                        },
                        "NetMode": {
                            "type": "string",
                            "AttributeType": "ImportAndExport"
                        },
                        "ActivePort": {
                            "type": "integer",
                            "AttributeType": "ImportAndExport"
                        },
                        "NCSIPortNum": {
                            "type": "integer",
                            "AttributeType": "ImportAndExport"
                        },
                        ......(其他配置项)
                    }
                },
                "EthGroups": {
                    "type": "array",
                    "items": {
                        "type": "object",
                        "properties": {
                            "Id": {
                                "type": "integer",
                                "AttributeType": "ExportOnly"
                            },
                            "NetMode": {
                                "type": "string",
                                "AttributeType": "ImportAndExport"
                            },
                            "ActivePort": {
                                "type": "integer",
                                "AttributeType": "ImportAndExport"
                            },
                            "NCSIPortNum": {
                                "type": "integer",
                                "AttributeType": "ImportAndExport"
                            },
                             ......(其他配置项)
                        }
                    }
                }
            }
        }
    }
}

2、新增配置导入导出项支持导入/导出主机名同步策略

配置项名称 配置项类别 配置项 归属组件 取值类型 取值说明 默认值 导入导出类型 说明
主机名同步策略 BMC HostNameUpdatePolicy bmc_network integer 0: SN变化时不更新主机名,1:SN变化时更新主机名 0 ImportAndExport 用于查询和设置BMC的Hostname更新策略

配置项详情:

{
   "ConfigData": {
            "type": "object",
            "properties": {
                "BMC": {
                    "type": "object",
                    "properties": {
                        "HostName": {
                            "type": "string",
                            "Import": false,
                            "AttributeType": "ImportAndExport"
                        },
                        "HostNameUpdatePolicy": {
                            "type": "integer",
                            "enum": [0, 1],
                            "AttributeType": "ImportAndExport"
                        },
                        "DHCPv4VendorClassIdentifier": {
                            "type": "string",
                            "AttributeType": "ImportAndExport"
                        },
                        "DHCPv6VendorClassOption": {
                            "type": "string",
                            "AttributeType": "ImportAndExport"
                        }
                    }
                }
            }
        }
    }
}

3、新增配置导入导出项支持导入/导出是否在FRU Board域扩展信息中增加PCBVer字段

配置项名称 配置项类别 配置项 归属组件 取值类型 取值说明 默认值 导入导出类型 说明
是否在FRU Board域扩展信息中增加PCBVer字段 FRU BoardExInfoAddPcbVersion frudata boolean true: 追加PCB版本(格式:PCBVer=.A)
false: 不追加PCB版本信息,同时清除当前已经追加的PCB版本信息
false ImportAndExport 是否在FRU Board域扩展信息中增加PCBVer字段

配置项详情:

{
   "ConfigData": {
            "type": "object",
            "properties": {
                "FRU": {
                    "type": "object",
                    "properties": {
                       ......(其他配置项)
                        "ProductVersion": {
                            "type": "string",
                            "Import": false,
                            "AttributeType": "ImportAndExport"
                        },
                        "BoardExInfoAddPcbVersion ": {
                            "type": "boolean",
                            "AttributeType": "ImportAndExport"
                        }
                    }
                }
            }
        }
    }
}

4、新增配置导入导出项支持导入/导出系统软件名称(iBMA名称)

配置项名称 配置项类别 配置项 归属组件 取值类型 取值说明 默认值 导入导出类型 说明
系统软件名称(iBMA名称) SMS Name host_agent string 必须是字母或数字,不能包含空格,长度范围:1~8 “iBMA” ImportAndExport 用于查询和设置系统软件名称

配置项详情:

{
   "ConfigData": {
            "type": "object",
            "properties": {
                "SMS": {
                    "type": "object",
                    "properties": {
                        "HostnameSyncEnabled": {
                            "type": "boolean",
                            "AttributeType": "ImportAndExport"
                        },
                        "CdevChannelEnabled": {
                            "type": "boolean",
                            "AttributeType": "ImportAndExport"
                        },
                        "Name": {
                            "type": "string",
                            "AttributeType": "ImportAndExport"
                        }
                    }
                }
            }
        }
    }
}

5、新增配置导入导出项支持导入/导出定制化厂商ID

配置项名称 配置项类别 配置项 归属组件 取值类型 取值说明 默认值 导入导出类型 说明
定制化厂商ID Com ManufacturerID ipmi_core integer [0, 16777215] 2011 ImportAndExport 定制化厂商ID

配置项详情:

{
   "ConfigData": {
            "type": "object",
            "properties": {
                "Com": {
                    "type": "object",
                    "properties": {
                        "FireWallStatus": {
                            "type": "integer",
                            "AttributeType": "ImportAndExport"
                        },
                        "FireWallMode": {
                            "type": "integer",
                            "AttributeType": "ImportAndExport"
                        },
                        "ManufacturerID": {
                            "type": "integer",
                            "AttributeType": "ImportAndExport",
                            "minimum": 0,
                            "maximum": 16777215
                        }
                    }
                }
            }
        }
    }
}

是否准备好AI预审

评审结论

  1. 同意新增配置导入导出项EthGroup.NCSIPortNum,用于查询和设置绑定的NCSI网口号,取值类型为integer,四网口配置取值为0-3,两网口配置取值为0-1,默认值为255,支持导入和导出;
    同意新增配置导入导出项EthGroups.NCSIPortNum,用于查询和设置绑定的NCSI网口号,取值类型为integer,四网口配置取值为0-3,两网口配置取值为0-1,默认值为255,支持导入和导出;
  2. 同意新增配置导入导出项BMC.HostNameUpdatePolicy,用于查询和设置BMC的Hostname更新策略,取值类型为integer,0: SN变化时不更新主机名,1:SN变化时更新主机名,默认值为0,支持导入和导出;
  3. 同意新增配置导入导出项FRU.BoardExInfoAddPcbVersion ,用于查询和设置是否在FRU Board域扩展信息中增加PCBVer字段,取值类型为boolean,true:追加PCB版本,false:不追加PCB版本信息,同时清除当前已经追加的PCB版本信息,默认值为false,支持导入和导出;
  4. 同意新增配置导入导出项SMS.Name,用于查询和设置系统软件名称,取值类型为string,必须是字母或数字,不能包含空格,长度范围:1~8 ,默认值为"iBMA",支持导入和导出;
  5. 同意新增配置导入导出项Com.ManufacturerID,用于查询和设置定制化厂商ID,取值类型为integer,取值范围为[0, 16777215] ,默认值为2011,支持导入和导出。

遗留问题

  1. EthGroup和EthGroups都要增加NCSIPortNum属性
    结论:已补充EthGroups的导入导出项NCSIPortNum。

  2. HostNameUpdatePolicy类型可以考虑定义为字符串类型
    结论:HostNameUpdatePolicy类型与定制化项保持一致,为integer。

  3. BoardExInfoPcbVersion修改为bool类型,属性名称需要和描述保持一致
    结论:已修改BoardExInfoPcbVersion为bool类型,属性名称修改为BoardExInfoAddPcbVersion 。

  4. profile_schema仓上库时,每一项增加description字段,对属性进行描述
    结论:会在代码上库时补充。

  5. IpmiCustomManuID名称优化
    结论:IpmiCustomManuID名称修改为ManufacturerID。