openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Emit interface added signal
@ 2021-03-18 10:33 Ratan Gupta
  2021-03-18 14:57 ` Patrick Williams
  0 siblings, 1 reply; 3+ messages in thread
From: Ratan Gupta @ 2021-03-18 10:33 UTC (permalink / raw)
  To: Brad Bishop, Ed Tanous, openbmc, Patrick Williams

Hi Team,

I faced the following issue in some of the D-Bus services.

Generally D-Bus services emit the interface added signal once the D-Bus 
object gets created.

D-Bus objects can be created in two scenario

1) Actual creation of D-Bus object due to some action.

2) Restore the old D-Bus objects reading from the file system.

    e.g. Restore the dump objects / Error log objects etc.

We are having some use cases where we have to send the Rest/Redfish 
event to the external clients once the dbus object gets added and for 
the same we watch for the interface added signal.

Due to the 2) we send the false events to the external clients as the 
D-Bus service gets restarted due to any reason(BMC reboot / Genuine 
Failure).

Proposal: Don't emit the interface added signal by the D-bus service if 
we are restoring the D-Bus objects from file system.

Do we see any concern here? or any other way to fix the above issue?

Ratan












^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-03-19  8:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-18 10:33 Emit interface added signal Ratan Gupta
2021-03-18 14:57 ` Patrick Williams
2021-03-19  8:37   ` Ratan Gupta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).