Skip to content

Conversation

@baemyung
Copy link
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

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 <[email protected]>
@baemyung baemyung force-pushed the 1110-traces-on-subscription branch from b752d37 to e18cbfd Compare October 24, 2025 19:36
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.

1 participant