PSU Sensors Association with Entity Manager
Hello,
We are trying to implement psu sensors with entity-manager by defining chassis and power supply in separate json configuration file according to entity-manager's sample configurations. PSU sensors are not displayed under /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors but under /xyz/openbmc_project/inventory/system/powersupply/{powersupplyID}/all_sensor s. And they are not shown in the Web UI. Here is the powersupply.json configuration we used:
{
"Exposes": [
{
"Address": "0x58",
"Bus": "3",
"Labels": [
"iin",
"iout1",
"iout2",
"fan1",
"vin",
"vout1",
"vout2",
"pin",
"pout1",
"pout2",
"temp1"
],
"Name": "Some_PSU",
"PollRate": 5.0,
"Type": "pmbus"
}
],
"Name": "Some Power Supply Name",
"Probe": "TRUE",
"Type": "PowerSupply",
"xyz.openbmc_project.Inventory.Decorator.Asset": {
"Manufacturer": "SomeManufacturer",
"Model": "SomeModel",
"PartNumber": "SomePart",
"SerialNumber": "SomeSerial"
}}
We examined the Inventory and LEDs page from bmcweb logs and we saw that sensorAssocPath does not include our psu sensors in the getInventoryItemAssociation() method in sensors.hpp. sensorAssocPath filled from sensorNames vector and this vector comes from /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors as much as we understand. So our question is how to show psu sensors in the WebUI and what can possibly be wrong with our configuration. Do we certainly need to list psu sensors under /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors? Also what needs to be done to show the manufacturer and model information of Power Supply in UI too?
Quoted 5 lines · On 2/10/23 08:33, [email protected] wrote:
Hello,
We are trying to implement psu sensors with entity-manager by defining chassis and power supply in separate json configuration file according to entity-manager’s sample configurations. PSU sensors are not displayed under /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors but under /xyz/openbmc_project/inventory/system/powersupply/{powersupplyID}/all_sensors. And they are not shown in the Web UI. Here is the powersupply.json configuration we used:
<snip>
There have been changes in the Redfish schema, which is still in transition in bmcweb.
There are meson flags that allow you to choose between the two:EXTRA_OEMESON += " -Dredfish-new-powersubsystem-thermalsubsystem=enabled" EXTRA_OEMESON += " -Dredfish-allow-deprecated-power-thermal=disabled"
The "new" model, implementing the PowerSubsystem schema, is incomplete. There is a group of commits as part of the 'redfish-power-supply' topic:
https://gerrit.openbmc.org/q/topic:redfish-power-supply
The commits are not merged, excepting one.
I'm sure other openbmc members may also have additional input.
Signature · 6 lines
Johnathan Mantey Senior Software Engineer *azad te**chnology partners* Contributing to Technology Innovation since 1992 Phone: (503) 712-6764 Email: [email protected]
Quoted 12 lines · Johnathan Mantey
On 2/10/23 08:33, [email protected] wrote:
Hello,
We are trying to implement psu sensors with entity-manager by defining chassis and power supply in separate json configuration file according to entity-manager’s sample configurations. PSU sensors are not displayed under /xyz/openbmc_project/inventory/system/board/{chassisID}/all_sensors but under /xyz/openbmc_project/inventory/system/powersupply/{powersupplyID}/all_sensors. And they are not shown in the Web UI. Here is the powersupply.json configuration we used:
<snip>
There have been changes in the Redfish schema, which is still in transition in bmcweb.
Quoted 7 lines
There are meson flags that allow you to choose between the two:
EXTRA_OEMESON+= " -Dredfish-new-powersubsystem-thermalsubsystem=enabled"EXTRA_OEMESON+= " -Dredfish-allow-deprecated-power-thermal=disabled"The "new" model, implementing the PowerSubsystem schema, is incomplete. There is a group of commits as part of the 'redfish-power-supply' topic:
https://gerrit.openbmc.org/q/topic:redfish-power-supply
The commits are not merged, excepting one.
I will resolve these conflicts soon and re-push again.
Quoted 11 lines
I'm sure other openbmc members may also have additional input.
--
Johnathan Mantey
Senior Software Engineer
azad technology partners
Contributing to Technology Innovation since 1992
Phone: (503) 712-6764
Email: [email protected]