<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Lei,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I've hit this same exact issue on few of our platforms. Like as you said, I agree it is not 100% reproducible . But once the issue is hit, it is kind of persistent on that system.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I tried adding entries, deleting one at a time or Delete All, with the hope of flushing out the paths. But so far no success.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I agree that there is some sort of fundamental issue...<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">-Teeks<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Adriana Kobylak <anoo@linux.ibm.com> <br>
<b>Sent:</b> Monday, March 28, 2022 2:42 PM<br>
<b>To:</b> Shantappa Teekappanavar <Shantappa.Teekappanavar@ibm.com><br>
<b>Subject:</b> Fwd: Missed interfacesRemoved signal callbacks in object-mapper results in invalidated DBus objects<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Begin forwarded message:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><b><span style="font-family:"Helvetica",sans-serif">From: </span>
</b><span style="font-family:"Helvetica",sans-serif">Lei Yu <<a href="mailto:yulei.sh@bytedance.com">yulei.sh@bytedance.com</a>></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Helvetica",sans-serif">Subject: Missed interfacesRemoved signal callbacks in object-mapper results in invalidated DBus objects</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Helvetica",sans-serif">Date: </span>
</b><span style="font-family:"Helvetica",sans-serif">March 28, 2022 at 8:19:40 AM CDT</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Helvetica",sans-serif">To: </span>
</b><span style="font-family:"Helvetica",sans-serif">openbmc <<a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a>></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">An issue that is related to missed match callbacks is noticed and it<br>
causes the inconsistency between object-mapper and the dbus objects.<br>
<br>
Steps to reproduce on g220a QEMU (it is not 100% reproducible and when<br>
it occurs it likely occurs on the first try when BMC boots)<br>
<br>
1. Generate several logging entries<br>
2. Call logging service's DeleteAll<br>
3. Check the objects of logging service, all entries are deleted<br>
```<br>
# busctl tree xyz.openbmc_project.Logging<br>
`-/xyz<br>
  `-/xyz/openbmc_project<br>
    `-/xyz/openbmc_project/logging<br>
      `-/xyz/openbmc_project/logging/internal<br>
        `-/xyz/openbmc_project/logging/internal/manager<br>
```<br>
4. Check the entries via object-mapper, it gets the entries<br>
```<br>
# busctl call xyz.openbmc_project.ObjectMapper<br>
/xyz/openbmc_project/object_mapper xyz.openbmc_project.ObjectMapper<br>
GetObject sas /xyz/openbmc_project/logging/entry/1 0<br>
a{sas} 1 "xyz.openbmc_project.Logging" 8<br>
"org.freedesktop.DBus.Introspectable" "org.freedesktop.DBus.Peer"<br>
"org.freedesktop.DBus.Properties"<br>
"xyz.openbmc_project.Association.Definitions" "xyz.open<br>
bmc_project.Common.FilePath" "xyz.openbmc_project.Logging.Entry"<br>
"xyz.openbmc_project.Object.Delete"<br>
"xyz.openbmc_project.Software.Version"<br>
```<br>
5. I could verify that the DBus object does not really exist:<br>
```<br>
# busctl introspect "xyz.openbmc_project.Logging"<br>
/xyz/openbmc_project/logging/entry/1<br>
Failed to introspect object /xyz/openbmc_project/logging/entry/1 of<br>
service xyz.openbmc_project.Logging: Unknown object<br>
'/xyz/openbmc_project/logging/entry/1'.<br>
```<br>
<br>
I also added some logs in my service to get callbacks of the<br>
interfacesRemoved signal, and it shows that I really do not get the<br>
callbacks for some objects.<br>
For example, in one test I have 41 logging entries, and my service<br>
only gets `interfacesRemoved` callback for entry 18~41, this causes<br>
the object-mapper to show the remaining 1~17 entries while they do not<br>
really exist on DBus.<br>
<br>
This looks like some fundamental issue in dbus-broker or sdbusplus.<br>
Is there anyone who hits the similar issue?<br>
<br>
-- <br>
BRs,<br>
Lei YU<o:p></o:p></p>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>