smbios-mdr: Fix Inventory Asociations lookup bug

Testing revealed the Associations were not being looked up correctly.
In IPMI, the xyz.openbmc_project.Inventory.Item.System interface is
attached to an object an extra 2 path components deeper, "board/*"
instead of the toplevel "inventory/system" object which is later
populated with all the stuff from SMBIOS. However, this is not
necessary for objects received via gRPC. These simply attach the System
interface under their same object path, making the lookup easier in
this situation.

Tested: The Associations now correctly appear, both for IPMI, and for
gRPC. Tested both by killing the app so that it restarts, and by
rebooting the entire BMC. This exhibits different behavior, due to
order of initialization, so both code paths are tested: immediate find,
and having to set up a D-Bus matcher to find it later.

https://paste.googleplex.com/4970010400260096

Patch Tracking Bug: b/300011331
Upstream info / review: https://gerrit.openbmc.org/c/openbmc/smbios-mdr/+/66559
Upstream-Status: Submitted
Justification: Pending upstream review

In-Review: https://gerrit.openbmc.org/c/openbmc/smbios-mdr/+/66559
Change-Id: Ic56654b60376fa85ce5fa3667b1c37902d35f355
Google-Bug-Id: 301138611
Signed-off-by: Josh Lehan <krellan@google.com>
1 file changed
tree: 8b798a6862f903411b7c0c5a8f6a5888656cc689
  1. conf/
  2. dynamic-layers/
  3. recipes-bsp/
  4. recipes-connectivity/
  5. recipes-core/
  6. recipes-devtools/
  7. recipes-extended/
  8. recipes-google/
  9. recipes-kernel/
  10. recipes-phosphor/
  11. LICENSE
  12. README.md
README.md

meta-gbmc-staging

This repository contains additions to the openbmc/meta-google layer that are not yet ready for OpenBMC inclusion.

How to use this layer

  1. Clone openbmc/openbmc from GitHub.
  2. Clone this layer from GitHub into a subdirectory of openbmc.