Adding dependent service as Entity-manager to Ipmb-fru-service

Deepak Kodihalli deepak.kodihalli.83 at gmail.com
Mon Jun 21 20:30:05 AEST 2021


Hi Kumar,

On Mon, Jun 21, 2021 at 3:02 PM Kumar Thangavel <thangavel.k at hcl.com> wrote:
>
> Classification: Public
>
> Changing classification as Public.
>
>
>
> From: Kumar Thangavel
> Sent: Monday, June 21, 2021 2:58 PM
> To: openbmc at lists.ozlabs.org
> Cc: Ed Tanous <ed at tanous.net>; Patrick Williams <patrick at stwcx.xyz>; Velumani T-ERS,HCLTech <velumanit at hcl.com>
> Subject: Adding dependent service as Entity-manager to Ipmb-fru-service
>
>
>
> Classification: Confidential
>
> Hi All,
>
>
>
>            Ipmb-fru-device deamon trying to read some dbus objects from entity-manager to get the ipmb bus details. Entity-manager daemon initially taking some time to load all the dbus objects. But Ipmb-fru-device deamon starts at system startup.
>
>
>
>            Since, Entity-manager deamon initially taking some time to load all the dbus objects, ipmb-fru-device getting the below error.
>
>
>
>           Error :
>
>           “ipmb-fru-device[345]:   what():  sd_bus_call: org.freedesktop.DBus.Error.UnknownObject: Unknown object '/xyz/openbmc_project/inventory/system/board/Yosemite_V2_Baseboard/IpmbBus1'.”
>
>
>
>          When we restart EM deamon once, this error got resolved.
>
>
>
>          I tried to add EM service as dependent service to Ipmb-fru-device service. Added EM service in “Wants”, “After” fields in Ipmb-fru-service service.
>
>
>
>          But, still EM deamon taking some time load all the dbus objects.
>
>
>
>          So, Could you please let us know to how to add the EM as dependent service. Or Please let us know if any other approach.

Isn't this supposed to be the other way around? A FRU daemon reads
EEPROMs (or other means) and hosts raw FRU information on D-Bus, and
then EM can add known D-Bus interfaces based on that. Either way, you
may not need a dependency if you go by standard D-Bus signals
(InterfacesAdded/PropertiesChanged).

Regards,
Deepak


More information about the openbmc mailing list