bmcweb
bmcweb copied to clipboard
Push style event subscription gets deleted on BMC reboot
@edtanous @ratagupt
Step to recreate:
- 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"
- Execute "reboot" command on BMC
- 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$
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 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.
Is this still an issue? The eventservice code has changed significantly in the last few years.