-
Notifications
You must be signed in to change notification settings - Fork 2.4k
sysfs: trim spaces in device hidden check #3522
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
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
|
Hi @clwluvw. Thanks for your PR. I'm waiting for a google member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
The hidden file might have an endline, so the check for equals to 1 would not be true. Trimming the spaces would help to cover this case. Signed-off-by: Seena Fallah <[email protected]>
|
/ok-to-test |
|
/retest |
|
Hi @iwankgb - Can you please help here with why the CI is not happy? |
|
If you see errors like then this might well be the problem. Check: Here, my |
This PR must actually have addressed such. Are you running a version >= v0.51.0? |
sysfs: trim spaces in device hidden check (cherry picked from commit 96c346e) Backports google#3260 from cadvisor v0.51.0. This is needed to fix container_fs_ metrics on systems with multipath devices. Without it, errors like: Failed to get disk map: open /sys/block/nvme0c0n1/dev will be logged, and cadvisor will emit nonsensical metrics with the label device="" for filesystem I/O. See google#3693 for full explanation. Signed-off-by: Craig Ringer <[email protected]>
|
@clwluvw Yes - I've been able to verify that Red Hat OpenShift (v4.18) is currently shipping a I raised openshift#30 to ask them to backport the fix. Thanks very much for writing the fix. I don't think this fix is entirely comprehensive - see #3693 for details. But it will prevent problems with hidden devices as are used in multi-path I/O systems, so it'll solve the immediate problem. |
sysfs: trim spaces in device hidden check (cherry picked from commit 96c346e) Backports google#3522 from cadvisor v0.51.0. This is needed to fix container_fs_ metrics on systems with multipath devices. Without it, errors like: Failed to get disk map: open /sys/block/nvme0c0n1/dev will be logged, and cadvisor will emit nonsensical metrics with the label device="" for filesystem I/O. See google#3693 for full explanation. Signed-off-by: Craig Ringer <[email protected]>
Backport pull request google#3522 from clwluvw/hidden-device in cadvisor v0.51.0
The hidden file might have an endline, so the check for equals to 1 would not be true. Trimming the spaces would help to cover this case.