[bmcweb] Extending bmcweb support on Storage/Drive

Willy Tu wltu at google.com
Thu May 27 07:36:52 AEST 2021


Hi all,

Main discussion:
https://lore.kernel.org/openbmc/CAHwn2XknKWyv6Bsq48tkvA52rHKZRFoEJgUuZUmMj6uZb584JQ@mail.gmail.com/
(a
bit outdated)

This will be a sub-thread about Storage/Drive resources and new properties
that I want to add to bmcweb.

Related thread: device level logging service
<https://lore.kernel.org/openbmc/CAHwn2XnqABuyc3uMQDs+YgwYJL+yKLwCYn1myOVdZ=gkhw3L-A@mail.gmail.com/>

I am thinking of adding a number of support for Storage/Drive in bmcweb and
just want some feedback from the community,

The potential changes includes
- Multi-Storage Resource Support
- Drive Software
- New Drive Property Support
  - State Conditions
 - PhysicalLocation
 - Reset Action

-----

Storage:

Adding support for multiple Storages instead of just hardcoded to `1`. This
allows us to represent one Storage per plugin and organize the
resources differently.

We could potentially use
`xyz.openbmc_project.Inventory.Item.StorageController` to create the
storages and everything Drive under it will be linked.

----

Drive Software:

It will use SoftwareInventory and will just need to be able to add
RelatedItem back to a Drive based on the D-bue Association interface.

----

Drive Properties:

 - State Conditions:
Add log services related to the drive as discussed in device level logging
<https://lore.kernel.org/openbmc/CAHwn2XnqABuyc3uMQDs+YgwYJL+yKLwCYn1myOVdZ=gkhw3L-A@mail.gmail.com/>
to
add debug information.

- PhysicalLocation
Use ` Inventory.Decorator.LocationCode` directly

-  Reset Action
Add reset/powercycle support to Drive resource. Based on
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/43155
.

---

Please let me know if there are any questions and suggestions on the
proposed changes.

Best,

Willy Tu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20210526/ddc1185f/attachment.htm>


More information about the openbmc mailing list