Post by leekd on Jan 17, 2018 18:58:32 GMT
From redfish.dmtf.org/schemas/v1/Redundancy_v1.xml
<NavigationProperty Name="RedundancySet" Type="Collection(Resource.Item)">
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
<Annotation Term="OData.Description" String="Contains any ids that represent components of this redundancy set."/>
<Annotation Term="OData.LongDescription" String="The value of this property shall contain the ids of components that are part of this redundancy set. The id values may or may not be dereferenceable."/>
<Annotation Term="OData.AutoExpandReferences"/>
<Annotation Term="Redfish.Required"/>
</NavigationProperty>
We are running the Redfish Validator from: github.com/DMTF/Redfish-Service-Validator
The following errors
ERROR - A problem when getting resource has occurred /redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/A
ERROR - Redundancy.v1_0_0.Redundancy:RedundancySet: Mandatory prop has failed to check
ERROR - A problem when getting resource has occurred /redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/B
ERROR - Redundancy.v1_0_0.Redundancy:RedundancySet: Mandatory prop has failed to check
are found with this GET response:
{
"@odata.context": "/redfish/v1/$metadata#Power.Power",
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power",
"@odata.type": "#Power.v1_2_0.Power",
"Name": "Power",
"Id": "Power",
"PowerSupplies": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/A",
"Name": "PSU A",
"MemberId": "A",
"Manufacturer": "DELTA",
"Model": "DPS-1600AB-12",
"PowerCapacityWatts": 1600,
"FirmwareVersion": "0.01",
"SerialNumber": "IQHD1733000185",
"PartNumber": "DPS-1600AB-12",
"IndicatorLED": "Off",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/PowerSupplyAFRU"
}
]
},
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/B",
"Name": "PSU B",
"MemberId": "B",
"Manufacturer": "DELTA",
"Model": "DPS-1600AB-12",
"PowerCapacityWatts": 1600,
"FirmwareVersion": "0.01",
"SerialNumber": "IQHD1733000260",
"PartNumber": "DPS-1600AB-12",
"IndicatorLED": "Off",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/PowerSupplyBFRU"
}
]
}
],
. . .
"Redundancy": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/Redundancy/PowerSupplies",
"MemberId": "PowerSupplies",
"Name": "Power Supplies Redundancy",
"Mode": "N+m",
"MaxNumSupported": 2,
"MinNumNeeded": 1,
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"RedundancySet": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/A"
},
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/B"
}
]
}
],
. . .
}
With "RedundancySet" changed to the following, the Redfish Validator passes:
"RedundancySet": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/0"
},
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/1"
}
]
Is the Validator correct? Should the schema be more clear about expecting indices?
Thanks!
Lee
<NavigationProperty Name="RedundancySet" Type="Collection(Resource.Item)">
<Annotation Term="OData.Permissions" EnumMember="OData.Permission/Read"/>
<Annotation Term="OData.Description" String="Contains any ids that represent components of this redundancy set."/>
<Annotation Term="OData.LongDescription" String="The value of this property shall contain the ids of components that are part of this redundancy set. The id values may or may not be dereferenceable."/>
<Annotation Term="OData.AutoExpandReferences"/>
<Annotation Term="Redfish.Required"/>
</NavigationProperty>
We are running the Redfish Validator from: github.com/DMTF/Redfish-Service-Validator
The following errors
ERROR - A problem when getting resource has occurred /redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/A
ERROR - Redundancy.v1_0_0.Redundancy:RedundancySet: Mandatory prop has failed to check
ERROR - A problem when getting resource has occurred /redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/B
ERROR - Redundancy.v1_0_0.Redundancy:RedundancySet: Mandatory prop has failed to check
are found with this GET response:
{
"@odata.context": "/redfish/v1/$metadata#Power.Power",
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power",
"@odata.type": "#Power.v1_2_0.Power",
"Name": "Power",
"Id": "Power",
"PowerSupplies": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/A",
"Name": "PSU A",
"MemberId": "A",
"Manufacturer": "DELTA",
"Model": "DPS-1600AB-12",
"PowerCapacityWatts": 1600,
"FirmwareVersion": "0.01",
"SerialNumber": "IQHD1733000185",
"PartNumber": "DPS-1600AB-12",
"IndicatorLED": "Off",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/PowerSupplyAFRU"
}
]
},
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/B",
"Name": "PSU B",
"MemberId": "B",
"Manufacturer": "DELTA",
"Model": "DPS-1600AB-12",
"PowerCapacityWatts": 1600,
"FirmwareVersion": "0.01",
"SerialNumber": "IQHD1733000260",
"PartNumber": "DPS-1600AB-12",
"IndicatorLED": "Off",
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"RelatedItem": [
{
"@odata.id": "/redfish/v1/Chassis/PowerSupplyBFRU"
}
]
}
],
. . .
"Redundancy": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/Redundancy/PowerSupplies",
"MemberId": "PowerSupplies",
"Name": "Power Supplies Redundancy",
"Mode": "N+m",
"MaxNumSupported": 2,
"MinNumNeeded": 1,
"Status": {
"State": "Enabled",
"Health": "OK",
"HealthRollup": "OK"
},
"RedundancySet": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/A"
},
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/B"
}
]
}
],
. . .
}
With "RedundancySet" changed to the following, the Redfish Validator passes:
"RedundancySet": [
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/0"
},
{
"@odata.id": "/redfish/v1/Chassis/Enclosure/Power#/PowerSupplies/1"
}
]
Is the Validator correct? Should the schema be more clear about expecting indices?
Thanks!
Lee