<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Jun 21, 2021 at 2:28 AM Kumar Thangavel <<a href="mailto:thangavel.k@hcl.com">thangavel.k@hcl.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_-884049030016977109WordSection1">
<p class="MsoNormal" style="margin-bottom:12pt">Classification: <b><span style="color:rgb(180,95,4)">Confidential</span></b><span style="font-size:12pt"><u></u><u></u></span></p>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">           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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">           Since, Entity-manager deamon initially taking some time to load all the dbus objects, ipmb-fru-device getting the below error.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">          <b>Error</b> :<u></u><u></u></p>
<p class="MsoNormal">          “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'.”</p></div></div></blockquote><div><br></div><div>The easiest way to explain this would be to just point you at code.  Every dbus-sensor daemon handles this race condition;  I'd recommend looking at the code in the relevant main(), and see how it does it.  If you have trouble understanding it, feel free to message back here with specific line numbers and questions and we should hopefully be able to get you sorted out.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_-884049030016977109WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">         When we restart EM deamon once, this error got resolved. 
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">         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.
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">         But, still EM deamon taking some time load all the dbus objects.</p></div></div></blockquote><div><br></div><div>This is intentional.  Because of the way hardware gets detected, new devices or different configurations could be loaded at any time.  Some devices aren't detected until the host OS boots for example, so we can't hold the service startup to wait for the entire system to be detected.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="EN-US"><div class="gmail-m_-884049030016977109WordSection1"><p class="MsoNormal">
<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">         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.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Kumar.<u></u><u></u></p>
</div>
<font face="Arial" color="Gray" size="1">::DISCLAIMER::<br>
<hr>
The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or
 incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates. Views or opinions, if any, presented in this email are solely
 those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of this message without the prior written consent
 of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments, please check them for viruses and other defects.<br>
<hr>
</font>
</div>

</blockquote></div></div>