opencomputeproject / HWMgmt-OCP-Profiles

A place where all the OCP profiles are a placed. Issues can be submitted/resolved and modifications can be reviewed/merged
Apache License 2.0
14 stars 14 forks source link

Missing CompareType for CompareProperty of SKU and PartNumber #17

Closed liamhieuvu closed 3 years ago

liamhieuvu commented 4 years ago

Issue description

Redfish Interop Validator reports "ERROR - Invalid Profile - CompareType is required for CompareProperty but not found" for ComputerSystem resource.

Information

OCP server hardware management requires either ComputerSystem.SKU or ComputerSystem.PartNumber (or both) to be implemented. This can be achieved by setting ReadRequirement field to Recommended, and using ConditionalRequirements to change this field to Mandatory if SKU or PartNumber does not exist.

Causes

According to Redfish Interoperability Profiles (DSP0272 v1.2.0), section 8.4.2.5 defines:

The OCP server profile uses Comparison instead of CompareType. The "Absent" comparison (CompareType) for CompareProperty is suitable for this situation. For example, SKU ReadRequirement is Mandatory if PartNumber (CompareProperty) is Absent (CompareType) and vice versa.

Solution

Change Comparison to CompareType (shown in attached patch)

0001-Fix-CompareType-for-SKU-and-PartNumber-properties.txt

jcleung5549 commented 3 years ago

Closing. PR #18 has been merged.