|
Post by jyundt on Jun 23, 2022 16:15:11 GMT
What is the expected behavior for a missing (or invalid) Resource in an interop profile? Should a missing or invalid Resource result in some sort of Fail? As an example, this profile provides as Pass as expected: { "SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", "ProfileName": "test", "ProfileVersion": "0.0.1", "Resources": { "Chassis": { "ReadRequirement": "Mandatory", "MinVersion": "1.0.1" } } }
However, if I list a Resource that is not present, I'm not getting any type of Fail. Example: { "SchemaDefinition": "RedfishInteroperabilityProfile.v1_5_0", "ProfileName": "test", "ProfileVersion": "0.0.1", "Resources": { "FOO": { "ReadRequirement": "Mandatory", "MinVersion": "1.0.1" } } }
|
|
|
Post by mraineri on Jun 23, 2022 18:44:40 GMT
I would expect that to produce a failure. With the way profiles are intended to be designed, we want to allow for the flexibility that resources from third parties can have requirements defined. So, while "FOO" is not found in DSP8010, another organization (like SNIA or OCP) might have a resource called "FOO" and would like to allow users to specify requirements against it.
|
|
|
Post by jyundt on Jun 23, 2022 18:48:19 GMT
Ah got it, thanks for the clarification. Because this isn't throwing a Fail, does this mean I'm hitting a bug?
|
|
|
Post by mraineri on Jun 23, 2022 18:57:24 GMT
Yes, please file an issue in GitHub for this.
|
|
|
Post by jyundt on Jun 23, 2022 19:12:38 GMT
|
|
|
Post by jyundt on Oct 7, 2022 16:16:56 GMT
mraineri I have a follow-up question for this: what's the best way to test for Chassis -> PowerSubsystem -> PowerSupply -> PowerSupplyMetrics and Chassis -> ThermalSubsystem -> Thermalmetrics/Fan relationships? Specifically, I'm in the process of migrating from the deprecated Power / Thermal schemas to the newer PowerSubsystem / ThermalSubsystem schemas, but because "missing" schemas aren't marked as a "fail", servers that are still using the deprecated Power/Thermal schemas (and don't implement any of the replacements) are still passing. I added PowerSubsystem and ThermalSubsystems to the Chassis PropertyRequirements, but that still doesn't address all of the missing "downstream" schemas, like PowerSupply, Fan, etc. Any options here? Or is the answer "this will be fixed by DMTF/Redfish-Interop-Validator#159" ?
|
|
|
Post by mraineri on Oct 7, 2022 17:04:08 GMT
That will need to be addressed by that issue; the "ReadRequirement" at the root of the resource object will dictate if a resource is mandatory or not.
|
|
|
Post by jyundt on Oct 7, 2022 17:52:19 GMT
Ah got it, thanks for the clarification.
|
|