bmcweb icon indicating copy to clipboard operation
bmcweb copied to clipboard

Push style event subscription gets deleted on BMC reboot

Open adathatri opened this issue 4 years ago • 3 comments

@edtanous @ratagupt

Step to recreate:

  1. Subscribe to Push style events using RedfishEventListener_v1.py
Method = POST, status = 201, expected status = [200, 201, 204] 
{
  "@Message.ExtendedInfo": [
    {
      "@odata.type": "#Message.v1_0_0.Message",
      "Message": "The resource has been created successfully",
      "MessageArgs": [],
      "MessageId": "Base.1.8.1.Created",
      "MessageSeverity": "OK",
      "Resolution": "None"
    }
  ]
}

-bash-4.2$ curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${BMC_IP}/redfish/v1/EventService/Subscriptions/
{
  "@odata.id": "/redfish/v1/EventService/Subscriptions",
  "@odata.type": "#EventDestinationCollection.EventDestinationCollection",
  "Members": [
    {
      "@odata.id": "/redfish/v1/EventService/Subscriptions/955021906"  -- A subscription is created.
    }
  ],
  "[email protected]": 1,
  "Name": "Event Destination Collections"
  1. Execute "reboot" command on BMC
  2. Check the subscription after BMC reboots.
}-bash-4.2$ curl -k -H "X-Auth-Token: $bmc_token" -X GET https://${BMC_IP}/redfish/v1/EventService/Subscriptions
{
  "@odata.id": "/redfish/v1/EventService/Subscriptions",
  "@odata.type": "#EventDestinationCollection.EventDestinationCollection",
  "Members": [],
  "[email protected]": 0, -- Subscription is deleted
  "Name": "Event Destination Collections"
}-bash-4.2$

adathatri avatar Nov 05 '20 10:11 adathatri

Possibly related to this: https://github.com/openbmc/bmcweb/issues/165

It's not clear all the version information and other things were handled on the evenservice persistent file. It just needs rolled into the main one.

edtanous avatar Jan 14 '21 05:01 edtanous

@edtanous This issue is for https subscription only. On BMC reboot, the exisiting subscription does not persist. Issue #165 talks about being unable to subscribe to event notification itself using http.

adathatri avatar Jan 15 '21 05:01 adathatri

Is this still an issue? The eventservice code has changed significantly in the last few years.

edtanous avatar Aug 25 '23 20:08 edtanous