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