[go: up one dir, main page]

Skip to content
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

lxd-agent: Validate fields only for CPU info #12257

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

monstermunchkin
Copy link
Contributor

This fixes a bug where lines with less than 9 fields in /proc/stat would
return an error. However, /proc/stat doesn't only contain CPU
information. Therefore, the field validation should only be done for CPU
related lines.

Fixes #12255

Signed-off-by: Thomas Hipp thomas.hipp@canonical.com

This fixes a bug where lines with less than 9 fields in /proc/stat would
return an error. However, /proc/stat doesn't only contain CPU
information. Therefore, the field validation should only be done for CPU
related lines.

Fixes canonical#12255

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
Copy link
Member
@tomponline tomponline left a comment

Choose a reason for hiding this comment

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

Thanks!

@tomponline tomponline merged commit aa86b82 into canonical:main Sep 15, 2023
23 of 24 checks passed
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.

LXD does not produce cpu metrics due to lxd-agent error
2 participants