All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matt Spinler <mspinler@linux.ibm.com>
To: James Feist <james.feist@linux.intel.com>,
	OpenBMC Maillist <openbmc@lists.ozlabs.org>
Subject: Message registries continuation
Date: Tue, 16 Jun 2020 14:47:04 -0500	[thread overview]
Message-ID: <74794819-3b3c-0c39-30e0-b2ca6c46d9fb@linux.ibm.com> (raw)

Hi James,

Picking up the discussion again from 
https://lists.ozlabs.org/pipermail/openbmc/2020-February/020620.html
about reading  in message registries...

When this was left off, I believe we were leaning toward being able to 
copy message registry JSON files
into some target directory on the BMC during the build where bmcweb 
would load them on startup
and leave them in their JSON objects, and they would be pulled from 
there when LogService requests
were made.

This was to be able to support multiple languages, and in general just 
to support other registries besides
the existing OpenBMC one that is hardcoded in a header file.  (We're 
going to have an IBM registry we
use together with our D-Bus logs based LogService.)

An open issue we still had was if these registries had to be validated, 
or if that was left to whoever
made them.  A stake in the ground could be that we leave the OpenBMC 
registry as it is in a header
file, which negates validation, or put it in JSON too and validate just 
that one during the build.
Or if there are any other ideas here...

As far as the directory used, I think that /usr/share/bmcweb/ would be 
appropriate, or maybe
/usr/share/bmcweb/registries/ if either of those are OK with you.

Also, it may be overkill to need to  read in the same registry for every 
language, as there could
be dozens and realistically they will never all be used on a single 
system, but if the desire is only
to load them at startup before the current language is known I don't 
really see a way around it.

Thanks!
Matt

             reply	other threads:[~2020-06-16 20:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-16 19:47 Matt Spinler [this message]
2020-06-16 20:39 ` Message registries continuation James Feist
2020-06-16 20:50   ` Patrick Williams
2020-06-16 20:58     ` James Feist
2020-06-16 21:30   ` Matt Spinler
2020-06-16 21:57     ` James Feist
2020-06-18 15:23   ` Brad Bishop
2020-06-22 20:46   ` Matt Spinler
2020-06-22 21:16     ` James Feist
2020-06-23 18:02       ` Matt Spinler

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=74794819-3b3c-0c39-30e0-b2ca6c46d9fb@linux.ibm.com \
    --to=mspinler@linux.ibm.com \
    --cc=james.feist@linux.intel.com \
    --cc=openbmc@lists.ozlabs.org \
    /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.