openbmc.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Redfish Event Service not working
@ 2021-03-09 17:43 Udupa.Ashwini ISV
  2021-03-09 18:32 ` Ed Tanous
  0 siblings, 1 reply; 2+ messages in thread
From: Udupa.Ashwini ISV @ 2021-03-09 17:43 UTC (permalink / raw)
  To: openbmc


[-- Attachment #1.1: Type: text/plain, Size: 709 bytes --]

Hi,
I am trying to test redfish event service in OpenBmc.
I am running the Redfish Event Listener with config.ini as attached. I am trying with http connection.

I have "-Dinsecure-push-style-notification=enabled" in my bmcweb_%.bbappend to have http push style notification enabled.
But, I don't see event logs in the console of my Redfish event listener. I also don't see Events_.txt.
If I send test event through redfish, I see the event in my listener.

Can you please let me know what's wrong in my config.ini?
What kind of logs are captured in event listener? Do all redfish systems event log entries ( /redfish/v1/Systems/system/LogServices/EventLog/Entries) are seen?

Regards,
Ashwini


[-- Attachment #1.2: Type: text/html, Size: 2695 bytes --]

[-- Attachment #2: config.ini --]
[-- Type: application/octet-stream, Size: 540 bytes --]

[Information]
Updated = April 24, 2017
Description = Redfish Event Listener Tool

[SystemInformation]
ListenerIP = 0.0.0.0
ListenerPort = 80
UseSSL = off

[CertificateDetails]
certfile = cert.pem
keyfile = server.key

[SubsciptionDetails]
Destination = http://10.41.8.160:80/home/ashwini/redfish/
#EventTypes = Alert
Context = Public
Protocol = Redfish
SubscriptionURI = /redfish/v1/EventService/Subscriptions

[ServerInformation]
ServerIPs = https://10.41.8.31
UserNames = root
Passwords = 0penBmc
certcheck = off

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

* Re: Redfish Event Service not working
  2021-03-09 17:43 Redfish Event Service not working Udupa.Ashwini ISV
@ 2021-03-09 18:32 ` Ed Tanous
  0 siblings, 0 replies; 2+ messages in thread
From: Ed Tanous @ 2021-03-09 18:32 UTC (permalink / raw)
  To: Udupa.Ashwini ISV; +Cc: openbmc

On Tue, Mar 9, 2021 at 9:45 AM Udupa.Ashwini ISV
<udupa.ashwini@inventec.com> wrote:
>
> Hi,
>
> I am trying to test redfish event service in OpenBmc.
>
> I am running the Redfish Event Listener with config.ini as attached. I am trying with http connection.
>
>
>
> I have “-Dinsecure-push-style-notification=enabled" in my bmcweb_%.bbappend to have http push style notification enabled.

As a side note, it's on my list to make this a runtime option instead
of a compile time one, or at least enabled by default.  Having http
available is no less secure than not, and requires the user to opt
into the protocol, and has no defaults, so whether they make that
decision at compile time or runtime doesn't really change much IMO.

>
> But, I don’t see event logs in the console of my Redfish event listener. I also don’t see Events_.txt.
>
> If I send test event through redfish, I see the event in my listener.

There's a lot of work going on around Redfish Event service.  I'd
probably start by going to gerrit and checking out the current patch
series for EventService, and see if that works for you, if it does,
great, please comment that on the code reviews, if not, maybe point
that out there.

>
>
>
> Can you please let me know what’s wrong in my config.ini?

Just looking at it, with very little experience on this kind of thing,
your Destination is almost certainly incorrect.  You've mixed an HTTP
path with a filesystem path.

As part of EventService, it would've been really great if we
documented a test setup for this.  If anyone is interested in writing
up a "how to event service" doc, it would be greatly appreciated.

>
> What kind of logs are captured in event listener? Do all redfish systems event log entries ( /redfish/v1/Systems/system/LogServices/EventLog/Entries) are seen?
>
>
>
> Regards,
>
> Ashwini
>
>

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

end of thread, other threads:[~2021-03-09 18:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-09 17:43 Redfish Event Service not working Udupa.Ashwini ISV
2021-03-09 18:32 ` Ed Tanous

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).