Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push style event subscription gets deleted on BMC reboot #164

Open
adathatri opened this issue Nov 5, 2020 · 3 comments
Open

Push style event subscription gets deleted on BMC reboot #164

adathatri opened this issue Nov 5, 2020 · 3 comments

Comments

@adathatri
Copy link

adathatri commented Nov 5, 2020

@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$
@edtanous
Copy link
Contributor

Possibly related to this: #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.

@adathatri
Copy link
Author

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

@edtanous
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants