From: Patrick Williams <patrick@stwcx.xyz>
To: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Cc: James Feist <james.feist@linux.intel.com>,
"Bills, Jason M" <jason.m.bills@linux.intel.com>,
openbmc@lists.ozlabs.org,
Brad Bishop <bradleyb@fuzziesquirrel.com>,
"Puli, Apparao" <apparao.puli@linux.intel.com>
Subject: Re: Redfish EventService Implementation
Date: Wed, 17 Jun 2020 15:45:16 -0500 [thread overview]
Message-ID: <20200617204516.GE4618@heinlein> (raw)
In-Reply-To: <68f31493-6db6-8e8e-8486-e03c14685abe@linux.vnet.ibm.com>
[-- Attachment #1: Type: text/plain, Size: 3658 bytes --]
On Wed, Jun 17, 2020 at 05:38:47PM +0530, Ratan Gupta wrote:
> Hi James,Pattrick.
>
> >> Can't we do this already today by defining a simple errors/metadata file
> >> in phosphor-dbus-interfaces and calling 'logging::report<...>' on it?
> >> This will create a record on dbus in phosphor-logging.
> >>
> > I think the original concern was with supporting on the order of
> > 10,000 log entries, having this on d-bus seemed impractical. Also the
> > free log rotation the journal provides is useful. Now modifying the
> > logging::report<...> to conditionally log to the journal seems realistic.
> My intention was not to re-implement the logging, my intention was to
> extend/use the existing design which we already have it below.
>
> https://github.com/openbmc/docs/blob/master/architecture/redfish-logging-in-bmcweb.md
>
> I was trying not to bring the Redfish specific stuff in each individual
> repo, instead each transport can listen for
> Dbus events and write to the journal which goes to their app specific file.
Good. This wasn't clear from the earlier email. Thanks.
> As we are in agreement that we want to use the journal for persistence
> and log rotate feature.
I'm not convinced there is agreement on this. There has been
disagreement about even using the journal for phosphor-logging use since
the beginning and I suspect there would be less agreement on another
application using it as its own IPC mechanism.
Just because a hammer can be used to insert a nail into a board doesn't
mean you use it insert any pointy thing into a flat thing. [ Just
because the journal provides log rotation and persistance doesn't mean
you should use it for every feature needing log rotation and
persistance. ]
> ***** As per the Redfish one of the requirement is we need the log for
> most of the Dbus Property update/interface added as they
> are mapped to some Redfish Resource and the bmcweb has to send the
> Resource updated/modified signal to the
> Redfish client. ******
I don't know Redfish well, so bear with me if there is something obvious
I'm missing. But, the first part of this "requirement" doesn't seem to
follow from the second part of the "requirement" to me.
Sending a signal of a property changing to the Redfish clients is
straight-forwawrd; Redfish should subscribe to all the appropriate
dbus-events. I don't understand how this implies any sort of logging.
Where does the logging part of this requirement come from?
> We have two options:
> 1) Each transport interface listens for the Dbus signals and write
> it to their app specific file.
> 2) Each openbmc repo must use log::report for each D-bus property
> update/ interface added.
#2 is absolutely unworkable on the surface to me. log::report is to
create a error entry (xyz.openbmc_project.Logging.Entry), which creates
a dbus-object, which would cause log::report to be called, which creates
a dbus-object, which ...
Even if what you meant was something like logging::log<info>, this seems
pretty heavy. I'm not sure this is something that can be inserted into
sdbusplus, especially for the ASIO-based object servers, because in many
cases applications register their own callback. For the sdbus++
generated server bindings we could squeeze it in. But, what you're
proposing here is essentially a "journal-as-dbus-monitor". We'd
certainly need to make some measurements on how many kB/s worth of
journal entries this would create because I suspect we could end up
burning out a NAND flash with as many writes as that would induce.
--
Patrick Williams
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2020-06-17 20:45 UTC|newest]
Thread overview: 44+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-31 20:53 Redfish EventService Implementation RAJESWARAN THILLAIGOVINDAN
2020-02-09 20:22 ` RAJESWARAN THILLAIGOVINDAN
2020-02-17 20:11 ` RAJESWARAN THILLAIGOVINDAN
2020-02-19 19:19 ` Puli, Apparao
2020-02-24 6:37 ` Ratan Gupta
2020-02-25 14:06 ` Puli, Apparao
2020-05-05 11:43 ` RAJESWARAN THILLAIGOVINDAN
2020-05-26 12:20 ` RAJESWARAN THILLAIGOVINDAN
2020-05-27 3:48 ` Puli, Apparao
2020-05-27 11:50 ` RAJESWARAN THILLAIGOVINDAN
2020-05-27 18:58 ` Puli, Apparao
2020-05-28 13:26 ` Ratan Gupta
2020-05-29 15:45 ` Redfish event log for new local user addition Puli, Apparao
2020-06-02 6:30 ` Ratan Gupta
2020-06-08 21:08 ` Redfish EventService Implementation Brad Bishop
2020-06-09 0:58 ` James Feist
2020-06-15 12:50 ` Ratan Gupta
2020-06-15 21:42 ` James Feist
2020-06-16 15:24 ` Patrick Williams
2020-06-16 16:11 ` James Feist
2020-06-17 12:08 ` Ratan Gupta
2020-06-17 17:16 ` James Feist
2020-06-17 17:19 ` Bills, Jason M
2020-06-17 18:30 ` Andrew Geissler
2020-06-17 20:45 ` Patrick Williams [this message]
2020-06-19 13:26 ` Ratan Gupta
2020-06-19 22:19 ` Bills, Jason M
2020-06-23 7:27 ` Ratan Gupta
2020-06-24 16:24 ` James Feist
2020-06-24 20:39 ` Patrick Williams
2020-06-25 13:45 ` Brad Bishop
2020-06-25 16:42 ` James Feist
2020-06-25 15:49 ` Brad Bishop
2020-06-25 16:44 ` James Feist
2020-06-25 17:26 ` Brad Bishop
2020-06-25 18:55 ` Bills, Jason M
2020-06-29 8:00 ` Ratan Gupta
2020-06-29 8:07 ` Ratan Gupta
2020-06-29 15:33 ` Bills, Jason M
2020-07-03 10:15 ` Ratan Gupta
2020-07-06 21:30 ` Bills, Jason M
2020-07-13 6:32 ` Ratan Gupta
2020-07-14 21:08 ` James Feist
2020-07-30 9:10 ` Ratan Gupta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200617204516.GE4618@heinlein \
--to=patrick@stwcx.xyz \
--cc=apparao.puli@linux.intel.com \
--cc=bradleyb@fuzziesquirrel.com \
--cc=james.feist@linux.intel.com \
--cc=jason.m.bills@linux.intel.com \
--cc=openbmc@lists.ozlabs.org \
--cc=ratagupt@linux.vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.