Skip to content

1110: Add log traces when subscription is added/deleted#1376

Open
baemyung wants to merge 1 commit intoibm-openbmc:1110from
baemyung:1110-traces-on-subscription
Open

1110: Add log traces when subscription is added/deleted#1376
baemyung wants to merge 1 commit intoibm-openbmc:1110from
baemyung:1110-traces-on-subscription

Conversation

@baemyung
Copy link
Copy Markdown
Contributor

While debugging the subscription history related to the code update, it would be easier to find where/when the subscription may be removed.

  • Register a new subscription
Oct 24 19:11:21 p11bmc bmcweb[1839]: [ERROR event_service_manager.hpp:447] Subscription ID: 3622702393 is added
  • A subscription is deleted
Oct 24 19:12:13 p11bmc bmcweb[1839]: [ERROR event_service_manager.hpp:545] Subscription ID: 3437703746 is deleted
  • Restart bmcweb & check whether the persistent subscriptions
Oct 24 19:12:19 p11bmc systemd[1]: Stopping Start bmcweb server...
Oct 24 19:12:19 p11bmc systemd[1]: bmcweb.service: Deactivated successfully.
Oct 24 19:12:19 p11bmc systemd[1]: Stopped Start bmcweb server.
Oct 24 19:12:21 p11bmc systemd[1]: Started Start bmcweb server.
Oct 24 19:12:21 p11bmc bmcweb[1871]: [ERROR event_service_manager.hpp:144] Subscription ID: 3622702393 is loaded

Note:
If the subscription is deleted due to the max retry, it may look like

Oct 24 18:53:19 p11bmc bmcweb[1579]: [ERROR subscription.cpp:102] Subscription 4212505157 is deleted after MaxRetryAttempts
Oct 24 18:53:19 p11bmc bmcweb[1579]: [ERROR event_service_manager.hpp:545] Subscription ID: 4212505157 is deleted

@baemyung baemyung force-pushed the 1110-traces-on-subscription branch from b752d37 to e18cbfd Compare October 24, 2025 19:36
@baemyung
Copy link
Copy Markdown
Contributor Author

@baemyung baemyung force-pushed the 1110-traces-on-subscription branch from e18cbfd to 174c444 Compare October 27, 2025 17:27
@baemyung
Copy link
Copy Markdown
Contributor Author

I pushed this again so that it can be built on top of fw1110.02-1 image.

While debugging the subscription history related to the code update, it
would be easier to find where/when the subscription may be removed.

- Register a new subscription

```
Oct 24 19:11:21 p11bmc bmcweb[1839]: [ERROR event_service_manager.hpp:447] Subscription ID: 3622702393 is added
```

- A subscription is deleted

```
Oct 24 19:12:13 p11bmc bmcweb[1839]: [ERROR event_service_manager.hpp:545] Subscription ID: 3437703746 is deleted
```

- Restart bmcweb & check whether the persistent subscriptions

```
Oct 24 19:12:19 p11bmc systemd[1]: Stopping Start bmcweb server...
Oct 24 19:12:19 p11bmc systemd[1]: bmcweb.service: Deactivated successfully.
Oct 24 19:12:19 p11bmc systemd[1]: Stopped Start bmcweb server.
Oct 24 19:12:21 p11bmc systemd[1]: Started Start bmcweb server.
Oct 24 19:12:21 p11bmc bmcweb[1871]: [ERROR event_service_manager.hpp:144] Subscription ID: 3622702393 is loaded
```

Note:
If the subscription is deleted due to the max retry, it may look like

```
Oct 24 18:53:19 p11bmc bmcweb[1579]: [ERROR http_client.hpp:445] Maximum number of retries reached. https://9.10.239.119:8080/Test-Redfish-Event-Listener
Oct 24 18:53:19 p11bmc bmcweb[1579]: [ERROR subscription.cpp:102] Subscription 4212505157 is deleted after MaxRetryAttempts
Oct 24 18:53:19 p11bmc bmcweb[1579]: [ERROR event_service_manager.hpp:545] Subscription ID: 4212505157 is deleted
```

Signed-off-by: Myung Bae <myungbae@us.ibm.com>
@baemyung baemyung force-pushed the 1110-traces-on-subscription branch from 174c444 to 8f1f9c0 Compare October 27, 2025 19:18
Copy link
Copy Markdown
Contributor

@jeaaustx jeaaustx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Seems like it would be nice to have an extra layer of bmcweb-logging between error and warning for these types of things we want to log by default but don't want to confuse by having it show as an error in the log. (But that is something for another day...)

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

Successfully merging this pull request may close these issues.

2 participants