|
Post by jacksonchen on Oct 5, 2023 7:56:00 GMT
Hi All, The firmware build 6 powersupplies firmware framework, but only two powersupplies(powersupply0 and powersupply1) exist in the powershelf system. Base on current design, there will appear 6 powersupples member under the PowerEquipment. Is it better to remove the powersupplies information which do not exist on the system ? Remove below information ? "/redfish/v1/PowerEquipment/PowerShelves/1/PowerSupplies/powersupply2" "/redfish/v1/PowerEquipment/PowerShelves/1/PowerSupplies/powersupply3" "/redfish/v1/PowerEquipment/PowerShelves/1/PowerSupplies/powersupply4" "/redfish/v1/PowerEquipment/PowerShelves/1/PowerSupplies/powersupply5" Attachments:
|
|
|
Post by mraineri on Oct 5, 2023 12:31:38 GMT
If the power shelf is capable of containing 6 power supplies, showing six would be good. However, if the power shelf only has two power supply slots, then you should only show two power supplies.
It's important to keep in mind that the Redfish interface should reflect what the user is allowed to do with the physical equipment. So, the representation in Redfish is expected to show the physical constraints of the product.
|
|
|
Post by jacksonchen on Oct 5, 2023 13:14:06 GMT
Hi mraineri,
Many thanks for the reply.
Actually, there are six slots in the powershelf system. I just think if the information of powersupply members should be related to the present behavior. For example, powersupply0_present == true, redfish should appear the information of /redfish/v1/PowerEquipment/PowerShelves/1/PowerSupplies/powersupply0.
"The representation in Redfish is expected to show the physical constraints of the product." Your reply is helpful to us. We will follow it.
Thanks, Jackson
|
|
|
Post by mraineri on Oct 5, 2023 14:46:42 GMT
The Redfish model accommodates "absent" resources, so if you have a power supply that is missing, then you would represent it with "Status/State" equal to Absent. This allows a user to discover that there could be something inserted here in the future. For example:
{ "@odata.id": "/redfish/v1/PowerEquipment/PowerShelves/1/PowerSupplies/powersupply5", "@odata.type": "#PowerSupply.v1_0_0.PowerSupply", "Id": "powersupply5", "Name": "Power Supply Bay 5", "Status": { "State": "Absent" }, "Location": { "PartLocation": { "ServiceLabel": "PSU Bay 5", "LocationOrdinalValue": 5, "LocationType": "Bay" } } }
There are details about this type of representation in the "Absent resources" clause of the Redfish spec.
|
|
|
Post by jautor on Oct 5, 2023 18:46:36 GMT
Actually, there are six slots in the powershelf system. I just think if the information of powersupply members should be related to the present behavior. For example, powersupply0_present == true, redfish should appear the information of /redfish/v1/PowerEquipment/PowerShelves/1/PowerSupplies/powersupply0. "The representation in Redfish is expected to show the physical constraints of the product." Your reply is helpful to us. We will follow it.
Jackson,
As Mike mentioned, this is handled with the "Absent" status / absent resources concepts. It's important to show those product capabilities, so that a user can answer questions "this power shelf is running at full capacity, is there room to install another power supply to increase that capacity?"
Jeff
|
|
|
Post by jacksonchen on Oct 6, 2023 0:20:51 GMT
Hi Mike, We already implemented the "Absent" resources while the Power Supply was removed. Thanks for the suggestions. Hi Jeff, Our system is N+1 ORV3 PowerShelf. N=5. It will be totally 6 power supplies with 15KW system. Could you please help to comment what "Product Capabilities" to show? Currently, I have the detail power supply information on it. Thanks. Attachments:
|
|
|
Post by jautor on Oct 10, 2023 16:21:29 GMT
Hi Jeff, Our system is N+1 ORV3 PowerShelf. N=5. It will be totally 6 power supplies with 15KW system. Could you please help to comment what "Product Capabilities" to show? Currently, I have the detail power supply information on it. Thanks.
If you have the "absent" resources populated, then you have that. The point was that if you didn't show the empty (absent) power supply bays as resources, a customer wouldn't be able to tell the difference between a 4-bay shelf fully populated, and a 6-bay shelf with 4 power supplies and room for two more.
Sounds like you have this covered!
Jeff
|
|