Skip to content

Move connection count requests to warning#1377

Open
gtmills wants to merge 2 commits intoibm-openbmc:1120from
gtmills:move-connection-count-requests-to-warning
Open

Move connection count requests to warning#1377
gtmills wants to merge 2 commits intoibm-openbmc:1120from
gtmills:move-connection-count-requests-to-warning

Conversation

@gtmills
Copy link
Copy Markdown
Contributor

@gtmills gtmills commented Oct 27, 2025

WIP: A possible solution to easily debug GET requests. Move to WARNING log level

Up the tracing for requests and ip addresses and the connection count to
warning. This will help debug problems with running out of connections.
Since log levels are runtime now, can move to warning without filling
the journal with a ton of traces.

Also pull in Myung's subscription added/deleted but move it to WARNING.

Up the tracing for requests and ip addresses and the connection count to
warning. This will help debug problems with running out of connections.
Since log levels are runtime now, can move to warning without filling
the journal with a ton of traces.

Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
@gtmills gtmills requested a review from baemyung October 27, 2025 17:42
Copy link
Copy Markdown
Contributor

@baemyung baemyung left a comment

Choose a reason for hiding this comment

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

Agreed. It looks good

@gtmills
Copy link
Copy Markdown
Contributor Author

gtmills commented Oct 27, 2025

image

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

Move these to WARNING.

- 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>
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
@gtmills gtmills force-pushed the move-connection-count-requests-to-warning branch from 86160ac to 4032048 Compare October 27, 2025 20:05
@gtmills gtmills requested a review from jeaaustx October 28, 2025 02:30
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.

3 participants