-
Notifications
You must be signed in to change notification settings - Fork 2.8k
A couple of minor stats improvements for FreeBSD #27105
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
Conversation
markjdb
commented
Sep 18, 2025
Include an explicit container state check. Otherwise the containers/stats endpoint will return all-zero stats for a stopped container even when in non-streaming mode, which breaks some consumers of the API, particularly nomad's podman driver. Implement the interface by just returning the number of host CPUs. A bit more sophisticated would be to fetch the jail's cpuset, but it's not very important for now. Signed-off-by: Mark Johnston <mark.johnston@klarasystems.com>
Signed-off-by: Mark Johnston <mark.johnston@klarasystems.com>
[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore. |
Adding no new tests because we don't presently have a FreeBSD suite beyond basic compile testing |
/approve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cc @dfr I wait for your ack before merging.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99, markjdb, mheon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Looks good to me |
/lgtm |